Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_hudSetup.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Setups the hud for the player?
- */
- private["_alpha","_version","_p","_pg"];
- disableSerialization;
- _alpha = CONTROL(46,1001);
- _version = CONTROL(46,1000);
- 2 cutRsc ["playerHUD","PLAIN"];
- _version ctrlSetText format["BETA: 0.%1.%2",(productVersion select 2),(productVersion select 3)];
- [] call life_fnc_hudUpdate;
- if(!life_hudStarted) then {
- life_hudStarted = true;
- [] spawn
- {
- private["_dam","_fatigue"];
- while {true} do
- {
- _dam = damage player;
- _fatigue = getFatigue player;
- waitUntil {(damage player) != _dam && (getFatigue player) != _fatigue};
- [] call life_fnc_hudUpdate;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement