From 61700f5b4176374196f558766eaf11e7d97fb145 Mon Sep 17 00:00:00 2001 From: vbawol Date: Sat, 24 Jun 2017 10:40:41 -0500 Subject: [PATCH] fix from @Ignatz-HeMan "otherwise he checks the aimpos of the Vehicle and this is mostly not visible for the zombie" --- Sources/epoch_code/System/EPOCH_zombie_brain.fsm | 4 ++-- .../compile/environment/EPOCH_client_bitePlayer.sqf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/epoch_code/System/EPOCH_zombie_brain.fsm b/Sources/epoch_code/System/EPOCH_zombie_brain.fsm index 4c8dd485..3bf5a9ce 100644 --- a/Sources/epoch_code/System/EPOCH_zombie_brain.fsm +++ b/Sources/epoch_code/System/EPOCH_zombie_brain.fsm @@ -669,7 +669,7 @@ class FSM "" \n "" \n " {" \n - " _sight = [_zombie, ""VIEW""] checkVisibility [eyePos _zombie,aimPos _x];" \n + " _sight = [_zombie, ""VIEW""] checkVisibility [eyePos _zombie,aimPos (driver _x)];" \n " if(alive _x)then{" \n " if(_sight >= 0.62)then{" \n " _thisPos = getPosATL _x;" \n @@ -876,4 +876,4 @@ class FSM "end", }; }; -/*%FSM*/ \ No newline at end of file +/*%FSM*/ diff --git a/Sources/epoch_code/compile/environment/EPOCH_client_bitePlayer.sqf b/Sources/epoch_code/compile/environment/EPOCH_client_bitePlayer.sqf index 8d46ecef..06884a74 100644 --- a/Sources/epoch_code/compile/environment/EPOCH_client_bitePlayer.sqf +++ b/Sources/epoch_code/compile/environment/EPOCH_client_bitePlayer.sqf @@ -35,7 +35,7 @@ if (isNull objectParent _target) then { _doAttack = true; } else { // send attack to other player - if (isplayer _target) then { + if (isPlayer _target) then { [_unit,_target] remoteExec ["EPOCH_client_bitePlayer", _target]; }; }; @@ -48,7 +48,7 @@ if (isNull objectParent _target) then { _doAttack = true; } else { // send attack to other players - if (isplayer _x) then { + if (isPlayer _x) then { [_unit,_x] remoteExec ["EPOCH_client_bitePlayer", _x]; }; };