mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-09-18 16:37:25 +00:00
readd
This commit is contained in:
@@ -52,6 +52,7 @@ connected()
|
||||
self thread onSpawned();
|
||||
|
||||
self thread onDeath();
|
||||
self thread onGiveLoadout();
|
||||
|
||||
self thread onKillcam();
|
||||
|
||||
@@ -1472,6 +1473,35 @@ onDeath()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Watches when the bot is given a loadout
|
||||
*/
|
||||
onGiveLoadout_loop()
|
||||
{
|
||||
class = self.class;
|
||||
|
||||
if ( isDefined( self.bot_oma_class ) )
|
||||
class = self.bot_oma_class;
|
||||
|
||||
self botGiveLoadout( self.team, class, !isDefined( self.bot_oma_class ) );
|
||||
self.bot_oma_class = undefined;
|
||||
}
|
||||
|
||||
/*
|
||||
Watches when the bot is given a loadout
|
||||
*/
|
||||
onGiveLoadout()
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
self waittill( "giveLoadout" );
|
||||
|
||||
self onGiveLoadout_loop();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
When the bot spawns.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user