mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Prevent the use of respawn to cheese SPB and other items
This commit is contained in:
parent
6cb8818a46
commit
75562807c6
1 changed files with 6 additions and 0 deletions
|
|
@ -2490,6 +2490,12 @@ static void Command_Respawn(void)
|
||||||
|
|
||||||
WRITEINT32(cp, consoleplayer);
|
WRITEINT32(cp, consoleplayer);
|
||||||
|
|
||||||
|
if (players[consoleplayer].kartstuff[k_spinouttimer]) // KART: Nice try, but no, you won't be cheesing spb anymore.
|
||||||
|
{
|
||||||
|
CONS_Printf(M_GetText("Cannot use this while hurt.\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_VOTING))
|
if (!(gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_VOTING))
|
||||||
{
|
{
|
||||||
CONS_Printf(M_GetText("You must be in a level to use this.\n"));
|
CONS_Printf(M_GetText("You must be in a level to use this.\n"));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue