Works with
Optional integrations and compatible files.
About Cargo Plane Crash
About CargoPlaneCrash
CargoPlaneCrash adds a configurable cargo plane crash event to your Rust server. A cargo plane flies to a selected crash site and crashes. The site is guarded by NPCs that patrol the area and can chase players.
Events can start automatically on a timer or be triggered manually. Players can search the spawned crates and airdrops for loot.
Features:
- Three configurable difficulties: Easy, Normal, and Hard
- Weighted random difficulty selection, with the option to choose a difficulty for a manual event
- Individual settings for each difficulty, including event duration, loot amounts, NPCs, rewards, and map marker color
- Custom NPC kits and combat settings for each difficulty
- Optional PvE event ownership, dome, teammate ownership, and building restrictions
- Support for multiple crash zones, with random or sequential zone selection
- Options to avoid monuments and player bases, and to prevent spawns in deep water
- Configurable crash effects, map markers, and notifications
- Optional integrations with Kits, Loot Table & Stacksize GUI, SimpleLootTable, Notify, ServerRewards, SkillTree, and Skills
Commands:
Admin commands can be run in-game. Commands that support server console use are noted below.
Server console or in-game admin:
callcargoplane [--difficulty Easy|Normal|Hard] [player/SteamID] — Starts the event, optionally with a selected difficulty and a player as its owner.
crashcargoplane — Forces the active cargo plane to crash.
cpc_stop — Ends the active event.
In-game admin only:
cpc_calltome [difficulty] — Starts the event at your current location, optionally using the selected difficulty.
showcrashzone — Displays the configured crash zone.
setcrashzonecenter — Sets the crash zone center to your current location.
cpc_add_crashzone [name] [radius] — Adds a crash zone at your current location. The name and radius are optional.
Hooks:
CargoPlaneCrashStarted — Called when the event starts.
CargoPlaneCrashCrashed — Called when the cargo plane crashes at the event site.
CargoPlaneCrashEnded — Called when the event ends.
CargoPlaneCrashEventWinner — Called when a winner is determined. Provides the winning player.
CargoPlaneCrashPlayerEnteredDome — Called when a player enters the event dome. Provides the player.
CargoPlaneCrashPlayerExitedDome — Called when a player exits the event dome. Provides the player.
CargoPlaneCrash config:
{
"PvE and Access": {
"Allow admin to be in event dome (only for PVE mode if there is a dome)": true,
"Create a dome for PVE mode": false,
"Do not allow other players into the event(only for PVE mode if there is a dome) Be careful, if the crash site is near the player's base and the player is not the owner of the event, he will be ejected from his base outside the dome": false,
"Dome transparency (the higher the value, the darker the dome, recommended 4)": 4,
"Give event ownership to the owner's teammates if he is no longer the owner. Only if teammates are within the event radius (for PVE mode)": true,
"PVE mode (crates can only be looted by the player who first dealt damage to the NPC)": false,
"Radius for event(for PVE mode)": 380,
"Time after which the owner of the event will be deleted if he left the dome or left the server (for PVE mode)": 300
},
"Event Settings": {
"CargoPlane speed(recommended 4 to 6)": 5.0,
"Complete the event if all crates were destroyed after looting and all NPCs were destroyed": false,
"Minimum time to event start(in seconds)": 600,
"Maximum time to event start(in seconds)": 10800,
"Minimum amount of online players to trigger the event": 1,
"Triggering an event by timer (disable if you want to trigger the event only manually)": true
},
"Crates and Loot": {
"Remove crates after being looted by a player(in seconds)": 300
},
"Crash Effects": {
"Enable signal smoke(spawn after crash)": true,
"Explosion effect": "assets/prefabs/npc/patrol helicopter/effects/heli_explosion.prefab",
"Explosion marker lifetime(in seconds)": 300,
"Explosion marker on the map(spawn after crash)": true,
"Fireballs amount(spawn after crash)": 5,
"Map size(crash zone size), you can see the zone, use the chat command /showcrashzone": 4500.0,
"Passengers amount(spawn after crash)": 2,
"Signal smoke lifetime(in seconds, max 214)": 214,
"Starting altitude, defaults to map size, can be increased if cargo plane hits high ground(no more than 10000 recommended)": 4500.0
},
"Crash Zones": {
"Crash zone center. Use chat command /setcrashzonecenter to set to player position. You can check crash zone center, use the chat command /showcrashzone": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"Do not choose a crash site near monuments": true,
"Do not spawn crates and NPCs when a cargo plane falls under water (if the water depth is greater than)": 0.5,
"If possible, the crash site will not be chosen near player bases": true,
"Select a zone from the list sequentially(if false, then the crash zone will be chosen randomly)": false,
"Use multiple zones": false,
"Zones list": [
{
"center": {
"x": -300.0,
"y": 0.0,
"z": 0.0
},
"name": "0",
"radius": 300
},
{
"center": {
"x": 100.0,
"y": 0.0,
"z": 0.0
},
"name": "1",
"radius": 200
}
]
},
"Passengers": {
"Kit name(you can use kits for passengers if you have Kits plugin)": "",
"Passenger name": "Mister bot",
"Use NPC prefab for passengers": false
},
"NPC Settings": {
"Default displayName for NPC(for SimpleKillFeed/DeathNotes plugin)": "Crashsite NPC",
"List of displayNames for each NPC(for SimpleKillFeed/DeathNotes plugin)": [
"Crashsite NPC1",
"Crashsite NPC2",
"Crashsite NPC3"
],
"Remove NPC corpses": false,
"Will NPCs attack zombies": true
},
"Building Restriction": {
"Building prohibition radius": 20.0,
"How long construction is prohibited near the crash site(in seconds)": 1800,
"Prohibit building near the crash site": false
},
"Map Marker": {
"Display approximate end time of event on marker": true,
"Display difficulty in marker name": true,
"Event marker name": "Cargo plane crash site",
"Event marker on the map(spawn an event marker at the crash site)": true,
"Event marker radius": 0.5,
"Event marker transparency(0-1)": 0.75
},
"Notifications": {
"Notice message type (0 or 1, -1 do not use notice messages)": -1,
"Notification type for the Notify plugin (-1 does not use Notify)": -1,
"SteamID for chat message icon": 0
},
"Difficulties": {
"Easy": {
"Enabled": true,
"Selection weight": 30,
"Event Settings": {
"Crates timer(in seconds)": 600,
"Extend event duration if NPCs is attacked (if less time left, extend to set time (in seconds))": 300,
"Minimum event duration(seconds)": 1800,
"Maximum event duration(seconds)": 2000
},
"Cargo and Loot": {
"Airdrop Loot Table & Stacksize GUI preset name": "",
"Airdrop simple loot table name(plugin SimpleLootTable is required)": "",
"Crate Loot Table & Stacksize GUI preset name": "",
"Crate simple loot table name(plugin SimpleLootTable is required)": "",
"Minimum airdrops amount(spawn after crash)": 1,
"Maximum airdrops amount(spawn after crash)": 1,
"Minimum crates amount(spawn after crash)": 1,
"Maximum crates amount(spawn after crash)": 1,
"Minimum number of items in a crate(plugin SimpleLootTable is required)": 0,
"Maximum number of items in a crate(plugin SimpleLootTable is required)": 0,
"Minimum number of items in an airdrop(plugin SimpleLootTable is required)": 0,
"Maximum number of items in an airdrop(plugin SimpleLootTable is required)": 0
},
"NPC Settings": {
"Chance that the NPC will use a syringe(0-100)": 25,
"Give NPC kits randomly from the list": false,
"Health threshold below which the NPC will use a syringe": 50,
"Kits list for NPCs. The NPC will use the weapon that is in the first slot of the belt(requires Kits plugin)": [
"kit1",
"kit2",
"kit3"
],
"Minimum NPCs amount(spawn after crash)": 1,
"Maximum NPCs amount(spawn after crash)": 1,
"Minimum distance to NPC damage": 75.0,
"NPCs accuracy(the lower the value, the more accurate, 0 - maximum accuracy)": 2.0,
"NPCs attack range": 75.0,
"NPCs damage multiplier": 0.5,
"NPCs health(0 - default)": 100,
"NPCs type(NPCs prefab, experimental setting, it is not known how the NPCs will behave) 0 - tunneldweller; 1 - underwaterdweller; 2 - excavator; 3 - full_any; 4 - lr300; 5 - mp5; 6 - pistol; 7 - shotgun; 8 - heavy; 9 - junkpile_pistol; 10 - oilrig; 11 - patrol; 12 - peacekeeper; 13 - roam; 14 - roamtethered; 15 - bandit_guard; 16 - cargo; 17 - cargo_turret_any; 18 - cargo_turret_lr300; 19 - ch47_gunner": 8,
"Number of syringes in NPC's inventory": 1,
"Radius of chasing the player(NPCs will chase the player as soon as he comes closer than the specified radius, must be no greater than the attack range)": 60.0
},
"Rewards": {
"Number of EXP points for the winner(only for Skill Tree plugin)": 0.5,
"Number of points for the winner(only for ServerRewards plugin)": 250,
"Number of points for the winner(only for Skills plugin)": 1.0
},
"Map Marker": {
"Event marker color.B(0-1)": 0.380392164,
"Event marker color.G(0-1)": 0.619607866,
"Event marker color.R(0-1)": 0.3019608
}
},
"Normal": {
"Enabled": true,
"Selection weight": 50,
"Event Settings": {
"Crates timer(in seconds)": 900,
"Extend event duration if NPCs is attacked (if less time left, extend to set time (in seconds))": 600,
"Minimum event duration(seconds)": 2000,
"Maximum event duration(seconds)": 3600
},
"Cargo and Loot": {
"Airdrop Loot Table & Stacksize GUI preset name": "",
"Airdrop simple loot table name(plugin SimpleLootTable is required)": "",
"Crate Loot Table & Stacksize GUI preset name": "",
"Crate simple loot table name(plugin SimpleLootTable is required)": "",
"Minimum airdrops amount(spawn after crash)": 1,
"Maximum airdrops amount(spawn after crash)": 2,
"Minimum crates amount(spawn after crash)": 1,
"Maximum crates amount(spawn after crash)": 2,
"Minimum number of items in a crate(plugin SimpleLootTable is required)": 0,
"Maximum number of items in a crate(plugin SimpleLootTable is required)": 0,
"Minimum number of items in an airdrop(plugin SimpleLootTable is required)": 0,
"Maximum number of items in an airdrop(plugin SimpleLootTable is required)": 0
},
"NPC Settings": {
"Chance that the NPC will use a syringe(0-100)": 50,
"Give NPC kits randomly from the list": false,
"Health threshold below which the NPC will use a syringe": 50,
"Kits list for NPCs. The NPC will use the weapon that is in the first slot of the belt(requires Kits plugin)": [
"kit1",
"kit2",
"kit3"
],
"Minimum NPCs amount(spawn after crash)": 1,
"Maximum NPCs amount(spawn after crash)": 2,
"Minimum distance to NPC damage": 75.0,
"NPCs accuracy(the lower the value, the more accurate, 0 - maximum accuracy)": 1.0,
"NPCs attack range": 75.0,
"NPCs damage multiplier": 1.0,
"NPCs health(0 - default)": 300,
"NPCs type(NPCs prefab, experimental setting, it is not known how the NPCs will behave) 0 - tunneldweller; 1 - underwaterdweller; 2 - excavator; 3 - full_any; 4 - lr300; 5 - mp5; 6 - pistol; 7 - shotgun; 8 - heavy; 9 - junkpile_pistol; 10 - oilrig; 11 - patrol; 12 - peacekeeper; 13 - roam; 14 - roamtethered; 15 - bandit_guard; 16 - cargo; 17 - cargo_turret_any; 18 - cargo_turret_lr300; 19 - ch47_gunner": 8,
"Number of syringes in NPC's inventory": 2,
"Radius of chasing the player(NPCs will chase the player as soon as he comes closer than the specified radius, must be no greater than the attack range)": 60.0
},
"Rewards": {
"Number of EXP points for the winner(only for Skill Tree plugin)": 1.0,
"Number of points for the winner(only for ServerRewards plugin)": 500,
"Number of points for the winner(only for Skills plugin)": 2.0
},
"Map Marker": {
"Event marker color.B(0-1)": 0.3019608,
"Event marker color.G(0-1)": 0.7019608,
"Event marker color.R(0-1)": 0.819607854
}
},
"Hard": {
"Enabled": true,
"Selection weight": 20,
"Event Settings": {
"Crates timer(in seconds)": 1200,
"Extend event duration if NPCs is attacked (if less time left, extend to set time (in seconds))": 900,
"Minimum event duration(seconds)": 3600,
"Maximum event duration(seconds)": 5000
},
"Cargo and Loot": {
"Airdrop Loot Table & Stacksize GUI preset name": "",
"Airdrop simple loot table name(plugin SimpleLootTable is required)": "",
"Crate Loot Table & Stacksize GUI preset name": "",
"Crate simple loot table name(plugin SimpleLootTable is required)": "",
"Minimum airdrops amount(spawn after crash)": 2,
"Maximum airdrops amount(spawn after crash)": 3,
"Minimum crates amount(spawn after crash)": 2,
"Maximum crates amount(spawn after crash)": 3,
"Minimum number of items in a crate(plugin SimpleLootTable is required)": 0,
"Maximum number of items in a crate(plugin SimpleLootTable is required)": 0,
"Minimum number of items in an airdrop(plugin SimpleLootTable is required)": 0,
"Maximum number of items in an airdrop(plugin SimpleLootTable is required)": 0
},
"NPC Settings": {
"Chance that the NPC will use a syringe(0-100)": 75,
"Give NPC kits randomly from the list": false,
"Health threshold below which the NPC will use a syringe": 50,
"Kits list for NPCs. The NPC will use the weapon that is in the first slot of the belt(requires Kits plugin)": [
"kit1",
"kit2",
"kit3"
],
"Minimum NPCs amount(spawn after crash)": 2,
"Maximum NPCs amount(spawn after crash)": 3,
"Minimum distance to NPC damage": 75.0,
"NPCs accuracy(the lower the value, the more accurate, 0 - maximum accuracy)": 0.5,
"NPCs attack range": 75.0,
"NPCs damage multiplier": 2.0,
"NPCs health(0 - default)": 500,
"NPCs type(NPCs prefab, experimental setting, it is not known how the NPCs will behave) 0 - tunneldweller; 1 - underwaterdweller; 2 - excavator; 3 - full_any; 4 - lr300; 5 - mp5; 6 - pistol; 7 - shotgun; 8 - heavy; 9 - junkpile_pistol; 10 - oilrig; 11 - patrol; 12 - peacekeeper; 13 - roam; 14 - roamtethered; 15 - bandit_guard; 16 - cargo; 17 - cargo_turret_any; 18 - cargo_turret_lr300; 19 - ch47_gunner": 8,
"Number of syringes in NPC's inventory": 3,
"Radius of chasing the player(NPCs will chase the player as soon as he comes closer than the specified radius, must be no greater than the attack range)": 60.0
},
"Rewards": {
"Number of EXP points for the winner(only for Skill Tree plugin)": 1.5,
"Number of points for the winner(only for ServerRewards plugin)": 750,
"Number of points for the winner(only for Skills plugin)": 3.0
},
"Map Marker": {
"Event marker color.B(0-1)": 0.34117648,
"Event marker color.G(0-1)": 0.34117648,
"Event marker color.R(0-1)": 0.721568644
}
}
}
}