From 43ae5cc72e58ac95b31452a47d0b6a686da40790 Mon Sep 17 00:00:00 2001 From: He-Man Date: Wed, 11 Jul 2018 13:30:02 +0200 Subject: [PATCH] Radsuit protect against toxic (not bites) --- .../epoch_code/compile/setup/masterLoop/Event2.sqf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf index 49552d17..5fe75233 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf @@ -85,12 +85,14 @@ if !(_attackers isEqualTo[]) then { (_attackers select 0) call EPOCH_client_bitePlayer; _panic = true; } else { - _toxicObjs = player nearobjects["SmokeShellCustom", 12]; - if!(_toxicObjs IsEqualTo[]) then { - (_toxicObjs select 0) call EPOCH_client_bitePlayer; - _panic = true; - } else { - _panic = false; + if !(uniform player in ["Epoch_RadiationSuit_F","Epoch_RadiationSuit_M"]) then { + _toxicObjs = player nearobjects["SmokeShellCustom", 12]; + if!(_toxicObjs IsEqualTo[]) then { + (_toxicObjs select 0) call EPOCH_client_bitePlayer; + _panic = true; + } else { + _panic = false; + }; }; };