Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. File: fn_hudSetup.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Setups the hud for the player?
  8. */
  9. private["_alpha","_version","_p","_pg"];
  10. disableSerialization;
  11. _alpha = CONTROL(46,1001);
  12. _version = CONTROL(46,1000);
  13.  
  14. 2 cutRsc ["playerHUD","PLAIN"];
  15. _version ctrlSetText format["BETA: 0.%1.%2",(productVersion select 2),(productVersion select 3)];
  16. [] call life_fnc_hudUpdate;
  17.  
  18. if(!life_hudStarted) then {
  19. life_hudStarted = true;
  20. [] spawn
  21. {
  22. private["_dam","_fatigue"];
  23. while {true} do
  24. {
  25. _dam = damage player;
  26. _fatigue = getFatigue player;
  27. waitUntil {(damage player) != _dam && (getFatigue player) != _fatigue};
  28. [] call life_fnc_hudUpdate;
  29. };
  30. };
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement