mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-20 17:55:42 +00:00
cleanup
This commit is contained in:
parent
9b36015636
commit
6315dffe34
@ -832,7 +832,6 @@ createTargetObj( ent, theTime )
|
||||
obj.trace_time_time = 0;
|
||||
obj.rand = randomInt( 100 );
|
||||
obj.didlook = false;
|
||||
obj.isplay = isPlayer( ent );
|
||||
obj.offset = undefined;
|
||||
obj.bone = undefined;
|
||||
obj.aim_offset = undefined;
|
||||
@ -1152,7 +1151,7 @@ onNewEnemy()
|
||||
if ( !isDefined( self.bot.target ) )
|
||||
continue;
|
||||
|
||||
if ( !isDefined( self.bot.target.entity ) || !self.bot.target.isplay )
|
||||
if ( !isDefined( self.bot.target.entity ) || !isPlayer( self.bot.target.entity ) )
|
||||
continue;
|
||||
|
||||
if ( self.bot.target.didlook )
|
||||
@ -1294,7 +1293,7 @@ aim_loop()
|
||||
last_pos = self.bot.target.last_seen_pos;
|
||||
target = self.bot.target.entity;
|
||||
conedot = 0;
|
||||
isplay = self.bot.target.isplay;
|
||||
isplay = isPlayer( self.bot.target.entity );
|
||||
|
||||
offset = self.bot.target.offset;
|
||||
|
||||
@ -1669,7 +1668,7 @@ walk_loop()
|
||||
return;
|
||||
}
|
||||
|
||||
if ( self.bot.target.isplay && self.bot.target.trace_time && self canFire( curweap ) && self isInRange( self.bot.target.dist, curweap ) )
|
||||
if ( isPlayer( self.bot.target.entity ) && self.bot.target.trace_time && self canFire( curweap ) && self isInRange( self.bot.target.dist, curweap ) )
|
||||
{
|
||||
if ( self InLastStand() || self GetStance() == "prone" || ( self.bot.is_cur_sniper && self PlayerADS() > 0 ) )
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user