Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. /*
  2. File: fn_stabiliseAction
  3.  
  4. Author: Bobbus/Kevin
  5.  
  6. Description: is sent to client to extend bleedout time of player
  7. */
  8. private["_bleedTime","_medic"];
  9. _medic = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  10. _bleedTime = life_bleedout;
  11. if (isNull _medic) exitWith {};
  12. if (!isPlayer _medic) exitWith {};
  13. if(!(player getVariable ["unconscious",false])) exitWith {};
  14.  
  15. titleText [format ["%1 is stabilising your wounds...",name _medic],"PLAIN"];
  16. sleep 4;
  17. switch (true) do
  18. {
  19. case (player getVariable["mm",false]): { _bleedTime = _bleedTime + 100; };
  20. case (player getVariable["acp",false]): { _bleedTime = _bleedTime + 85; };
  21. case (player getVariable["rifle",false]): { _bleedTime = _bleedTime + 70; };
  22. case (player getVariable["heavy",false]): { _bleedTime = _bleedTime + 55; };
  23. case (player getVariable["sniper",false]): { _bleedTime = _bleedTime + 45; };
  24. case (player getVariable["fucked",false]): { _bleedTime = _bleedTime + 30; };
  25. default {_bleedTime = _bleedTime + 120; };
  26. };
  27. life_bleedout = _bleedTime;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement