mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-12 15:34:51 +00:00
debug listener
This commit is contained in:
parent
d9c5cbac3e
commit
ae2b16fb47
@ -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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user