Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /**/
  3. private ["_gate","_timer"];
  4. _gate = jail_gate;
  5. _timer = (7*60);
  6. if (_gate getVariable ["bombPlaced",false]) exitWith {hint localize "STR_ISTR_Blast_AlreadyPlaced"};
  7. if (west countSide playableUnits < (LIFE_SETTINGS(getNumber,"jailBreak_cops"))) exitWith { hint format [localize "STR_Civ_NotEnoughCops",(LIFE_SETTINGS(getNumber,"jailBreak_cops"))]};
  8. if (!([false,"blastingcharge",1] call life_fnc_handleInv)) exitWith {}; //handleinv error
  9. _gate setVariable ["bombPlaced",true,true];
  10.  
  11. //Notify
  12. [3,"<t size='1.5'><t color='#e02124'><t align='center'><t font='TahomaB'><t underline='true'>Jail Break<br /><br/></t></t></t></t></t><t size ='1.2'>Rebels have placed a bomb on the jail wall in Kavala. All units must respond. These individuals are considered armed and dangerous.</t>"] remoteExec ["life_fnc_broadcast", west];
  13. [3,"<t size='1.5'><t color='#e02124'><t align='center'><t font='TahomaB'><t underline='true'>Jail Break<br /><br/></t></t></t></t></t><t size ='1.2'>Authorities have confirmed that rebels are attempting a jail break. Civilians are urged to stay away as this is a active combat situtation and anyone in the area may be shot. Thankyou</t>"] remoteExec ["life_fnc_broadcast", civilian];
  14. [0,[_gate,_timer,"Mil_dot","Jail Break in progress"]] remoteExec ["life_fnc_markers",civilian];
  15. [0,[_gate,_timer,"Mil_dot","Jail Break in progress"]] remoteExec ["life_fnc_markers",west];
  16.  
  17. [] spawn life_fnc_jailBreakTimer;
  18. [] remoteExec ["life_fnc_jailBreakTimer",west];
  19. sleep (13*30);
  20.  
  21. //Alert others near
  22. { if (player distance _gate < 100) then {_near pushBack _x};} forEach playableUnits;
  23. [2,"GET BACK FROM THE GATE IT'S GONNA BLOW"] remoteExec ["life_fnc_broadcast",_near];
  24. sleep 30;
  25.  
  26. //Boom
  27. _boom = "Bo_GBU12_LGB_MI10" createVehicle [0,0,9999];
  28. _boom setPos (getPos jail_gate);
  29. _boom setVelocity [100,0,0];
  30. [_gate] remoteExec ["TON_fnc_jailGate",RANY];
  31.  
  32. //cool down till the gate can be destoyed again.
  33. sleep 2400;
  34. _gate setVariable ["bombPlaced",false,true];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement