From b816ecd5d50c2b3710c6f88bf2f77b138ffd31f8 Mon Sep 17 00:00:00 2001
From: chromaticpipe <chromaticpipe@gmail.com>
Date: Wed, 26 Mar 2025 14:01:29 -0500
Subject: [PATCH] Add rolling for Tails's tails and shields

---
 src/p_mobj.c | 4 ++++
 src/p_user.c | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/src/p_mobj.c b/src/p_mobj.c
index e3daf6996..35ef31db1 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -6695,6 +6695,10 @@ static boolean P_ShieldLook(mobj_t *thing, shieldtype_t shield)
 	}
 	P_SetThingPosition(thing);
 	P_CheckPosition(thing, thing->x, thing->y);
+
+	thing->pitch = thing->target->pitch;
+	thing->roll = thing->target->roll;
+	
 #undef NewMH
 #undef NewPH
 #undef OldMH
diff --git a/src/p_user.c b/src/p_user.c
index 67e63fa43..1c5e00bf9 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -11514,6 +11514,9 @@ void P_DoTailsOverlay(player_t *player, mobj_t *tails)
 		tails->flags2 |= MF2_SHADOW;
 	else
 		tails->flags2 &= ~MF2_SHADOW;
+	
+	tails->pitch = player->mo->pitch;
+	tails->roll = player->mo->roll;
 }
 
 // Metal Sonic's jet fume
-- 
GitLab