Radsuit protect against toxic (not bites)

This commit is contained in:
He-Man 2018-07-11 13:30:02 +02:00
parent 2245c36797
commit 43ae5cc72e

View File

@ -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;
};
};
};