mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-05-15 07:44:50 +00:00
Compare commits
No commits in common. "26d9a2780c7f76ddcceb25e368f2f7da48f94a68" and "f9289077ef127c9afd0a10d1d8c2d0bb03d3fdc3" have entirely different histories.
26d9a2780c
...
f9289077ef
@ -179,11 +179,8 @@ init()
|
||||
if ( !isdefined( game[ "botWarfare" ] ) )
|
||||
{
|
||||
game[ "botWarfare" ] = true;
|
||||
game[ "botWarfareInitTime" ] = gettime();
|
||||
}
|
||||
|
||||
level.bot_inittime = gettime();
|
||||
|
||||
level.defuseobject = undefined;
|
||||
level.bots_smokelist = List();
|
||||
|
||||
@ -517,20 +514,10 @@ onDeath()
|
||||
*/
|
||||
onDisconnectPlayer()
|
||||
{
|
||||
name = self.name;
|
||||
|
||||
self waittill( "disconnect" );
|
||||
self killTags();
|
||||
|
||||
level.players = array_remove( level.players, self );
|
||||
|
||||
waittillframeend;
|
||||
|
||||
for ( i = 0; i < level.bots.size; i++ )
|
||||
{
|
||||
bot = level.bots[ i ];
|
||||
bot BotNotifyBotEvent( "connection", "disconnected", self, name );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -551,13 +538,6 @@ connected()
|
||||
self endon( "disconnect" );
|
||||
|
||||
level.players[ level.players.size ] = self;
|
||||
|
||||
for ( i = 0; i < level.bots.size; i++ )
|
||||
{
|
||||
bot = level.bots[ i ];
|
||||
bot BotNotifyBotEvent( "connection", "connected", self, self.name );
|
||||
}
|
||||
|
||||
self thread onDisconnectPlayer();
|
||||
|
||||
if ( !isdefined( self.pers[ "bot_host" ] ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user