Duel sprint lockout, duel overtime darken

This commit is contained in:
Antonio Martinez 2025-05-25 01:57:02 -04:00
parent 05936d8b76
commit b9818d52e4
2 changed files with 17 additions and 0 deletions

View file

@ -3870,6 +3870,12 @@ tryAgain:
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.
if (!dedicated)
{

View file

@ -4288,9 +4288,20 @@ void K_CheckpointCrossAward(player_t *player)
{
overtimecheckpoints++;
if (overtimecheckpoints > 1)
{
K_AddMessage(va("Margin Boost x%d!", overtimecheckpoints), true, false);
}
else
{
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);
}