Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- The calm before the storm.
- */
- //Variables
- private["_boom", "_list","_hp", "_hp2","_deadman"];
- _player = player;
- _deadman = 0;
- //Magic
- if(vest player != "V_HarnessOGL_gry") exitWith {};
- hint "Deadman Switch is now active!"; //Notif
- _hp = getDammage _player; //Get starting hp, static
- for "_i" from 0 to 1 step 0 do
- {
- _hp2 = getDammage _player; //Get hp, changing
- if (!alive player) exitWith {};
- if (_hp2 != _hp && _deadman == 0) then //iF currEnt hp is not the same as staRtIng hp, detonate
- {
- _deadman = 1;
- removeVest player;
- removeAllWeapons player:
- removeAllAssignedItems player;
- _boom = "Bo_Mk82" createVehicle [0,0,9999];
- _boom setPos (getPos player);
- _boom setVelocity [100,0,0];
- };
- if (vest player != "V_HarnessOGL_gry" && _deadman == 0) then
- {
- _deadman = 1;
- removeVest player;
- removeAllWeapons player:
- removeAllAssignedItems player;
- _boom = "Bo_Mk82" createVehicle [0,0,9999];
- _boom setPos (getPos player);
- _boom setVelocity [100,0,0];
- uiSleep 1;
- _player setDamage 1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement