From 8c2f85c9e6746890ffcf6f65d3762e44641d3012 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Tue, 15 Aug 2023 05:54:00 +0200 Subject: [PATCH] Player afterimages are now affected by scaling/slope rolling too Ghost Mobjs are now affected by Sloperolling too and the Sprite scaling/stretching functions also now work with it they look cooler now --- src/p_user.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index cb4403433..50b3955c1 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1692,8 +1692,16 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj) ghost->tics = -1; ghost->frame &= ~FF_TRANSMASK; ghost->frame |= tr_trans50<sloperoll = mobj->sloperoll; + + ghost->spritexscale = mobj->realxscale; + ghost->spriteyscale = mobj->realyscale; + ghost->spritexoffset = mobj->spritexoffset; + ghost->spriteyoffset = mobj->spriteyoffset; + ghost->fuse = ghost->info->damage; ghost->skin = mobj->skin; + //ghost->standingslope = mobj->standingslope; if (mobj->flags2 & MF2_OBJECTFLIP) ghost->flags |= MF2_OBJECTFLIP;