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; (_attackers select 0) call EPOCH_client_bitePlayer;
_panic = true; _panic = true;
} else { } else {
_toxicObjs = player nearobjects["SmokeShellCustom", 12]; if !(uniform player in ["Epoch_RadiationSuit_F","Epoch_RadiationSuit_M"]) then {
if!(_toxicObjs IsEqualTo[]) then { _toxicObjs = player nearobjects["SmokeShellCustom", 12];
(_toxicObjs select 0) call EPOCH_client_bitePlayer; if!(_toxicObjs IsEqualTo[]) then {
_panic = true; (_toxicObjs select 0) call EPOCH_client_bitePlayer;
} else { _panic = true;
_panic = false; } else {
_panic = false;
};
}; };
}; };