mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 10:02:01 +00:00
Disable invinc sprite flicker, MT_INVULNFLASH in reducevfx
This commit is contained in:
parent
507a4b6c91
commit
99542a5b00
2 changed files with 13 additions and 2 deletions
|
|
@ -11828,10 +11828,10 @@ void K_KartResetPlayerColor(player_t *player)
|
|||
}
|
||||
else
|
||||
{
|
||||
flicker += ((defaultTime - player->invincibilitytimer) / TICRATE / 2) * (cv_reducevfx.value ? 4 : 1);
|
||||
flicker += (defaultTime - player->invincibilitytimer) / TICRATE / 2;
|
||||
}
|
||||
|
||||
if (leveltime % flicker == 0)
|
||||
if (leveltime % flicker == 0 && !cv_reducevfx.value)
|
||||
{
|
||||
player->mo->color = SKINCOLOR_INVINCFLASH;
|
||||
player->mo->colorized = true;
|
||||
|
|
|
|||
11
src/p_mobj.c
11
src/p_mobj.c
|
|
@ -8327,6 +8327,17 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
P_RemoveMobj(mobj);
|
||||
return false;
|
||||
}
|
||||
|
||||
// This invinc mobj flickers intensely, so don't draw it in reducevfx
|
||||
if (cv_reducevfx.value && (mobj->renderflags & RF_DONTDRAW) == 0)
|
||||
{
|
||||
mobj->renderflags |= RF_DONTDRAW;
|
||||
}
|
||||
if (!cv_reducevfx.value && (mobj->renderflags & RF_DONTDRAW) != 0)
|
||||
{
|
||||
mobj->renderflags ^= RF_DONTDRAW;
|
||||
}
|
||||
|
||||
P_MoveOrigin(mobj, mobj->target->x, mobj->target->y, mobj->target->z);
|
||||
break;
|
||||
case MT_BRAKEDRIFT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue