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

This commit is contained in:
Mitchell Richters 2022-10-11 16:22:28 +11:00 committed by Christoph Oelckers
parent 25e0b9a073
commit 319c1533b3

View file

@ -15306,7 +15306,7 @@ int InitTracerTurret(DSWActor* actor, DSWActor* Operator, DAngle horiz)
actorNew->spr.cstat |= (CSTAT_SPRITE_YCENTER);
actorNew->spr.cstat |= (CSTAT_SPRITE_INVISIBLE);
actorNew->vel.Z = horiz.Tan() * actorNew->vel.X;
setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, horiz, actorNew->vel.X);
WeaponAutoAim(actor, actorNew, DAngle22_5 / 4, false);