Advertisement
Ferix

Untitled

Mar 2nd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.28 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3.     The calm before the storm.
  4. */
  5.  
  6. //Variables
  7.  
  8. private["_boom", "_list","_hp", "_hp2","_deadman"];
  9. _player  = player;
  10. _deadman = 0;
  11.  
  12. //Magic
  13.  
  14. if(vest player != "V_HarnessOGL_gry") exitWith {};
  15.  
  16. hint "Deadman Switch is now active!";                     //Notif
  17. _hp = getDammage _player;                                 //Get starting hp, static
  18.  
  19. for "_i" from 0 to 1 step 0 do
  20.  
  21. {
  22.   _hp2 = getDammage _player;                              //Get hp, changing
  23.  
  24.   if (!alive player) exitWith {};
  25.  
  26.   if (_hp2 != _hp && _deadman == 0) then                                   //iF currEnt hp is not the same as staRtIng hp, detonate
  27.     {
  28.        _deadman = 1;
  29.       removeVest player;
  30.        removeAllWeapons player:
  31.       removeAllAssignedItems player;
  32.        _boom = "Bo_Mk82" createVehicle [0,0,9999];
  33.        _boom setPos (getPos player);
  34.        _boom setVelocity [100,0,0];
  35.     };
  36.  
  37.   if (vest player != "V_HarnessOGL_gry" && _deadman == 0) then
  38.    {
  39.      _deadman = 1;
  40.     removeVest player;
  41.      removeAllWeapons player:
  42.     removeAllAssignedItems player;
  43.      _boom = "Bo_Mk82" createVehicle [0,0,9999];
  44.      _boom setPos (getPos player);
  45.      _boom setVelocity [100,0,0];
  46.      uiSleep 1;
  47.      _player setDamage 1;
  48.    };
  49. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement