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 ) )