Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_hudUpdate.sqf
- Author: Daniel Stuart
- Description:
- Updates the HUD when it needs to.
- */
- disableSerialization;
- if (isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
- LIFEctrl(88201) ctrlSetText format["%1",life_hunger];
- LIFEctrl(88203) ctrlSetText format["%1",(round ((player getVariable["ACE_medical_bloodVolume",100]) * (10 ^ 2)) / (10 ^ 2))]; // Arrondi à 2 décimales
- LIFEctrl(88202) ctrlSetText format["%1",life_thirst];
- switch(TF_speak_volume_level) do {
- case "whispering": {
- _volume = "Murmurer";
- LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr1.paa";
- };
- case "yelling": {
- _volume = "Crier";
- LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr3.paa";
- };
- case "normal": {
- _volume = "Parler";
- LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr2.paa";
- };
- default {
- _volume = "Parler";
- LIFEctrl(88200) ctrlsetText "\uphilarp\icons\tfr2.paa";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement