mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add player sprzoff to Heavy Magician Box
This commit is contained in:
parent
8fae89cb9a
commit
ba908edf55
2 changed files with 5 additions and 1 deletions
|
|
@ -1978,10 +1978,11 @@ void K_SpawnMagicianParticles(mobj_t *mo, int spread)
|
|||
else
|
||||
ang += ANGLE_90;
|
||||
|
||||
// sprzoff for Garden Top!!
|
||||
dust = P_SpawnMobjFromMobjUnscaled(mo,
|
||||
FixedMul(mo->radius / 4, FINECOSINE(ang >> ANGLETOFINESHIFT)),
|
||||
FixedMul(mo->radius / 4, FINESINE(ang >> ANGLETOFINESHIFT)),
|
||||
target->height / 4, (i%3 == 0) ? MT_SIGNSPARKLE : MT_SPINDASHDUST
|
||||
(target->height / 4) + target->sprzoff, (i%3 == 0) ? MT_SIGNSPARKLE : MT_SPINDASHDUST
|
||||
);
|
||||
flip = P_MobjFlip(dust);
|
||||
|
||||
|
|
|
|||
|
|
@ -8091,6 +8091,9 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
|||
zoff = mobj->radius*4;
|
||||
}
|
||||
|
||||
// Necessary to "ride" on Garden Top
|
||||
zoff += mobj->target->sprzoff;
|
||||
|
||||
if (mobj->flags2 & MF2_AMBUSH)
|
||||
{
|
||||
P_SetOrigin(mobj, destx, desty, mobj->target->z + zoff);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue