Skip to content

Commit

Permalink
playername
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Apr 25, 2024
1 parent dfe2ba0 commit 1e0daca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maps/mp/bots/_bot.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -855,13 +855,15 @@ onPlayerConnect()
*/
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, self.name );
bot BotNotifyBotEvent( "connection", "disconnected", self, name );
}
}

Expand Down

0 comments on commit 1e0daca

Please sign in to comment.