Harvestable Vehicles

Oxide Harvestable Vehicles 1.3.0

Sign in to download
This plugin allows players to break down rarely used vehicles like cars and hot air balloons for resources using specific tools, instead of them just sitting there and adding to your entity count.

Permissions

  • harvestablevehicles.use - Only players with this permission can harvest resources from vehicles.

Configuration

JSON:
{
  "Version": "1.0.0",
  "Gathering Tool Short Names": [
    "hammer.salvaged",
    "jackhammer"
  ],
  "Harvestable Vehicles": [
    {
      "Vehicle Short Prefab Names": [
        "1module_cockpit",
        "1module_cockpit_armored",
        "1module_cockpit_with_engine",
        "1module_engine",
        "1module_flatbed",
        "1module_passengers_armored",
        "1module_rear_seats",
        "1module_storage",
        "1module_taxi",
        "2module_camper",
        "2module_flatbed",
        "2module_fuel_tank",
        "2module_passengers"
      ],
      "Resources": [
        {
          "Item Shortname": "metal.fragments",
          "Amount": 5
        },
        {
          "Item Shortname": "metal.refined",
          "Amount": 1
        }
      ],
      "Yield": {
        "No Yield Probability": 70,
        "Normal Yield Probability": 25,
        "High Yield Probability": 5,
        "High Yield Bonus": 1.5
      },
      "Damage Increase Factor": 5.0
    }
  ]
}
  • Gathering Tool Short Names - Lists the short names of tools that can be used for harvesting resources from vehicles. If a vehicle is hit with a tool not listed here, no resources will be gathered from it.
  • Harvestable Vehicles- Contains settings for vehicles that can be harvested.
    • Vehicle Short Prefab Names - Lists the short prefab names of the vehicles that can be harvested.
    • Resources- Defines the resources that can be gathered from the vehicle.
      • Item Short Name - The short name of the item.
      • Amount - The amount of the item that can be gathered per hit.
  • Yield- Defines the probabilities (in percentage) and bonus for resource yields.
    • No Yield Probability - The chance that no resources are gathered.
    • Normal Yield Probability - The chance of gathering the normal amount of resources.
    • High Yield Probability - The chance of gathering an increased amount of resources.
    • High Yield Bonus - The multiplier applied to the resource amount when a high yield occurs.
  • Damage Increase Factor - The multiplier by which the damage to the vehicle is increased during harvesting.
Notes:
  • Using an item that is not categorized as a tool will not allow resource gathering.
  • The sum of No Yield, Normal Yield, and High Yield probabilities must equal 100. If the sum is less than 100, there will be a portion of the random number range that does not map to any yield category, leading to unexpected behavior. If the sum is more than 100, there will be overlapping ranges, causing some yields to have a higher chance than intended or causing logical errors.
Author
VisEntities
Downloads
48
First release
Last update

Ratings

0.00 star(s) 0 reviews

Also by VisEntities

Latest updates

  1. 1.3.0

    Changed resources to have a minimum and maximum amount instead of a set amount.
  2. 1.2.0

    Items gathered from vehicles now support custom skin id.
  3. 1.1.0

    Players can no longer gather resources from vehicles with locks unless they are authorized...
Back
Top