mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 13:01:56 +00:00
Half bot amp rewards and startboost duration in GP
This commit is contained in:
parent
efeee381f8
commit
3bb5fe092d
2 changed files with 5 additions and 1 deletions
|
|
@ -4270,6 +4270,9 @@ boolean K_PvPAmpReward(UINT32 award, player_t *attacker, player_t *defender)
|
||||||
award -= (delta * award / range / 2);
|
award -= (delta * award / range / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!K_PlayerUsesBotMovement(attacker) && K_PlayerUsesBotMovement(defender))
|
||||||
|
award /= 2;
|
||||||
|
|
||||||
return award;
|
return award;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@
|
||||||
#include "k_battle.h" // battleprisons
|
#include "k_battle.h" // battleprisons
|
||||||
#include "k_endcam.h" // K_EndCameraIsFreezing()
|
#include "k_endcam.h" // K_EndCameraIsFreezing()
|
||||||
#include "k_race.h" // K_SpawnFinishEXP
|
#include "k_race.h" // K_SpawnFinishEXP
|
||||||
|
#include "k_grandprix.h" // grandprixinfo
|
||||||
|
|
||||||
// Not sure if this is necessary, but it was in w_wad.c, so I'm putting it here too -Shadow Hog
|
// Not sure if this is necessary, but it was in w_wad.c, so I'm putting it here too -Shadow Hog
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
@ -2075,7 +2076,7 @@ static void K_HandleLapIncrement(player_t *player)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
S_StartSound(player->mo, sfx_s23c);
|
S_StartSound(player->mo, sfx_s23c);
|
||||||
player->startboost = 125;
|
player->startboost = (grandprixinfo.gp ? 60 : 125);
|
||||||
|
|
||||||
K_SpawnDriftBoostExplosion(player, 4);
|
K_SpawnDriftBoostExplosion(player, 4);
|
||||||
K_SpawnDriftElectricSparks(player, SKINCOLOR_SILVER, false);
|
K_SpawnDriftElectricSparks(player, SKINCOLOR_SILVER, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue