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

This commit is contained in:
Mitchell Richters 2022-10-11 16:59:51 +11:00 committed by Christoph Oelckers
parent b99dac1e56
commit 86a7f7ca2c

View file

@ -15697,7 +15697,7 @@ int InitTankShell(DSWActor* actor, PLAYER* pp)
actorNew->spr.cstat |= (CSTAT_SPRITE_YCENTER);
actorNew->spr.cstat |= (CSTAT_SPRITE_INVISIBLE);
actorNew->vel.Z = pp->horizon.horiz.Tan() * actorNew->vel.X;
setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, pp->horizon.horiz, actorNew->vel.X);
WeaponAutoAim(actor, actorNew, DAngle22_5 / 2, false);
// a bit of randomness