Airfield Event

The Airfield Event plugin adds an airfield event to your server! A cargo plane lands on the airfield and drops airdrops, boxes. Strong NPCs and a patrol helicopter will protect the crates

You can also set up custom loot using the “SimpleLootTable” plugin

Airfield Event Features:

Easy to set up. Excellent customization options in the config

Commands(admin only):

afestart - force the event to start
afefast - quick landing of a cargo plane, for testing settings

afe_addcustom – adds a custom landing place for a cargo plane. You must stand on level ground and look in the direction where the cargo plane will move(do not forget to set in the config file “Use a custom place to land a cargo plane”: true)

Hooks:

void AirfieldEventStarted() // called when the event starts
void AirfieldEventEnded() // called when the event has ended

AirfieldEvent config:

{
    "Triggering an event by timer (disable if you want to trigger the event only manually)": true,
    "Time to event start(in seconds, minimum 900)": 3900,
    "Random time to event start": false,
    "Minimum time to event start(in seconds, minimum 900)": 900,
    "Maximum time to event start(in seconds)": 10800,
    "Minimum number of online players to trigger an event": 1,
    "Drops amount(number of cargo spawns after plane landing, maximum 10)": 3,
    "Crates amount(spawn every cargo drop)": 1,
    "Crate simple loot table name(plugin SimpleLootTable is required)": "",
    "Minimum number of items in a crate(plugin SimpleLootTable is required)": 0,
    "Maximum number of items in a crate(plugin SimpleLootTable is required)": 0,
    "Remove crates after being looted by a player(in seconds)": 300,
    "Extend the duration of the event if the NPCs were attacked(if there is less time left, then increase to the set time(in seconds))": 600,
    "Crates lifetime(in seconds). The crate will not be destroyed if it has been activated": 3600,
    "Crates timer(in seconds)": 900,
    "Airdrops amount(spawn every cargo drop)": 1,
    "Airdrop simple loot table name(plugin SimpleLootTable is required)": "",
    "Minimum number of items in an airdrop(plugin SimpleLootTable is required)": 0,
    "Maximum number of items in an airdrop(plugin SimpleLootTable is required)": 0,
    "Airdrops lifetime(in seconds)": 3600,
    "NPCs amount(spawn every cargo drop)": 0,
    "NPCs lifetime(in seconds)": 3600,
    "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": 0,
    "NPCs health(0 - default)": 0,
    "NPCs damage multiplier": 1.0,
    "NPCs attack range": 75.0,
    "Minimum distance to NPC damage": 75.0,
    "Message if the player attacks far away NPCs": "NPC is too far away, he doesn't take damage",
    "Forcibly immobilize an NPC": false,
    "List of kits for each NPC(requires Kits plugin)": [
        "kit1",
        "kit2",
        "kit3"
    ],
    "Default displayName for NPC(for SimpleKillFeed/DeathNotes plugin)": "Airfield NPC",
    "List of displayNames for each NPC(for SimpleKillFeed/DeathNotes plugin)": [
        "Airfield NPC1",
        "Airfield NPC2",
        "Airfield NPC3"
    ],
    "Event message(if empty, no message will be displayed)": "Airfield event started",
    "Event end message(if empty, no message will be displayed)": "Airfield event ended",
    "Landing message(displayed when the cargo plane has landed)": "Cargoplane landed at Airfield",
    "Calls a helicopter to the airfield after landing a cargo plane": false,
    "How long the helicopter will patrol the airfield (in minutes)": 5,
    "Helicopter damage multiplier": 1.0,
    "Helicopter health": 10000.0,
    "Helicopter main rotor health": 900.0,
    "Helicopter tail rotor health": 500.0,
    "The patrol helicopter will not patrol the airfield if it has found a target": true,
    "Make helicopter fly away after end of patrol time": false,
    "Spawns a helicopter right on the airfield(if false, then the helicopter will arrive from afar in a few seconds)": false,
    "Event marker on the map(will spawn a marker immediately after the start of the event)": false,
    "If true, spawn the marker only after the plane lands": false,
    "Event marker name": "Airfield event",
    "Event marker lifetime(in seconds)": 3600,
    "Event marker transparency(0-1)": 0.75,
    "Event marker radius": 0.5,
    "Event marker color.R(0-1)": 1.0,
    "Event marker color.G(0-1)": 0.0,
    "Event marker color.B(0-1)": 0.0,
    "Use a custom place to land a cargo plane": false,
    "Custom place position": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
    },
    "Custom place rotation": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
    },
    "Use custom navmesh (enable if using custom airfield and getting NPC navmesh error)": false
}

Leave a Comment