mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Duel sprint lockout, duel overtime darken
This commit is contained in:
parent
05936d8b76
commit
b9818d52e4
2 changed files with 17 additions and 0 deletions
|
|
@ -3870,6 +3870,12 @@ tryAgain:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (numPlayers == 2 && gametype == GT_RACE && ((mapheaderinfo[i]->levelflags & LF_SECTIONRACE) == LF_SECTIONRACE))
|
||||||
|
{
|
||||||
|
// Duel doesn't support sprints.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Only care about restrictions if the host is a listen server.
|
// Only care about restrictions if the host is a listen server.
|
||||||
if (!dedicated)
|
if (!dedicated)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
11
src/k_kart.c
11
src/k_kart.c
|
|
@ -4288,9 +4288,20 @@ void K_CheckpointCrossAward(player_t *player)
|
||||||
{
|
{
|
||||||
overtimecheckpoints++;
|
overtimecheckpoints++;
|
||||||
if (overtimecheckpoints > 1)
|
if (overtimecheckpoints > 1)
|
||||||
|
{
|
||||||
K_AddMessage(va("Margin Boost x%d!", overtimecheckpoints), true, false);
|
K_AddMessage(va("Margin Boost x%d!", overtimecheckpoints), true, false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
K_AddMessage("Margin Boost!", true, false);
|
K_AddMessage("Margin Boost!", true, false);
|
||||||
|
g_darkness.start = leveltime;
|
||||||
|
g_darkness.end = INT32_MAX;
|
||||||
|
for (UINT8 i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
||||||
|
{
|
||||||
|
g_darkness.value[i] = FRACUNIT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
S_StartSound(NULL, sfx_gsha6);
|
S_StartSound(NULL, sfx_gsha6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue