mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-05-15 08:24:49 +00:00
Compare commits
No commits in common. "c4481626a5b834dd736ea8857b3792018fb48f02" and "fc24a8c6b64f777a5a5e4da086c90a81ed1d1a35" have entirely different histories.
c4481626a5
...
fc24a8c6b6
@ -181,11 +181,8 @@ init()
|
||||
if ( !isdefined( game[ "botWarfare" ] ) )
|
||||
{
|
||||
game[ "botWarfare" ] = true;
|
||||
game[ "botWarfareInitTime" ] = gettime();
|
||||
}
|
||||
|
||||
level.bot_inittime = gettime();
|
||||
|
||||
thread fixGamemodes();
|
||||
thread onPlayerConnect();
|
||||
thread bot_watch_planes();
|
||||
@ -239,23 +236,6 @@ handleBots()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
When a bot disconnects.
|
||||
*/
|
||||
onDisconnectPlayer()
|
||||
{
|
||||
name = self.name;
|
||||
|
||||
self waittill( "disconnect" );
|
||||
waittillframeend;
|
||||
|
||||
for ( i = 0; i < level.bots.size; i++ )
|
||||
{
|
||||
bot = level.bots[ i ];
|
||||
bot BotNotifyBotEvent( "connection", "disconnected", self, name );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
When a bot disconnects.
|
||||
*/
|
||||
@ -273,14 +253,6 @@ connected()
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
for ( i = 0; i < level.bots.size; i++ )
|
||||
{
|
||||
bot = level.bots[ i ];
|
||||
bot BotNotifyBotEvent( "connection", "connected", self, self.name );
|
||||
}
|
||||
|
||||
self thread onDisconnectPlayer();
|
||||
|
||||
if ( !self is_bot() )
|
||||
{
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user