mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-10-29 00:46:56 +00:00
cleanup
This commit is contained in:
@@ -84,7 +84,7 @@ ClampLerp( dist, min_dist, max_dist, max_bonus, min_bonus )
|
||||
{
|
||||
answer += max_bonus;
|
||||
}
|
||||
else if ( dist <= max_dist )
|
||||
else if ( dist >= max_dist )
|
||||
{
|
||||
answer += min_bonus;
|
||||
}
|
||||
@@ -172,9 +172,23 @@ get_angle_offset_node( forward_size, angle_offset, offset )
|
||||
angles += angle_offset;
|
||||
node = self.origin + ( AnglesToForward( angles ) * forward_size ) + offset;
|
||||
node = clamp_to_ground( node );
|
||||
|
||||
self thread debug_offset_line( node );
|
||||
return node;
|
||||
}
|
||||
|
||||
debug_offset_line( node )
|
||||
{
|
||||
self notify( "debug_offset_line" );
|
||||
self endon( "debug_offset_line" );
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
line( self.origin, node );
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
||||
clamp_to_ground( org )
|
||||
{
|
||||
trace = playerPhysicsTrace( org + ( 0, 0, 20 ), org - ( 0, 0, 2000 ) );
|
||||
|
||||
Reference in New Issue
Block a user