mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-04 22:16:35 +00:00
Absolutely fuck it, noclipthing during powerupvfx
This commit is contained in:
parent
dfaece7d3d
commit
6a327ffb28
2 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue