Absolutely fuck it, noclipthing during powerupvfx

This commit is contained in:
Antonio Martinez 2025-06-26 20:28:14 -04:00
parent dfaece7d3d
commit 6a327ffb28
2 changed files with 3 additions and 0 deletions

View file

@ -10310,6 +10310,8 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
if (player->powerupVFXTimer > 0)
{
player->powerupVFXTimer--;
if (player->powerupVFXTimer == 0)
player->mo->flags &= ~MF_NOCLIPTHING;
}
if (player->dotrickfx && !player->mo->hitlag)

View file

@ -68,6 +68,7 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time)
player->flashing = 3*TICRATE;
player->mo->hitlag += BATTLE_POWERUP_VFX_TIME;
player->powerupVFXTimer = BATTLE_POWERUP_VFX_TIME;
player->mo->flags |= MF_NOCLIPTHING;
Obj_SpawnPowerUpSpinner(player->mo, powerup, BATTLE_POWERUP_VFX_TIME);
g_darkness.start = leveltime;