Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_hudUpdate.sqf
  4. Author: Daniel Stuart
  5.  
  6. Description:
  7. Updates the HUD when it needs to.
  8. */
  9. disableSerialization;
  10.  
  11. if (isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
  12. LIFEctrl(88201) ctrlSetText format["%1",life_hunger];
  13. LIFEctrl(88203) ctrlSetText format["%1",(round ((player getVariable["ACE_medical_bloodVolume",100]) * (10 ^ 2)) / (10 ^ 2))]; // Arrondi à 2 décimales
  14. LIFEctrl(88202) ctrlSetText format["%1",life_thirst];
  15.  
  16. switch(TF_speak_volume_level) do {
  17. case "whispering": {
  18. _volume = "Murmurer";
  19. LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr1.paa";
  20. };
  21. case "yelling": {
  22. _volume = "Crier";
  23. LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr3.paa";
  24. };
  25. case "normal": {
  26. _volume = "Parler";
  27. LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr2.paa";
  28. };
  29. default {
  30. _volume = "Parler";
  31. LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr2.paa";
  32. };
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement