PilotEject

PilotEject 3.1.13

This plugin requires the ChaosNPC extension

A mini event where a helicopter is either shotdown or randomly malfunctions and the pilot has to eject. The pilot will then make their way to the crash site and protect it


Features
NPCs parachute gently to the floor
Parachutes follow the wind
NPCs make their way to the crash site to protect it
Custom NPC roam and combat logic
Optional event automation
Set the chance a game spawned helicopter will malfunction
Disable random malfunction and only eject the pilot when the helicopter has been shot down
Eject multiple NPCs
Customize NPC loot
Option to drop extra loot boxes when the pilot ejects
+ A bunch of other options (check the config below)


Permission
piloteject.admin - Required for non-admin players to use the commands

Chat Commands
/pe call - Call a helicopter that ignores the chance options in the config
/pe eject - Force eject pilots on all active PilotEject helicopters

Console Commands
pe call - Call a helicopter that ignores the chance options in the config
pe eject - Force eject pilots on all active PilotEject helicopters

Config
The configuration file can be found in your server directory at .../oxide/config/PilotEject.json
The use of an editor and validator is recommended to avoid formatting issues
JSON:
{
  "Event Automation": {
    "Automatically spawn helicopters on a timer": false,
    "Auto-spawn time minimum (seconds)": 3600.0,
    "Auto-spawn time maximum (seconds)": 5400.0,
    "Minimum amount of online players to trigger the event": 1,
    "Chance of game spawned helicopter becoming a PilotEject helicopter (x / 100)": 100.0
  },
  "Ejection Options": {
    "Eject the pilot when the helicopter has been shot down": true,
    "Eject the pilot randomly": false,
    "Random ejection time minimum (seconds)": 300.0,
    "Random ejection time maximum (seconds)": 600.0,
    "Parachute drag force": 2.0,
    "Wind force": 10.0
  },
  "NPC Options": {
    "Amount of NPCs to spawn": 3,
    "NPC display name (chosen at random)": [],
    "NPC kit (chosen at random)": [],
    "Chance of being wounded when landing (x / 100)": 15,
    "Chance of recovery from being wounded(x / 100)": 80,
    "Roam distance from landing position": 50.0,
    "Loot type (Default, Inventory, Random)": "Random",
    "Random loot items": {
      "Minimum amount of items": 3,
      "Maximum amount of items": 5,
      "Items": [
        {
          "Item shortname": "apple",
          "Item skin ID": 0,
          "Minimum amount of item": 2,
          "Maximum amount of item": 6
        },
        {
          "Item shortname": "bearmeat.cooked",
          "Item skin ID": 0,
          "Minimum amount of item": 2,
          "Maximum amount of item": 4
        },
        {
          "Item shortname": "blueberries",
          "Item skin ID": 0,
          "Minimum amount of item": 4,
          "Maximum amount of item": 8
        },
        {
          "Item shortname": "corn",
          "Item skin ID": 0,
          "Minimum amount of item": 4,
          "Maximum amount of item": 8
        },
        {
          "Item shortname": "fish.raw",
          "Item skin ID": 0,
          "Minimum amount of item": 2,
          "Maximum amount of item": 4
        },
        {
          "Item shortname": "granolabar",
          "Item skin ID": 0,
          "Minimum amount of item": 1,
          "Maximum amount of item": 4
        },
        {
          "Item shortname": "meat.pork.cooked",
          "Item skin ID": 0,
          "Minimum amount of item": 4,
          "Maximum amount of item": 8
        },
        {
          "Item shortname": "candycane",
          "Item skin ID": 0,
          "Minimum amount of item": 1,
          "Maximum amount of item": 2
        }
      ]
    }
  },
  "Loot Container Options": {
    "Amount of loot boxes to drop when pilot ejects": 2,
    "Loot container items": {
      "Minimum amount of items": 3,
      "Maximum amount of items": 5,
      "Items": [
        {
          "Item shortname": "apple",
          "Item skin ID": 0,
          "Minimum amount of item": 2,
          "Maximum amount of item": 6
        },
        {
          "Item shortname": "bearmeat.cooked",
          "Item skin ID": 0,
          "Minimum amount of item": 2,
          "Maximum amount of item": 4
        },
        {
          "Item shortname": "blueberries",
          "Item skin ID": 0,
          "Minimum amount of item": 4,
          "Maximum amount of item": 8
        },
        {
          "Item shortname": "corn",
          "Item skin ID": 0,
          "Minimum amount of item": 4,
          "Maximum amount of item": 8
        },
        {
          "Item shortname": "fish.raw",
          "Item skin ID": 0,
          "Minimum amount of item": 2,
          "Maximum amount of item": 4
        },
        {
          "Item shortname": "granolabar",
          "Item skin ID": 0,
          "Minimum amount of item": 1,
          "Maximum amount of item": 4
        },
        {
          "Item shortname": "meat.pork.cooked",
          "Item skin ID": 0,
          "Minimum amount of item": 4,
          "Maximum amount of item": 8
        },
        {
          "Item shortname": "candycane",
          "Item skin ID": 0,
          "Minimum amount of item": 1,
          "Maximum amount of item": 2
        }
      ]
    }
  },
  "Version": {
    "Major": 3,
    "Minor": 0,
    "Patch": 0
  }
}

Hooks
C#:
object CanConvertToPilotEject(BaseHelicopter baseHelicopter)
// Plugins can return any non-null value to prevent this helicopter from being converted to a PilotEject helicopter

Information

Author
k1lly0u
First release
Last update
Rating
4.78 star(s) 23 ratings

Latest Release v3.1.13

Released
Dec 5, 2024 at 10:50 PM
Rating
0.00 star(s) 0 ratings


More resources from k1lly0u

  • HeliRefuel
    HeliRefuel
    A mini-event where a helicopter populated with NPCs needs to land to refuel
  • ZombieHorde
    ZombieHorde
    Create hordes of zombies that roam around your server looking for brains
  • Admin Menu
    Admin Menu
    Manage groups, permissions, commands and convars from a GUI menu
  • TeleportGUI
    TeleportGUI
    Teleport, home and warp with a easy to use UI
  • Plane Crash
    Plane Crash
    Call cargo planes that can be shot down by players to score loot

PilotEject by k1lly0u
© chaoscode.io Mar 31, 2017

Latest reviews

Great concept and decent plugin. There's a few things lacking in the config which prevents me from using it exactly the way I want but with a few tweaks it's an easy 5 star plugin.
EPIC PLUGIN!!!!! This should be vanilla feature!
Great plugin. Creates a lot of activity after the heli is destroyed. Also works with Killstreaks helicopters. Wish i could give this plugin more than 5
Works great. Amazing even for my server and players love it
Killer plugin.
Great plugin, except, it overrides normal helicopters... Please let me know how to resolve this, it didn't stop spawning regular heli's until I installed this.
love this mod keep up the good work!
This plugin is a wonder and my users love it!
Buy it now, you won't be disappointed.
Why are u watching reviews? Buy it!
Great support / Great plugin
Great plugin, great support.