better debug

This commit is contained in:
ineed bots
2023-07-15 16:01:35 -06:00
parent 2d719726dc
commit 120b3edec6
4 changed files with 47 additions and 7 deletions

View File

@@ -174,7 +174,11 @@ get_angle_offset_node( forward_size, angle_offset, offset )
node = self.origin + ( AnglesToForward( angles ) * forward_size ) + offset;
node = clamp_to_ground( node );
self thread debug_offset_line( node );
if ( getDvarInt( "bots_main_debug" ) )
{
self thread debug_offset_line( node );
}
return node;
}
@@ -192,7 +196,10 @@ debug_offset_line( node )
PointInsideUseTrigger( point )
{
self thread debug_bounding_box_for_ent();
if ( getDvarInt( "bots_main_debug" ) )
{
self thread debug_bounding_box_for_ent();
}
mins = self getmins();
maxs = self getmaxs();