Rudimentary wrong way

This commit is contained in:
TehRealSalt 2019-10-22 17:27:06 -04:00
parent 4feed0decc
commit 3c407d971e
3 changed files with 10 additions and 1 deletions

View file

@ -330,6 +330,7 @@ typedef enum
k_springstars, // Spawn stars around a player when they hit a spring k_springstars, // Spawn stars around a player when they hit a spring
k_springcolor, // Color of spring stars 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_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 NUMKARTSTUFF
} kartstufftype_t; } kartstufftype_t;

View file

@ -8501,7 +8501,8 @@ static const char *const KARTSTUFF_LIST[] = {
"TIREGREASE", "TIREGREASE",
"SPRINGSTARS", "SPRINGSTARS",
"SPRINGCOLOR", "SPRINGCOLOR",
"KILLFIELD" "KILLFIELD",
"WRONGWAY"
}; };
#endif #endif

View file

@ -5556,6 +5556,8 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player, boolean closest)
{ {
bestwaypoint = waypoint->nextwaypoints[i]; bestwaypoint = waypoint->nextwaypoints[i];
nextbestdelta = angledelta; 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]; bestwaypoint = waypoint->prevwaypoints[i];
nextbestdelta = angledelta; nextbestdelta = angledelta;
player->kartstuff[k_wrongway] = 1;
} }
} }
} }
@ -10277,6 +10281,9 @@ void K_drawKartHUD(void)
K_drawKartFreePlay(leveltime); K_drawKartFreePlay(leveltime);
} }
if (stplyr->kartstuff[k_wrongway] && ((leveltime / 8) & 1))
V_DrawCenteredString(BASEVIDWIDTH>>1, 176, V_REDMAP, "WRONG WAY");
if (cv_kartdebugdistribution.value) if (cv_kartdebugdistribution.value)
K_drawDistributionDebugger(); K_drawDistributionDebugger();