mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Bots: Make them stay farther from the beam
This commit is contained in:
parent
cbb684cd25
commit
2eff6d7fb5
2 changed files with 3 additions and 3 deletions
|
|
@ -1557,8 +1557,8 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
|
||||||
if (leveltime <= starttime && finishBeamLine != NULL)
|
if (leveltime <= starttime && finishBeamLine != NULL)
|
||||||
{
|
{
|
||||||
// Handle POSITION!!
|
// Handle POSITION!!
|
||||||
const fixed_t distBase = 384*mapobjectscale;
|
const fixed_t distBase = 480*mapobjectscale;
|
||||||
const fixed_t distAdjust = 64*mapobjectscale;
|
const fixed_t distAdjust = 128*mapobjectscale;
|
||||||
|
|
||||||
const fixed_t closeDist = distBase + (distAdjust * (9 - player->kartweight));
|
const fixed_t closeDist = distBase + (distAdjust * (9 - player->kartweight));
|
||||||
const fixed_t farDist = closeDist + (distAdjust * 2);
|
const fixed_t farDist = closeDist + (distAdjust * 2);
|
||||||
|
|
|
||||||
|
|
@ -989,7 +989,7 @@ INT32 K_PositionBully(player_t *player)
|
||||||
anglediff = 360-(AngleFixed(angle)>>FRACBITS);
|
anglediff = 360-(AngleFixed(angle)>>FRACBITS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (anglediff < 30)
|
if (abs(anglediff) < 30)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (anglediff < 0)
|
if (anglediff < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue