Merge pull request #3181 from acemod/leaveMyPlugsAlone

Do not add or remove earplugs if gear should be preserved
This commit is contained in:
Thomas Kooi 2016-01-19 09:34:38 +01:00
commit 5c1f55a0f1

View File

@ -20,6 +20,9 @@ TRACE_2("params",_unit,typeOf _unit);
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;
//if respawn is not Group or side: