Advertisement
Matt34

Untitled

Jun 27th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. _mags = magazines player;
  2.  
  3. // Krixes Self Bloodbag
  4. if ("ItemBloodbag" in _mags) then {
  5. hasBagItem = true;
  6. } else { hasBagItem = false;};
  7. if((speed player <= 1) && hasBagItem && _canDo) then {
  8. if (s_player_selfBloodbag < 0) then {
  9. s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Fixes\player_selfbloodbag.sqf","",5,false,true,"", ""];
  10. };
  11. } else {
  12. player removeAction s_player_selfBloodbag;
  13. s_player_selfBloodbag = -1;
  14. };
  15.  
  16. if((speed player <= 1) && _canDo) then {
  17. if (s_player_toggle < 0) then {
  18. s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
  19. };
  20. } else {
  21. player removeAction s_player_toggle;
  22. s_player_toggle = -1;
  23. };
  24.  
  25. if (("ItemEtool" in weapons player) && ("PartWoodPile" in magazines player) && (speed player <= 1) && _canDo) then {
  26. hasBomb = true;
  27. } else {
  28. hasBomb = false;
  29. };
  30. if ((hasBomb) && ("HandGrenade_West" in magazines player)) then {
  31. if (s_player_makeBomb < 0) then {
  32. s_player_makeBomb = player addAction [("<t color=""#c30000"">" + ("Place Exploding Booby Trap") +"</t>"),"scripts\boobytrap.sqf","",5,false,true,"",""];
  33. };
  34. } else {
  35. player removeAction s_player_makeBomb;
  36. s_player_makeBomb = -1;
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement