mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
#include "scheduler.hpp"
|
|
|
|
sched_gui_init = { [false] };
|
|
|
|
sched_gui = {
|
|
HIDE_FSM_VARS
|
|
private [ "_array", "_initDone" ];
|
|
|
|
_initDone = _this select 0;
|
|
|
|
if ((!_initDone and !isNil 'Dayz_loginCompleted') and {(Dayz_loginCompleted)}) then {
|
|
if (profileNamespace getVariable ["statusUI",1] == 1) then {
|
|
3 cutRsc [if (toLower DZE_UI == "vanilla") then {"playerStatusGUI"} else {"playerStatusGUI_epoch"},"PLAIN",3]; // show the whole HUD
|
|
} else {
|
|
//This can be removed after friendlies system is removed from player_updateGUI
|
|
uiNamespace setVariable ["DAYZ_GUI_display",displayNull];
|
|
};
|
|
_initDone = true;
|
|
};
|
|
//else {
|
|
// diag_log [ diag_Ticktime, __FILE__, "waiting", _initDone,Dayz_loginCompleted];
|
|
//};
|
|
if (_initDone) then {
|
|
_array = player call world_surfaceNoise;
|
|
dayz_surfaceNoise = _array select 1;
|
|
dayz_surfaceType = _array select 0;
|
|
call player_checkStealth;
|
|
call player_updateGui;
|
|
};
|
|
|
|
// move this elsewhere, it deals with the menu
|
|
if (!isNull cursorTarget and {!dayz_heartBeat} and {DZE_HeartBeat}) then {
|
|
if (alive cursorTarget) then {
|
|
cursorTarget spawn dayz_lowHumanity;
|
|
};
|
|
};
|
|
|
|
[_initDone]
|
|
};
|