mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-13 07:54:50 +00:00
fixed hasPerk
This commit is contained in:
parent
47be561ebb
commit
52196f6b8d
@ -1345,7 +1345,7 @@ canAds(dist, curweap)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
far = level.bots_noADSDistance;
|
far = level.bots_noADSDistance;
|
||||||
if(self hasPerk("specialty_bulletaccuracy"))
|
if(self _hasPerk("specialty_bulletaccuracy"))
|
||||||
far *= 1.4;
|
far *= 1.4;
|
||||||
|
|
||||||
if(dist < far)
|
if(dist < far)
|
||||||
|
@ -2939,7 +2939,7 @@ bot_listen_to_steps()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
dist = level.bots_listenDist;
|
dist = level.bots_listenDist;
|
||||||
if(self hasPerk("specialty_selectivehearing"))
|
if(self _hasPerk("specialty_selectivehearing"))
|
||||||
dist *= 1.4;
|
dist *= 1.4;
|
||||||
|
|
||||||
dist *= dist;
|
dist *= dist;
|
||||||
@ -2964,7 +2964,7 @@ bot_listen_to_steps()
|
|||||||
if( distanceSquared(player.origin, self.origin) > dist )
|
if( distanceSquared(player.origin, self.origin) > dist )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( player hasPerk("specialty_quieter"))
|
if( player _hasPerk("specialty_quieter"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
heard = player;
|
heard = player;
|
||||||
@ -2989,7 +2989,7 @@ bot_listen_to_steps()
|
|||||||
if(!isReallyAlive(player))
|
if(!isReallyAlive(player))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (player hasPerk("specialty_heartbreaker"))
|
if (player _hasPerk("specialty_heartbreaker"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (distanceSquared(player.origin, self.origin) > heartbeatDist)
|
if (distanceSquared(player.origin, self.origin) > heartbeatDist)
|
||||||
@ -3073,7 +3073,7 @@ bot_uav_think()
|
|||||||
if(distFromPlayer > dist)
|
if(distFromPlayer > dist)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if((!isSubStr(player getCurrentWeapon(), "_silencer_") && player.bots_firing) || (hasRadar && !player hasPerk("specialty_coldblooded")))
|
if((!isSubStr(player getCurrentWeapon(), "_silencer_") && player.bots_firing) || (hasRadar && !player _hasPerk("specialty_coldblooded")))
|
||||||
{
|
{
|
||||||
distSq = self.pers["bots"]["skill"]["help_dist"] * self.pers["bots"]["skill"]["help_dist"];
|
distSq = self.pers["bots"]["skill"]["help_dist"] * self.pers["bots"]["skill"]["help_dist"];
|
||||||
if (distFromPlayer < distSq && bulletTracePassed(self getEye(), player getTagOrigin( "j_spineupper" ), false, player))
|
if (distFromPlayer < distSq && bulletTracePassed(self getEye(), player getTagOrigin( "j_spineupper" ), false, player))
|
||||||
@ -3244,7 +3244,7 @@ bot_turret_think()
|
|||||||
facing = false;
|
facing = false;
|
||||||
if ( turret isStunned() )
|
if ( turret isStunned() )
|
||||||
facing = false;
|
facing = false;
|
||||||
if(self hasPerk("specialty_coldblooded"))
|
if(self _hasPerk("specialty_coldblooded"))
|
||||||
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 ) )
|
||||||
@ -4777,7 +4777,7 @@ bot_sab()
|
|||||||
if(self HasScriptGoal())
|
if(self HasScriptGoal())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(carrier hasPerk( "specialty_coldblooded" ))
|
if(carrier _hasPerk( "specialty_coldblooded" ))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
origin = carrier.origin;
|
origin = carrier.origin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user