mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-04-22 06:25:44 +00:00
connection events
This commit is contained in:
parent
96e8fb36b6
commit
1272026e97
@ -272,6 +272,14 @@ onDisconnectAll()
|
||||
self waittill( "disconnect" );
|
||||
|
||||
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, self.playername );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -317,6 +325,13 @@ connected()
|
||||
}
|
||||
|
||||
level.players[ level.players.size ] = self;
|
||||
|
||||
for ( i = 0; i < level.bots.size; i++ )
|
||||
{
|
||||
bot = level.bots[ i ];
|
||||
bot BotNotifyBotEvent( "connection", "connected", self, self.playername );
|
||||
}
|
||||
|
||||
self thread onDisconnectAll();
|
||||
|
||||
self thread onSpawnedAll();
|
||||
|
Loading…
x
Reference in New Issue
Block a user