mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Disable overtime barrier animation/flashing when reducevfx is enabled.
This commit is contained in:
parent
add76b17aa
commit
687bfb0e1d
1 changed files with 17 additions and 8 deletions
|
|
@ -740,8 +740,11 @@ static void K_SpawnOvertimeLaser(fixed_t x, fixed_t y, fixed_t scale)
|
||||||
case 0:
|
case 0:
|
||||||
P_SetMobjState(mo, S_OVERTIME_BULB1);
|
P_SetMobjState(mo, S_OVERTIME_BULB1);
|
||||||
|
|
||||||
if (leveltime & 1)
|
if (!cv_reducevfx.value)
|
||||||
mo->frame += 1;
|
{
|
||||||
|
if (leveltime & 1)
|
||||||
|
mo->frame += 1;
|
||||||
|
}
|
||||||
|
|
||||||
//P_SetScale(mo, mapobjectscale);
|
//P_SetScale(mo, mapobjectscale);
|
||||||
zpos += 35 * mo->scale * flip;
|
zpos += 35 * mo->scale * flip;
|
||||||
|
|
@ -749,10 +752,13 @@ static void K_SpawnOvertimeLaser(fixed_t x, fixed_t y, fixed_t scale)
|
||||||
case 1:
|
case 1:
|
||||||
P_SetMobjState(mo, S_OVERTIME_LASER);
|
P_SetMobjState(mo, S_OVERTIME_LASER);
|
||||||
|
|
||||||
if (leveltime & 1)
|
if (!cv_reducevfx.value)
|
||||||
mo->frame += 3;
|
{
|
||||||
else
|
if (leveltime & 1)
|
||||||
mo->frame += (leveltime / 2) % 3;
|
mo->frame += 3;
|
||||||
|
else
|
||||||
|
mo->frame += (leveltime / 2) % 3;
|
||||||
|
}
|
||||||
|
|
||||||
//P_SetScale(mo, scale);
|
//P_SetScale(mo, scale);
|
||||||
zpos += 346 * mo->scale * flip;
|
zpos += 346 * mo->scale * flip;
|
||||||
|
|
@ -763,8 +769,11 @@ static void K_SpawnOvertimeLaser(fixed_t x, fixed_t y, fixed_t scale)
|
||||||
case 2:
|
case 2:
|
||||||
P_SetMobjState(mo, S_OVERTIME_BULB2);
|
P_SetMobjState(mo, S_OVERTIME_BULB2);
|
||||||
|
|
||||||
if (leveltime & 1)
|
if (!cv_reducevfx.value)
|
||||||
mo->frame += 1;
|
{
|
||||||
|
if (leveltime & 1)
|
||||||
|
mo->frame += 1;
|
||||||
|
}
|
||||||
|
|
||||||
//P_SetScale(mo, mapobjectscale);
|
//P_SetScale(mo, mapobjectscale);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue