Add player sprzoff to Heavy Magician Box

This commit is contained in:
James R 2023-02-18 14:02:05 -08:00
parent 8fae89cb9a
commit ba908edf55
2 changed files with 5 additions and 1 deletions

View file

@ -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);

View file

@ -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);