Body Traps
Version 1.0
What it does....
Gives you a scroll option when you are looking at something dead ( not sure if it can be placed on AI) to place an explosive. This explodes when someone comes within 5 meters (default, can change) This is a reworked version of my Booby Trap.
Requirements (inc. Tools(must include dowload link)/ Expected Time/Difficulty)
Kris
Buttface
CommanderRetra
Discussion \ help thread
Download Link
Version 1.0
What it does....
Gives you a scroll option when you are looking at something dead ( not sure if it can be placed on AI) to place an explosive. This explodes when someone comes within 5 meters (default, can change) This is a reworked version of my Booby Trap.
Requirements (inc. Tools(must include dowload link)/ Expected Time/Difficulty)
- Easy = Blue <10
- Notepad ++
- If you have not already, override fn_selfActions and compiles.sqf (will go over later), in your fn_selfActions place
Code:if ((speed player <= 1) && !_isAlive && _canDo and (player distance cursorTarget < 3)) then { if (s_player_makePLBomb < 0) then { s_player_makePLBomb = player addAction [("<t color=""#c30000"">" + ("Booby trap the body?") +"</t>"),"Scripts\SetBodyBomb.sqf","",5,false,true,"",""]; }; } else { player removeAction s_player_makePLBomb; s_player_makePLBomb = -1; }; /* Create by MattL. Places a bomb on a players body */
- Download the 3 files and place them in a Scripts folder (Link at the bottom) and then in your init place
Code:if (isServer) then { "DZ_bodyTrap" addPublicVariableEventHandler {[_this select 1] execVM 'Scripts\createBodyBomb.sqf'}; };
- change the distance you want the bombs to explode, found in createBodyBomb.sqf
Code:
_bombTrigger setTriggerArea [5,5,0,false];
- Can I edit this to only be used for bandits/heros or to explode for bandits/heroes? Yes you can, refer to my original Booby Trap post for instructions how. You can also restrict use by UID instead of humanity.
- The option won't show / doesn't work...If you are using an antihack you need to whitelist s_player_makePLBomb in the dayz_actions section
- How can I restrict the use of this to only work on dead players, or dead animals, or dead zombies? In fn_selfActions find
Code:
if ((speed player <= 1) && !_isAlive && _canDo) then {
Code:if ((speed player <= 1) && !_isAlive && _canDo && _isZombie && _isAnimal && _isMan) then { Remove what you don't want/need
Kris
Buttface
CommanderRetra
Discussion \ help thread
Download Link