mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Only cache info on death if not a spectator
This commit is contained in:
@ -18,9 +18,11 @@ private ["_unit","_killer","_delay"];
|
|||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_killer = _this select 1;
|
_killer = _this select 1;
|
||||||
|
|
||||||
//Cache resettable info first
|
//Cache resettable info if player died while not already a spectator
|
||||||
GVAR(cachedGroup) = group _unit;
|
if !(_unit getVariable [QGVAR(isSpectator),false]) then {
|
||||||
GVAR(cachedSide) = side GVAR(cachedGroup);
|
GVAR(cachedGroup) = group _unit;
|
||||||
|
GVAR(cachedSide) = side GVAR(cachedGroup);
|
||||||
|
};
|
||||||
|
|
||||||
[_unit] joinSilent grpNull;
|
[_unit] joinSilent grpNull;
|
||||||
if (["ace_hearing"] call EFUNC(common,isModLoaded)) then {EGVAR(hearing,disableVolumeUpdate) = true};
|
if (["ace_hearing"] call EFUNC(common,isModLoaded)) then {EGVAR(hearing,disableVolumeUpdate) = true};
|
||||||
|
Reference in New Issue
Block a user