mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Bots don't spindash in weak offroad
Intended to improve Sunsplashed
This commit is contained in:
parent
e4fde7735e
commit
6bd14c83ba
1 changed files with 2 additions and 1 deletions
|
|
@ -991,7 +991,8 @@ static UINT8 K_TrySpindash(player_t *player)
|
|||
}
|
||||
}
|
||||
|
||||
AddForCondition(K_ApplyOffroad(player) == true && player->offroad > 0); // Slowed by offroad
|
||||
constexpr fixed_t minimum_offroad = (3 << FRACBITS) >> 1; // Do not spindash in weak offroad
|
||||
AddForCondition(K_ApplyOffroad(player) == true && player->offroad > minimum_offroad); // Slowed by offroad
|
||||
AddForCondition(speedDiff < (baseAccel >> 3)); // Accelerating slower than expected
|
||||
AddForCondition(angleDiff > ANG60); // Being pushed backwards
|
||||
AddForCondition(uphill == true); // Going up a steep slope without speed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue