From 7415e184d1dcfd98e1ac695456062dc731599ad4 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Sun, 9 Jul 2023 18:55:50 -0600 Subject: [PATCH] small --- raw/scripts/mp/botwarfare.gsc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/raw/scripts/mp/botwarfare.gsc b/raw/scripts/mp/botwarfare.gsc index 158e0a4..b71fd2e 100644 --- a/raw/scripts/mp/botwarfare.gsc +++ b/raw/scripts/mp/botwarfare.gsc @@ -687,25 +687,28 @@ watchBotDebugEvent() if ( GetDvarInt( "bots_main_debug" ) >= 2 ) { - big_str = "Bot Warfare debug: " + self.name + ": " + msg + ": " + str; + big_str = "Bot Warfare debug: " + self.name + ": " + msg; + + if ( isDefined( str ) && isString( str ) ) + big_str += ", " + str; if ( isDefined( b ) && isString( b ) ) - big_str += ": " + b; + big_str += ", " + b; if ( isDefined( c ) && isString( c ) ) - big_str += ": " + c; + big_str += ", " + c; if ( isDefined( d ) && isString( d ) ) - big_str += ": " + d; + big_str += ", " + d; if ( isDefined( e ) && isString( e ) ) - big_str += ": " + e; + big_str += ", " + e; if ( isDefined( f ) && isString( f ) ) - big_str += ": " + f; + big_str += ", " + f; if ( isDefined( g ) && isString( g ) ) - big_str += ": " + g; + big_str += ", " + g; Print( big_str ); } @@ -749,8 +752,6 @@ getConeDot( to, from, dir ) return vectordot( dirToTarget, forward ); } - - /* custom movement stuff */