mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-06 19:31:13 +00:00
Polish for Wrongwarp
- Anti-tailgate measure for the SMK titlescreen recreation (prevents slots on the same row from being used immediately one after the other) - Slightly reduce spinout chance since it felt too frequent
This commit is contained in:
parent
2241c443f1
commit
986ec8025d
1 changed files with 8 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ void M_WrongWarp(INT32 choice)
|
|||
static void M_WrongWarpTick(void)
|
||||
{
|
||||
static boolean firsteggman = true;
|
||||
static boolean antitailgate = false;
|
||||
|
||||
UINT8 i, j;
|
||||
|
||||
|
|
@ -91,6 +92,10 @@ static void M_WrongWarpTick(void)
|
|||
if (wrongwarp.wrongplayers[i].skin == rskin)
|
||||
return;
|
||||
|
||||
// Prevent tailgating.
|
||||
if (antitailgate == !!(i & 1))
|
||||
continue;
|
||||
|
||||
// Slot isn't free.
|
||||
if (wrongwarp.wrongplayers[i].skin != MAXSKINS)
|
||||
continue;
|
||||
|
|
@ -111,12 +116,14 @@ static void M_WrongWarpTick(void)
|
|||
return;
|
||||
}
|
||||
|
||||
wrongwarp.wrongplayers[i].spinout = M_RandomChance(FRACUNIT/10);
|
||||
wrongwarp.wrongplayers[i].spinout = M_RandomChance(FRACUNIT/11);
|
||||
}
|
||||
|
||||
// Add the new character!
|
||||
wrongwarp.wrongplayers[i].skin = rskin;
|
||||
wrongwarp.wrongplayers[i].across = -WRONGPLAYEROFFSCREEN;
|
||||
|
||||
antitailgate = !!(i & 1);
|
||||
}
|
||||
|
||||
static boolean M_WrongWarpInputs(INT32 ch)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue