Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Supply Drop is an Exiled plugin that makes a chopper/car drop supplies at the surface at the designated time.

Notifications You must be signed in to change notification settings

Wafelowski/Supply-Drop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Exiled FrameworkSCP: Secret Laboratory

Supply-Drop

Supply Drop is an Exiled plugin that makes the chopper and car drop supplies at the surface at the designated time.

How to Use / Configure

Step 1: Download the latest release from here

Step 2: Place into your plugins folder.

Step 3: Configure it (see the section below)

Step 4: PROFIT!

Config and Commands

Default Config
SD:
  # Please take time to read the Github Readme.
  is_enabled: true
  # Minimum players on the server to spawn the drops.
  min_players: 2
  # List of MTF Chopper Drop items
  mtf_items:
  - item: GunCOM18
    quantity: 1
    chance: 100
  - item: GunE11SR
    quantity: 1
    chance: 100
  - item: Ammo762x39
    quantity: 2
    chance: 100
  - item: Ammo9x19
    quantity: 2
    chance: 100
  - item: Medkit
    quantity: 2
    chance: 100
  - item: Medkit
    quantity: 2
    chance: 20
  - item: Adrenaline
    quantity: 1
    chance: 100
  - item: KeycardO5
    quantity: 1
    chance: 10
  # List of Chaos Car Drop items
  chaos_items:
  - item: GunLogicer
    quantity: 2
    chance: 100
  - item: Ammo762x39
    quantity: 5
    chance: 100
  - item: Medkit
    quantity: 2
    chance: 100
  - item: ArmorCombat
    quantity: 2
    chance: 20
  - item: Adrenaline
    quantity: 1
    chance: 100
  - item: KeycardO5
    quantity: 1
    chance: 10
  # Settings for MTF Chopper Drop
  chopper_time: 600
  chopper_broadcast: <size=35><i><color=#0080FF>MTF Chopper</color> <color=#5c5c5c>with a</color> <color=#7a7a7a>Supply Drop</color> <color=#5c5c5c>has arrived!</color></i></size>
  chopper_broadcast_time: 10
  # How many drops can the helicopter do per round? Set to -1 to disable limit.
  chopper_drops_limit: -1
  # Coordinates used for the items spawn. Set to 0's to use random spawn point.
  chopper_pos_ammo:
    x: 173
    y: 993
    z: -56
  chopper_pos_armors:
    x: 173
    y: 993
    z: -58
  chopper_pos_items:
    x: 173
    y: 993
    z: -60
  chopper_pos_weapons:
    x: 173
    y: 993
    z: -62
  # Settings for Chaos Car Drop
  car_time: 600
  # Time difference between the chopper and car. Chopper will always spawn first. Leave at 1 if you want to disable it.
  time_difference: 300
  car_broadcast: <size=35><i><color=#5c5c5c>A</color> <color=#28AD00>Chaos Insurgency Car</color> <color=#5c5c5c>with a</color> <color=#7a7a7a>Supply Drop</color> <color=#5c5c5c>has arrived!</color></i></size>
  car_broadcast_time: 10
  # How many drops can the car do per round? Set to -1 to disable limit.
  car_drops_limit: -1
  # Coordinates used for the items spawn. Set to 0's to use random spawn point.
  car_pos_ammo:
    x: 2
    y: 989
    z: -50
  car_pos_armors:
    x: 4.5
    y: 989
    z: -50
  car_pos_items:
    x: 7
    y: 989
    z: -50
  car_pos_weapons:
    x: 9.5
    y: 989
    z: -50
  # Don't use it unless you have issues with the plugin. When sending a log enable this please.
  debug: false
Commands and Permissions
Command Description
supplydrop Enable or disable drops. You can also view their disabled status.
spawnchopper Force spawn a chopper drop. Ignores drops limit and disabled status.
spawncar Like the above, but with chaos car.
Command Parameters Permissions Aliases
supplydrop status/enable/disable/chopper/car supplydrop.manage sd
spawncar --- supplydrop.spawncar sd_spawncar, spawnchaosdrop
spawnchopper --- supplydrop.spawnchopper sd_spawnchopper, spawnmtfdrop

Functionality & FAQ

How does this work? You might ask, well heres how.
Every 10 minutes (by default) it calls a chopper, when it lands (where MTF spawns) it will spawn in all the items you configured! 5 minutes later (by default) a Chaos Insurgency car will spawn and deliver a supply drop.

FAQ - Please read.

How does the chance system work with quantity higher than 1?

Chance is calculated for every item that will spawn, not item type. If you have 5 medkits with 20% chance, each one will have a 20% chance to spawn. Set the debug option to true to see how it works.

How to give 3 X with 100% chance and 2 X with 20% chance?

Simple, just add two fields with the same item name, but different chance and quantity.

How to disable the broadcast(s)?

Set car/chopper_broadcast to Null

How to disable one of the drops?

For Chaos Insurgency set the car_time value to a very high one.
For MTF use the chopper_time value instead.
Currently, you can't disable the chopper and leave the car enabled.
You can leave time_difference on normal values, that will allow the chopper to spawn more than once with car being disabled.

How to get rid of the time difference between chopper and car?

Set the time_difference value to 1. Not -1, not 0, just 1.

How to get coordinates for the spawn?

Use RemoteAdmin coordinates. How? Just request player data, its in XYZ order.

Why such a complicated coordinates system?

Well, I've heard complains that items fly away if you spawn a big pile of them so I wanted to change that, and this is the best system I believe. I made sure that default values will be the best so you don't have to mess with that.

To-Do list

  • Cassie announcements
  • Command to spawn a chopper/car

Item Names

Ammunition
Name Notes
Ammo12gauge
Ammo44cal
Ammo556x45 Quantity is in packs, not bullets.
Ammo762x39
Ammo9x19
Weapons
Name Notes
GunCOM18
GunE11SR
GunCrossvec
GunFSP9
GunLogicer
GunRevolver Weapons spawn without attachments
GunShotgun
GunAK
---
MicroHID
GrenadeFlash
GrenadeHE
Keycards
Name Notes
KeycardO5
KeycardFacilityManager
KeycardZoneManager
KeycardResearchCoordinator
KeycardContainmentEngineer
KeycardScientist
KeycardJanitor
KeycardNTFCommander
KeycardNTFLieutenant
KeycardNTFOfficer
KeycardGuard
KeycardChaosInsurgency
Armors
Name Notes
ArmorCombat
ArmorHeavy
ArmorLight
Items
Name Notes
Radio
---
Medkit
Adrenaline
Painkillers
---
SCP018
SCP207
SCP268
SCP500

Also available in Exiled discord.

About

Supply Drop is an Exiled plugin that makes a chopper/car drop supplies at the surface at the designated time.

Resources

Stars

Watchers

Forks

Languages

  • C# 100.0%