Military Airfield
Description
As soon as the event starts, several troops (NPCs) are spawned to defend an hackable crate that will be delivered by the CH47. This crate may contain a lot of loot, so the troops have the duty to defend it. For this purpose, there is a variety of troops such as snipers, close-range shooters, and long-range shooters.
If a player manages to initiate the hacking of the crate, all the airfield troops will be relocated to a combat position. In other words, all troops that you haven't seen yet or that are hidden will be moved to the center of the airfield to defend the crate. After a few minutes, a plane will be sent with supply drops containing weapons to assist the troops in defense. However, airborne troops will also be dispatched from the plane to parachute down and aid in defending the crate.
If the crate is looted, all troops will be destroyed, leaving only the crates, supply drops, and bodies to be looted by intruders.
Demonstration
Commands
The command can be changed in the config file.
/ma start
to start the event
/ma stop
to stop the event
/ma position
to get the current position based in the airfield monument (used to config)
Console commands:
ma start
to start the eventma stop
to stop the event
Permissions
militaryairfield.admin
to access all commands
API
// Called when the event starts
private void OnMilitaryAirfieldEventStarted();
// Called when the event ends
private void OnMilitaryAirfieldEventEnded(BasePlayer? lootedBy);
Configuration
{
"General settings": {
"Chat command": "ma",
"Using AlphaLoot or CustomLoot": false,
"Allow PVP in the event area? (if you are using TruePVE plugin)": false,
"Use chat messages": true,
"Use GUI countdown": true
},
"Map marker settings": {
"Use map marker": true,
"Radius": 2.5,
"Color": "#000000",
"Outline color": "#ff0000",
"Opacity": 0.75,
"Icon type (0 - Circle | 1 - Triangle)": 1,
"Icon index": 4,
"Icon color (0 - Yellow | 1 - Blue | 2 - Green | 3 - Red | 4 - Purple | 5 - Cyan)": 3,
"Text": "MILITARY AIRFIELD EVENT"
},
"Notifications settings": {
"Notications type (0 - None | 1 - GameTip | 2 - Toastify | 3 - Notify)": 1,
"GameTip style (0 - Blue normal | 1 - Red normal | 2 - Blue long | 3 - Blue short | 4 - Server event)": 4,
"Toastify notification ID": "info",
"Notify notification type": 0
},
"Event settings": {
"Event duration (seconds)": 3600.0,
"Auto start enabled": true,
"Auto start cooldown min (seconds)": 7200.0,
"Auto start cooldown max (seconds)": 3600.0,
"Start only at the night": true,
"Interval before troop relocation after crate starts to be hacked (seconds)": 15.0,
"Interval to call the plane after troop relocation (seconds)": 30.0,
"Show zone sphere": true,
"Sphere color (0 - Black | 1 - Blue | 2 - Green | 3 - Purple | 4 - Red)": 4,
"Patrol NPCs": [
{
"Roam position": "(-38.47, 0.30, 56.64)",
"Roam range": 10.0,
"Relocation position": "(-23.69, 0.30, -14.40)",
"Weapon": {
"Short name": "rifle.lr300",
"Skin ID": 3074330534
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "rifle.lr300",
"Skin ID": 3074330534
},
{
"Amount": {
"Min": 10,
"Max": 50
},
"Chance": 1.0,
"Short name": "ammo.rifle",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(-27.00, 0.30, 25.98)",
"Roam range": 10.0,
"Relocation position": "(-8.65, 0.30, -15.07)",
"Weapon": {
"Short name": "rifle.lr300",
"Skin ID": 3074330534
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "rifle.lr300",
"Skin ID": 3074330534
},
{
"Amount": {
"Min": 10,
"Max": 50
},
"Chance": 1.0,
"Short name": "ammo.rifle",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(5.41, 0.30, 53.21)",
"Roam range": 10.0,
"Relocation position": "(0.96, 0.30, 0.77)",
"Weapon": {
"Short name": "rifle.semiauto",
"Skin ID": 2884741877
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "rifle.semiauto",
"Skin ID": 2884741877
},
{
"Amount": {
"Min": 10,
"Max": 50
},
"Chance": 1.0,
"Short name": "ammo.rifle",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(17.01, 0.30, 33.88)",
"Roam range": 10.0,
"Relocation position": "(15.37, 0.30, 8.87)",
"Weapon": {
"Short name": "rifle.semiauto",
"Skin ID": 2884741877
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "rifle.semiauto",
"Skin ID": 2884741877
},
{
"Amount": {
"Min": 10,
"Max": 50
},
"Chance": 1.0,
"Short name": "ammo.rifle",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(57.82, 0.30, 53.20)",
"Roam range": 10.0,
"Relocation position": "(55.93, 0.30, -18.10)",
"Weapon": {
"Short name": "rifle.ak",
"Skin ID": 2833821724
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "rifle.ak",
"Skin ID": 2833821724
},
{
"Amount": {
"Min": 10,
"Max": 50
},
"Chance": 1.0,
"Short name": "ammo.rifle",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(57.31, 0.30, 32.35)",
"Roam range": 10.0,
"Relocation position": "(30.45, 0.31, -10.98)",
"Weapon": {
"Short name": "rifle.ak",
"Skin ID": 2833821724
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "rifle.ak",
"Skin ID": 2833821724
},
{
"Amount": {
"Min": 10,
"Max": 50
},
"Chance": 1.0,
"Short name": "ammo.rifle",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(46.74, 0.29, -84.86)",
"Roam range": 10.0,
"Relocation position": "(43.39, 0.30, -46.70)",
"Weapon": {
"Short name": "smg.thompson",
"Skin ID": 796687275
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "smg.thompson",
"Skin ID": 796687275
},
{
"Amount": {
"Min": 25,
"Max": 75
},
"Chance": 1.0,
"Short name": "ammo.pistol",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(6.07, 3.30, -84.80)",
"Roam range": 10.0,
"Relocation position": "(-17.05, 0.30, -55.56)",
"Weapon": {
"Short name": "smg.thompson",
"Skin ID": 796687275
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "smg.thompson",
"Skin ID": 796687275
},
{
"Amount": {
"Min": 25,
"Max": 75
},
"Chance": 1.0,
"Short name": "ammo.pistol",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(-38.04, 3.30, -78.29)",
"Roam range": 10.0,
"Relocation position": "(-39.46, 0.30, -38.40)",
"Weapon": {
"Short name": "smg.mp5",
"Skin ID": 839819171
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "smg.mp5",
"Skin ID": 839819171
},
{
"Amount": {
"Min": 25,
"Max": 75
},
"Chance": 1.0,
"Short name": "ammo.pistol",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(-76.04, 0.31, 33.72)",
"Roam range": 10.0,
"Relocation position": "(-38.29, 0.29, 10.79)",
"Weapon": {
"Short name": "smg.mp5",
"Skin ID": 839819171
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "smg.mp5",
"Skin ID": 839819171
},
{
"Amount": {
"Min": 25,
"Max": 75
},
"Chance": 1.0,
"Short name": "ammo.pistol",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],
"Attack range multiplier": 1.0
},
{
"Roam position": "(-74.95, 0.09, -80.66)",
"Roam range": 10.0,
"Relocation position": "(-22.57, 0.30, -49.01)",
"Weapon": {
"Short name": "shotgun.spas12",
"Skin ID": 0
},
"Attire": [
{
"Short name": "coffeecan.helmet",
"Skin ID": 2715609678
},
{
"Short name": "roadsign.jacket",
"Skin ID": 2715608631
},
{
"Short name": "burlap.gloves",
"Skin ID": 2655671015
},
{
"Short name": "hoodie",
"Skin ID": 2891379321
},
{
"Short name": "roadsign.kilt",
"Skin ID": 2649381460
},
{
"Short name": "pants",
"Skin ID": 2891377798
},
{
"Short name": "shoes.boots",
"Skin ID": 0
}
],
"Droppable loot": [
{
"Amount": {
"Min": 1,
"Max": 1
},
"Chance": 0.25,
"Short name": "shotgun.spas12",
"Skin ID": 0
},
{
"Amount": {
"Min": 7,
"Max": 21
},
"Chance": 1.0,
"Short name": "ammo.shotgun",
"Skin ID": 0
},
{
"Amount": {
"Min": 1,
"Max": 2
},
"Chance": 1.0,
"Short name": "syringe.medical",
"Skin ID": 0
}
],