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 // make sure we wait for Display #46
waitUntil {!(isNull (findDisplay 46))}; waitUntil {!(isNull (findDisplay 46))};
// setup display EH's // setup display EH's
{ if (isNil "EPOCH_display_setup_complete") then {
{
(findDisplay 46) displayAddEventHandler [_x,(["CfgEpochClient", _x, ""] call EPOCH_fnc_returnConfigEntryV2)]; (findDisplay 46) displayAddEventHandler [_x,(["CfgEpochClient", _x, ""] call EPOCH_fnc_returnConfigEntryV2)];
} forEach (["CfgEpochClient", "displayAddEventHandler", []] call EPOCH_fnc_returnConfigEntryV2); } forEach (["CfgEpochClient", "displayAddEventHandler", []] call EPOCH_fnc_returnConfigEntryV2);
// reset anim state // reset anim state
player switchMove ""; player switchMove "";
// setup Epoch Hud // setup Epoch Hud
call epoch_dynamicHUD_start; call epoch_dynamicHUD_start;
EPOCH_display_setup_complete = true;
};
_prevEquippedItem = []; _prevEquippedItem = [];
_damagePlayer = damage player; _damagePlayer = damage player;