Scale the speedlines based on how much is left on the timer

This commit is contained in:
SteelT 2021-04-06 23:18:59 -04:00
parent fc8bd429f3
commit 6d4a544fd5

View file

@ -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)