mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-20 21:25:42 +00:00
small fixes
This commit is contained in:
parent
a83ba3e9eb
commit
d27f9d680d
@ -4411,6 +4411,8 @@ bot_killstreak_think_loop( data )
|
||||
if ( DistanceSquared( self.origin, forwardTrace["position"] ) < 1000 * 1000 && self.pers["bots"]["skill"]["base"] > 3 )
|
||||
return;
|
||||
|
||||
self BotNotifyBotEvent( "killstreak", "call", streakName );
|
||||
|
||||
self BotStopMoving( true );
|
||||
self SetScriptAimPos( forwardTrace["position"] );
|
||||
|
||||
@ -4421,8 +4423,6 @@ bot_killstreak_think_loop( data )
|
||||
return;
|
||||
}
|
||||
|
||||
self BotNotifyBotEvent( "killstreak", "call", streakName );
|
||||
|
||||
wait 1;
|
||||
self notify( "place_sentry" );
|
||||
wait 0.05;
|
||||
@ -4441,6 +4441,8 @@ bot_killstreak_think_loop( data )
|
||||
if ( !isDefined( location ) )
|
||||
return;
|
||||
|
||||
self BotNotifyBotEvent( "killstreak", "call", streakName, location );
|
||||
|
||||
self BotRandomStance();
|
||||
self setUsingRemote( "remotemissile" );
|
||||
self thread clear_remote_on_death();
|
||||
@ -4454,8 +4456,6 @@ bot_killstreak_think_loop( data )
|
||||
return;
|
||||
}
|
||||
|
||||
self BotNotifyBotEvent( "killstreak", "call", streakName );
|
||||
|
||||
wait 1;
|
||||
self notify( "bot_clear_remote_on_death" );
|
||||
self BotStopMoving( false );
|
||||
@ -4546,6 +4546,8 @@ bot_killstreak_think_loop( data )
|
||||
if ( !bulletTracePassed( forwardTrace["position"], forwardTrace["position"] + ( 0, 0, 2048 ), false, self ) && self.pers["bots"]["skill"]["base"] > 3 )
|
||||
return;
|
||||
|
||||
self BotNotifyBotEvent( "killstreak", "call", streakName );
|
||||
|
||||
self BotStopMoving( true );
|
||||
self SetScriptAimPos( forwardTrace["position"] );
|
||||
|
||||
@ -4556,8 +4558,6 @@ bot_killstreak_think_loop( data )
|
||||
return;
|
||||
}
|
||||
|
||||
self BotNotifyBotEvent( "killstreak", "call", streakName );
|
||||
|
||||
self thread fire_current_weapon();
|
||||
|
||||
ret = self waittill_any_timeout( 5, "grenade_fire" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user