mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'bot-continue-nerf' into 'master'
Continues reduce bot level by 2 See merge request KartKrew/Kart!1704
This commit is contained in:
commit
8dc35c0fe3
2 changed files with 8 additions and 3 deletions
|
|
@ -1754,12 +1754,14 @@ void G_Ticker(boolean run)
|
|||
{
|
||||
if (players[i].bot == true && grandprixinfo.gp == true && grandprixinfo.masterbots == false)
|
||||
{
|
||||
players[i].botvars.difficulty--;
|
||||
|
||||
if (players[i].botvars.difficulty < 1)
|
||||
if (players[i].botvars.difficulty <= BOT_LEVEL_DECREASE)
|
||||
{
|
||||
players[i].botvars.difficulty = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
players[i].botvars.difficulty -= BOT_LEVEL_DECREASE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@ 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