simply prevent display EH loading after revive.

Thanks to @Ignatz-HeMan for the report.
This commit is contained in:
vbawol 2016-11-26 10:18:06 -06:00
parent 7913ee0ea7
commit 8e1d960496

View File

@ -1,13 +1,17 @@
// make sure we wait for Display #46
waitUntil {!(isNull (findDisplay 46))};
// setup display EH's
{
(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;
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;
EPOCH_display_setup_complete = true;
};
_prevEquippedItem = [];
_damagePlayer = damage player;