mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-21 23:45:43 +00:00
better debug
This commit is contained in:
parent
f72f931bab
commit
236dcca7c9
@ -404,7 +404,34 @@ watchBotDebugEvent()
|
|||||||
{
|
{
|
||||||
self waittill( "bot_event", msg, str, b, c, d, e, f, g );
|
self waittill( "bot_event", msg, str, b, c, d, e, f, g );
|
||||||
|
|
||||||
if ( msg == "debug" && GetDvarInt( "bots_main_debug" ) )
|
if ( GetDvarInt( "bots_main_debug" ) >= 2 )
|
||||||
|
{
|
||||||
|
big_str = "Bot Warfare debug: " + self.name + ": " + msg;
|
||||||
|
|
||||||
|
if ( isDefined( str ) && isString( str ) )
|
||||||
|
big_str += ", " + str;
|
||||||
|
|
||||||
|
if ( isDefined( b ) && isString( b ) )
|
||||||
|
big_str += ", " + b;
|
||||||
|
|
||||||
|
if ( isDefined( c ) && isString( c ) )
|
||||||
|
big_str += ", " + c;
|
||||||
|
|
||||||
|
if ( isDefined( d ) && isString( d ) )
|
||||||
|
big_str += ", " + d;
|
||||||
|
|
||||||
|
if ( isDefined( e ) && isString( e ) )
|
||||||
|
big_str += ", " + e;
|
||||||
|
|
||||||
|
if ( isDefined( f ) && isString( f ) )
|
||||||
|
big_str += ", " + f;
|
||||||
|
|
||||||
|
if ( isDefined( g ) && isString( g ) )
|
||||||
|
big_str += ", " + g;
|
||||||
|
|
||||||
|
BotBuiltinPrintConsole( big_str );
|
||||||
|
}
|
||||||
|
else if ( msg == "debug" && GetDvarInt( "bots_main_debug" ) )
|
||||||
{
|
{
|
||||||
BotBuiltinPrintConsole( "Bot Warfare debug: " + self.name + ": " + str );
|
BotBuiltinPrintConsole( "Bot Warfare debug: " + self.name + ": " + str );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user