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;
- _Temperature = player getVariable "MCF_Temp";
- if (isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
- LIFEctrl(2200) progressSetPosition (life_hunger / 100);
- LIFEctrl(2201) progressSetPosition (1 - (damage player));
- LIFEctrl(2202) progressSetPosition (life_thirst / 100);
- switch (true) do {
- case (_Temperature >= 35.5 && _Temperature <= 36.9): {
- LIFEctrl(2203) ctrlSetStructuredText parseText format["<t size='1px' color='#0AD2FA'>%1°</t>",_Temperature];
- };
- case (_Temperature >= 37 && _Temperature <= 37.9): {
- LIFEctrl(2203) ctrlSetStructuredText parseText format["<t size='1px' color='#12CD2B'>%1°</t>",_Temperature];
- };
- case (_Temperature >= 38 && _Temperature < 38.99): {
- LIFEctrl(2203) ctrlSetStructuredText parseText format["<t size='1px' color='#F07407'>%1°</t>",_Temperature];
- };
- case (_Temperature >= 39 && _Temperature <= 41): {
- LIFEctrl(2203) ctrlSetStructuredText parseText format["<t size='1px' color='#FE0101'>%1°</t>",_Temperature];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement