mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-18 05:52:48 +00:00
GP bots: Difficulty nerf on GP level restart is now gamespeed-dependent, not a constant, per VC request
Easy, Normal: -3 Hard: -2 (Master continues to be -0)
This commit is contained in:
parent
8dc35c0fe3
commit
5ce27ee799
2 changed files with 4 additions and 5 deletions
|
|
@ -1754,13 +1754,15 @@ void G_Ticker(boolean run)
|
|||
{
|
||||
if (players[i].bot == true && grandprixinfo.gp == true && grandprixinfo.masterbots == false)
|
||||
{
|
||||
if (players[i].botvars.difficulty <= BOT_LEVEL_DECREASE)
|
||||
const UINT8 bot_level_decrease = (grandprixinfo.gamespeed <= KARTSPEED_NORMAL) ? 3 : 2;
|
||||
|
||||
if (players[i].botvars.difficulty <= bot_level_decrease)
|
||||
{
|
||||
players[i].botvars.difficulty = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
players[i].botvars.difficulty -= BOT_LEVEL_DECREASE;
|
||||
players[i].botvars.difficulty -= bot_level_decrease;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -32,9 +32,6 @@ extern "C" {
|
|||
// Level of a "difficult" bot. The max bot level was increased, but this keeps all of the same calculations.
|
||||
#define DIFFICULTBOT (9)
|
||||
|
||||
// How much all bots reduce in difficulty when the match needs to be restarted.
|
||||
#define BOT_LEVEL_DECREASE (2)
|
||||
|
||||
// How many tics in a row do you need to turn in this direction before we'll let you turn.
|
||||
// Made it as small as possible without making it look like the bots are twitching constantly.
|
||||
#define BOTTURNCONFIRM 4
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue