- SW: Pitch-adjusted velocity for InitRail().

This commit is contained in:
Mitchell Richters 2022-10-11 16:46:06 +11:00 committed by Christoph Oelckers
parent 283f8d208a
commit 8da5b096c0

View file

@ -13487,7 +13487,7 @@ int InitRail(PLAYER* pp)
SetOwner(pp->actor, actorNew);
actorNew->spr.scale = DVector2(0.8125, 0.8125);
actorNew->spr.shade = -15;
zvel = pp->horizon.horiz.Tan() * ((HORIZ_MULT + 17) * 0.5);
setFreeAimVelocity(actorNew->vel.X, zvel, pp->horizon.horiz, (HORIZ_MULT + 17) * 0.5);
actorNew->user.RotNum = 5;
NewStateGroup(actorNew, &sg_Rail[0]);