mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Rudimentary wrong way
This commit is contained in:
parent
4feed0decc
commit
3c407d971e
3 changed files with 10 additions and 1 deletions
|
|
@ -330,6 +330,7 @@ typedef enum
|
|||
k_springstars, // Spawn stars around a player when they hit a spring
|
||||
k_springcolor, // Color of spring stars
|
||||
k_killfield, // How long have you been in the kill field, stay in too long and lose a bumper
|
||||
k_wrongway, // Display WRONG WAY on screen
|
||||
|
||||
NUMKARTSTUFF
|
||||
} kartstufftype_t;
|
||||
|
|
|
|||
|
|
@ -8501,7 +8501,8 @@ static const char *const KARTSTUFF_LIST[] = {
|
|||
"TIREGREASE",
|
||||
"SPRINGSTARS",
|
||||
"SPRINGCOLOR",
|
||||
"KILLFIELD"
|
||||
"KILLFIELD",
|
||||
"WRONGWAY"
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -5556,6 +5556,8 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player, boolean closest)
|
|||
{
|
||||
bestwaypoint = waypoint->nextwaypoints[i];
|
||||
nextbestdelta = angledelta;
|
||||
|
||||
player->kartstuff[k_wrongway] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5578,6 +5580,8 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player, boolean closest)
|
|||
{
|
||||
bestwaypoint = waypoint->prevwaypoints[i];
|
||||
nextbestdelta = angledelta;
|
||||
|
||||
player->kartstuff[k_wrongway] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10277,6 +10281,9 @@ void K_drawKartHUD(void)
|
|||
K_drawKartFreePlay(leveltime);
|
||||
}
|
||||
|
||||
if (stplyr->kartstuff[k_wrongway] && ((leveltime / 8) & 1))
|
||||
V_DrawCenteredString(BASEVIDWIDTH>>1, 176, V_REDMAP, "WRONG WAY");
|
||||
|
||||
if (cv_kartdebugdistribution.value)
|
||||
K_drawDistributionDebugger();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue