From ae558a7fa585a1e08c674a6fbfcfd9587e48ac1e Mon Sep 17 00:00:00 2001 From: He-Man Date: Thu, 28 Feb 2019 21:06:01 +0100 Subject: [PATCH] Reset Toxic after Revive --- Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf b/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf index fc71d57e..d5717a6a 100644 --- a/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf +++ b/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf @@ -62,6 +62,10 @@ if !(alive player && alive _playerObject && !isPlayer _playerObject) then { if !(isNil "_playerBloodPKey") then {_playerBloodPKeyFinal = _playerBloodPKey}; missionNamespace setVariable [_playerBloodPKeyFinal, 120]; + _playerToxicityKeyFinal = "EPOCH_playerToxicity"; + if !(isNil "_playerToxicityKey") then {_playerToxicityKeyFinal = _playerToxicityKey}; + missionNamespace setVariable [_playerToxicityKeyFinal, 0]; + // Wait until _playerObject is local before adding Rating and EH's waituntil {local _playerObject};