Bots: Make them stay farther from the beam

This commit is contained in:
Sally Coolatta 2023-05-19 06:08:37 -04:00
parent cbb684cd25
commit 2eff6d7fb5
2 changed files with 3 additions and 3 deletions

View file

@ -1557,8 +1557,8 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
if (leveltime <= starttime && finishBeamLine != NULL)
{
// Handle POSITION!!
const fixed_t distBase = 384*mapobjectscale;
const fixed_t distAdjust = 64*mapobjectscale;
const fixed_t distBase = 480*mapobjectscale;
const fixed_t distAdjust = 128*mapobjectscale;
const fixed_t closeDist = distBase + (distAdjust * (9 - player->kartweight));
const fixed_t farDist = closeDist + (distAdjust * 2);

View file

@ -989,7 +989,7 @@ INT32 K_PositionBully(player_t *player)
anglediff = 360-(AngleFixed(angle)>>FRACBITS);
}
if (anglediff < 30)
if (abs(anglediff) < 30)
return 0;
if (anglediff < 0)