mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Scale the speedlines based on how much is left on the timer
This commit is contained in:
parent
fc8bd429f3
commit
6d4a544fd5
1 changed files with 2 additions and 0 deletions
|
|
@ -1849,6 +1849,8 @@ void K_SpawnInvincibilitySpeedLines(mobj_t *mo)
|
|||
fast->colorized = true;
|
||||
K_MatchGenericExtraFlags(fast, mo);
|
||||
P_SetMobjState(fast, S_KARTINVLINES1);
|
||||
if (mo->player->kartstuff[k_invincibilitytimer] < 10*TICRATE)
|
||||
fast->destscale = 6*((mo->player->kartstuff[k_invincibilitytimer]/TICRATE)*FRACUNIT)/8;
|
||||
}
|
||||
|
||||
static SINT8 K_GlanceAtPlayers(player_t *glancePlayer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue