Fixed head glitching

This commit is contained in:
INeedBots 2020-10-25 13:58:05 -06:00
parent 5eff973b47
commit e76e8c1084

View File

@ -1777,10 +1777,16 @@ target()
} }
else else
{ {
canTargetPlayer = (bulletTracePassed(myEye, player getTagOrigin( "j_head" ), false, player) || targetHead = player getTagOrigin( "j_head" );
bulletTracePassed(myEye, player getTagOrigin( "j_ankle_le" ), false, player) || targetAnkleLeft = player getTagOrigin( "j_ankle_le" );
bulletTracePassed(myEye, player getTagOrigin( "j_ankle_ri" ), false, player)) targetAnkleRight = player getTagOrigin( "j_ankle_ri" );
&& (distanceSquared(PhysicsTrace( player getTagOrigin( "j_spine4" ), myEye ), myEye) <= 0.0)
canTargetPlayer = (bulletTracePassed(myEye, targetHead, true, player) ||
bulletTracePassed(myEye, targetAnkleLeft, true, player) ||
bulletTracePassed(myEye, targetAnkleRight, true, player))
&& (distanceSquared(PhysicsTrace( targetHead, myEye ), myEye) <= 1.0 ||
distanceSquared(PhysicsTrace( targetAnkleLeft, myEye ), myEye) <= 1.0 ||
distanceSquared(PhysicsTrace( targetAnkleRight, myEye ), myEye) <= 1.0)
&& (SmokeTrace(myEye, player.origin, level.smokeRadius) || && (SmokeTrace(myEye, player.origin, level.smokeRadius) ||
daDist < level.bots_maxKnifeDistance*4) daDist < level.bots_maxKnifeDistance*4)
&& (getConeDot(player.origin, self.origin, myAngles) >= myFov || && (getConeDot(player.origin, self.origin, myAngles) >= myFov ||