Booby trap boxes and doors with a variety of different traps for players with permission.
You can also enable/disable loot and supply drop autotraps.
Note: Not all options will be relevant to each trap type! For example, as shown above, the field "duration" does not apply to the beancan trap.
Available Traps
- Grenade - drops a grenade
- Beancan - drops a beancan grenade
- Explosive - detonates C4
- Landmine - drops a circle of landmines around the box
- Beartrap - drops a circle of beartraps around the box
- Radiation - create a radiation zone around the box
- Shock - electrocutes the looter
- Fire - burns the looter
Permisions
- boobytraps.elements -- Allowss setting fire/shock booby traps
- boobytraps.explosives -- Allows setting grenade/beancan/explosive booby traps
- boobytraps.deployables -- Allows setting landmine/beartrap booby traps
- boobytraps.admin -- Allows setting any trap, bypassing costs to use, and use of admin commands
Notes
- Traps are activated when a player opens the trapped object, or if the object takes damage!
- You can set traps on any kind of wood storage box/small stash, supply drops, rubbish piles, loot containers (barrels, military boxes, etc.), doors etc.
- Traps set on player placed boxes/doors will be saved, traps set on barrels and loot boxes will be wiped on restart/unload.
- It is not recommended to set traps on your main loot boxes as the box, and everything surrounding it will take damage!
- If you hear a noise when you open a box you had better run!
Chat Commands
Player Commands
- /trap -- Displays the help menu and traps available to the player
- /trap costs -- Shows the costs for that trap type
- /trap set -- Set a trap on the object the player is looking at
- /trap remove -- Remove a trap if it is set by the player
- /trap check -- Check the object the player is looking at for any traps set by themselves
Admin Commands
- /trap removeall -- Clear all currently set traps
- /trap list -- List all current traps to console
Configuration
The settings and options can be configured in the BoobyTraps file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Autotrap Options
Autotrap will assign a random enabled trap to loot/supply drops as it spawns. The chance for each can be adjust in the config (setting chance to 40 gives it a 1 in 40 chance of trapping the loot.)You can also enable/disable loot and supply drop autotraps.
Trap Type Configuration
Example:Note: Not all options will be relevant to each trap type! For example, as shown above, the field "duration" does not apply to the beancan trap.