From 26460bc6aa0e4a07f463f9ece8b6558de7ee47a4 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 11 Oct 2022 20:59:55 +1100 Subject: [PATCH] - SW: Pitch-adjusted velocity for `InitRocket()`. --- source/games/sw/src/weapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/weapon.cpp b/source/games/sw/src/weapon.cpp index bf642abcc..6587b26a4 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -13651,7 +13651,7 @@ int InitRocket(PLAYER* pp) SetOwner(pp->actor, actorNew); actorNew->spr.scale = DVector2(1.40626, 1.40625); actorNew->spr.shade = -15; - zvel = pp->horizon.horiz.Tan() * ((HORIZ_MULT + 35) * 0.5); + setFreeAimVelocity(actorNew->vel.X, zvel, pp->horizon.horiz, (HORIZ_MULT + 35) * 0.5); actorNew->clipdist = 4;