debug listener

This commit is contained in:
ineed bots 2022-04-18 17:11:51 -06:00
parent d9c5cbac3e
commit ae2b16fb47

View File

@ -530,6 +530,26 @@ connected()
self thread onDisconnect(); self thread onDisconnect();
level notify( "bot_connected", self ); level notify( "bot_connected", self );
self thread watchBotDebugEvent();
}
/*
DEBUG
*/
watchBotDebugEvent()
{
self endon( "disconnect" );
for ( ;; )
{
self waittill( "bot_event", msg, str, b, c, d, e, f, g );
if ( msg == "debug" && GetDvarInt( "bots_main_debug" ) )
{
PrintConsole( "Bot Warfare debug: " + self.name + ": " + str );
}
}
} }
/* /*