Skip to content

Commit

Permalink
better vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed May 9, 2024
1 parent 9e19374 commit 1477323
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions maps/mp/bots/_bot_script.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -3292,6 +3292,7 @@ bot_target_vehicle_loop()
myEye = self getEyePos();
target = undefined;
myAngles = self getplayerangles();
hasRocket = self getammocount( "bazooka_mp" );

for ( i = 0; i < level.players.size; i++ )
{
Expand Down Expand Up @@ -3324,7 +3325,7 @@ bot_target_vehicle_loop()
continue;
}

if ( getConeDot( vehicle.origin, self.origin, myAngles ) < 0.6 && !hasRecon )
if ( getConeDot( vehicle.origin, self.origin, myAngles ) < 0.6 && !hasRecon && !hasRocket )
{
continue;
}
Expand Down Expand Up @@ -3356,18 +3357,13 @@ bot_target_vehicle()

for ( ;; )
{
wait( randomintrange( 1, 3 ) );
wait( randomintrange( 1, 3 ) * 0.5 );

if ( self HasScriptEnemy() )
{
continue;
}

if ( self.pers[ "bots" ][ "skill" ][ "base" ] <= 1 )
{
continue;
}

if ( !isdefined( level.vehicles_list ) )
{
continue;
Expand All @@ -3384,7 +3380,7 @@ bot_vehicle_attack( target )
{
target endon( "death" );

wait_time = randomintrange( 14, 20 );
wait_time = randomintrange( 14, 20 ) * 2;

for ( i = 0; i < wait_time; i++ )
{
Expand Down

0 comments on commit 1477323

Please sign in to comment.