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

This commit is contained in:
Mitchell Richters 2022-10-11 17:01:42 +11:00 committed by Christoph Oelckers
parent 86a7f7ca2c
commit 9299e5f813

View file

@ -15765,7 +15765,7 @@ int InitTurretMicro(DSWActor* actor, PLAYER* pp)
SetOwner(plActor, actorNew);
actorNew->spr.scale = DVector2(0.375, 0.375);
actorNew->spr.shade = -15;
actorNew->vel.Z = pp->horizon.horiz.Tan() * HORIZ_MULTF - RandomRangeF(8) + 5;
setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, pp->horizon.horiz, HORIZ_MULTF - RandomRangeF(8) + 5);
actorNew->clipdist = 4;