From a012fd8f94ee0e93b45191004aa3c17cd823af9a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 13 Oct 2022 11:48:36 +1100 Subject: [PATCH] - SW: Pitch-adjusted velocity for `SpawnShell()`. --- source/games/sw/src/jweapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/jweapon.cpp b/source/games/sw/src/jweapon.cpp index f421de61f..7ef7e24d3 100644 --- a/source/games/sw/src/jweapon.cpp +++ b/source/games/sw/src/jweapon.cpp @@ -2198,7 +2198,7 @@ int SpawnShell(DSWActor* actor, int ShellNum) if (actor->user.PlayerP) { - actorNew->vel.Z = actor->user.PlayerP->horizon.horiz.Tan() * (HORIZ_MULTF / 3.); + setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, actor->user.PlayerP->horizon.horiz, HORIZ_MULTF * (1. / 3.)); } switch (actorNew->user.ID)