mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Give fling rings shadows, remove afterimages
Both oni requests
This commit is contained in:
parent
f4e23bc4e2
commit
233d257791
2 changed files with 2 additions and 4 deletions
|
|
@ -4229,7 +4229,7 @@ void A_AttractChase(mobj_t *actor)
|
||||||
else
|
else
|
||||||
actor->drawflags &= ~MFD_DONTDRAW;
|
actor->drawflags &= ~MFD_DONTDRAW;
|
||||||
|
|
||||||
// spilled rings have ghost trails and get capped to a certain speed
|
// spilled rings get capped to a certain speed
|
||||||
if (actor->type == (mobjtype_t)actor->info->reactiontime)
|
if (actor->type == (mobjtype_t)actor->info->reactiontime)
|
||||||
{
|
{
|
||||||
const fixed_t maxspeed = 4<<FRACBITS;
|
const fixed_t maxspeed = 4<<FRACBITS;
|
||||||
|
|
@ -4241,9 +4241,6 @@ void A_AttractChase(mobj_t *actor)
|
||||||
actor->momx = FixedMul(FixedDiv(actor->momx, oldspeed), newspeed);
|
actor->momx = FixedMul(FixedDiv(actor->momx, oldspeed), newspeed);
|
||||||
actor->momy = FixedMul(FixedDiv(actor->momy, oldspeed), newspeed);
|
actor->momy = FixedMul(FixedDiv(actor->momy, oldspeed), newspeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!P_IsObjectOnGround(actor))
|
|
||||||
P_SpawnGhostMobj(actor)->tics = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actor->tracer && actor->tracer->player && actor->tracer->health
|
if (actor->tracer && actor->tracer->player && actor->tracer->health
|
||||||
|
|
|
||||||
|
|
@ -9197,6 +9197,7 @@ static void P_DefaultMobjShadowScale(mobj_t *thing)
|
||||||
thing->shadowscale = FRACUNIT;
|
thing->shadowscale = FRACUNIT;
|
||||||
break;
|
break;
|
||||||
case MT_RING:
|
case MT_RING:
|
||||||
|
case MT_FLINGRING:
|
||||||
case MT_DEBTSPIKE:
|
case MT_DEBTSPIKE:
|
||||||
case MT_FLOATINGITEM:
|
case MT_FLOATINGITEM:
|
||||||
case MT_BLUESPHERE:
|
case MT_BLUESPHERE:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue