Do not add or remove earplugs if gear should be preserved. Fix #3180.

This commit is contained in:
esteldunedain 2016-01-18 13:23:55 -03:00
parent 8cbf31a375
commit 0a91dfa7b2

View File

@ -20,6 +20,9 @@ TRACE_2("params",_unit,typeOf _unit);
if (!local _unit) exitWith {}; //XEH should only be called on local units if (!local _unit) exitWith {}; //XEH should only be called on local units
//Do not add or remove earplugs if gear should be preserved
if (missionNamespace getVariable [QEGVAR(respawn,SavePreDeathGear), false]) exitWith {};
private _respawn = [0] call BIS_fnc_missionRespawnType; private _respawn = [0] call BIS_fnc_missionRespawnType;
//if respawn is not Group or side: //if respawn is not Group or side: