Plane Crash

Plane Crash 0.3.8

Added config options to display message when a player shoots down the plane
Added config options to spawn zombies or scientists at the crash site
The config has changed! Backup your old config and delete it before updating

Reworked config
Added option to lock crates for a specified amount of time
Added option to change how many rockets it take to bring down a plane
Added options to show a marker on LustyMap depicting the crash site
  • Like
Reactions: MalS
Limited collision types to prevent conflicts with other plugins causing the plane to crash
Bumped up loot spread
A crashing plane will now destroy anything in its path, from trees to structures
  • Like
Reactions: MalS
Fixed compatibility with new Airstrike plugin
Fix for Rust update
  • Like
Reactions: MalS
Added additional check to ensure it is a actual player colliding with the plane and not a collider attached to the player
Added support to exclude Airstrike planes when ApplyToAllPlanes is enabled
Fixed Min/Max amounts for refined metal in the default config
Fix for the loot population error
  • Like
Reactions: Pur3x
The config has changed! Either delete your old config, or see below for instructions regarding making changes to it

- Fixed flying napalm artifacts (as described in the LockOn thread)
- Added custom loot settings - This is not anything amazing, its a very basic loot customization system. Alternatively you can use AlphaLoot or BetterLoot to better customize your supply loot tables

New Config
C#:
{
  "EventTimers": {
    "MaximumMinutesBetweenCalls": 60,
    "MinimumMinutesBetweenCalls": 45,
    "UseRandomCrashTimer": true
  },
  "LootSettings": {
    "Crash_CrateAmount": 3,
    "Crash_SupplyDropAmount": 3,
    "CrateLootTables": { // Add this section from here
      "LootItems": [
        {
          "MaximumAmount": 10,
          "MinimumAmount": 100,
          "Shortname": "metal.refined"
        },
        {
          "MaximumAmount": 2,
          "MinimumAmount": 1,
          "Shortname": "explosive.timed"
        },
        {
          "MaximumAmount": 3,
          "MinimumAmount": 1,
          "Shortname": "grenade.f1"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "supply.signal"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "cctv.camera"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "targeting.computer"
        },
        {
          "MaximumAmount": 60,
          "MinimumAmount": 20,
          "Shortname": "ammo.rifle"
        },
        {
          "MaximumAmount": 60,
          "MinimumAmount": 20,
          "Shortname": "ammo.pistol"
        }
      ],
      "MaximumItems": 4,
      "MinimumItems": 1,
      "UseLootTable": false
    }, // To Here
    "FireLifetime": 300,
    "RocketHit_CrateAmount": 1,
    "RocketHit_SupplyDropAmount": 1,
    "SupplyDropLootTables": { // Add this section from here
      "LootItems": [
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "rifle.ak"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "pistol.m92"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "pistol.semiauto"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "shotgun.double"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "smg.thompson"
        },
        {
          "MaximumAmount": 1,
          "MinimumAmount": 1,
          "Shortname": "rifle.bolt"
        }
      ],
      "MaximumItems": 6,
      "MinimumItems": 2,
      "UseLootTable": false
    }
  }, // To here
  "Messages": {
    "DestroyMessage": "<color=#939393>A plane carrying cargo has just crashed at co-ordinates </color><color=#ce422b>X: {x}, Z: {z}</color>",
    "DisplayDestroyMessage": true,
    "DisplayIncomingMessage": true,
    "IncomingMessage": "<color=#ce422b>A low flying plane carrying cargo is about to fly over!</color><color=#939393>\nIf you are skilled enough you can shoot it down with a rocket launcher!</color>"
  },
  "PlaneSettings": {
    "ApplyToAllPlanes": false,
    "DeploySmokeOnCrashSite": true,
    "FlightSpeed": 35.0,
    "HeightModifier": 0.0,
    "RocketHitsToDestroy": 3,
    "ShowSmokeTrail": true
  }
}
Quick revert to fix something I missed