mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
simply prevent display EH loading after revive.
Thanks to @Ignatz-HeMan for the report.
This commit is contained in:
parent
7913ee0ea7
commit
8e1d960496
@ -1,13 +1,17 @@
|
||||
// make sure we wait for Display #46
|
||||
waitUntil {!(isNull (findDisplay 46))};
|
||||
|
||||
// setup display EH's
|
||||
{
|
||||
if (isNil "EPOCH_display_setup_complete") then {
|
||||
{
|
||||
(findDisplay 46) displayAddEventHandler [_x,(["CfgEpochClient", _x, ""] call EPOCH_fnc_returnConfigEntryV2)];
|
||||
} forEach (["CfgEpochClient", "displayAddEventHandler", []] call EPOCH_fnc_returnConfigEntryV2);
|
||||
// reset anim state
|
||||
player switchMove "";
|
||||
// setup Epoch Hud
|
||||
call epoch_dynamicHUD_start;
|
||||
} forEach (["CfgEpochClient", "displayAddEventHandler", []] call EPOCH_fnc_returnConfigEntryV2);
|
||||
// reset anim state
|
||||
player switchMove "";
|
||||
// setup Epoch Hud
|
||||
call epoch_dynamicHUD_start;
|
||||
EPOCH_display_setup_complete = true;
|
||||
};
|
||||
|
||||
_prevEquippedItem = [];
|
||||
_damagePlayer = damage player;
|
||||
|
Loading…
Reference in New Issue
Block a user