1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 15:11:49 +00:00

fixed remote sentry

This commit is contained in:
ineedbots
2021-05-19 22:48:54 -06:00
parent e7729c3b63
commit 138b6ddd46

View File

@ -3454,7 +3454,7 @@ bot_turret_think()
facing = false; facing = false;
if(self _hasPerk("specialty_blindeye")) if(self _hasPerk("specialty_blindeye"))
facing = false; facing = false;
if (turret.sentryType == "sam_turret") if (!isDefined(turret.sentryType) || turret.sentryType == "sam_turret")
facing = false; facing = false;
if ( facing && !BulletTracePassed( myEye, turret.origin + ( 0, 0, 15 ), false, turret ) ) if ( facing && !BulletTracePassed( myEye, turret.origin + ( 0, 0, 15 ), false, turret ) )