From 81a688ee7554e61cee669fa93b8887c82e189b1d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 21 Oct 2022 23:17:07 +0200 Subject: [PATCH] - fixed bad z-scale relations in BuildBullet --- source/games/exhumed/src/bullet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/exhumed/src/bullet.cpp b/source/games/exhumed/src/bullet.cpp index d78e21a16..b21b8f52f 100644 --- a/source/games/exhumed/src/bullet.cpp +++ b/source/games/exhumed/src/bullet.cpp @@ -705,7 +705,7 @@ DExhumedActor* BuildBullet(DExhumedActor* pActor, int nType, double fZOffset, DA if (pTarget == nullptr) { - nVertVel = (-DAngle::fromBuild(nPitch).Sin() * 8 * pBulletInfo->field_4); + nVertVel = (-DAngle::fromBuild(nPitch).Sin() * (1. / 32) * pBulletInfo->field_4); } else { @@ -761,7 +761,7 @@ DExhumedActor* BuildBullet(DExhumedActor* pActor, int nType, double fZOffset, DA double nSqrt = xy.Length(); if (nSqrt > 0) { - nVertVel = ((fTop - pBulletActor->spr.pos.Z) * pBulletInfo->field_4) / nSqrt; + nVertVel = ((fTop - pBulletActor->spr.pos.Z) * pBulletInfo->field_4) / (nSqrt * 16); } else { @@ -783,7 +783,7 @@ DExhumedActor* BuildBullet(DExhumedActor* pActor, int nType, double fZOffset, DA { pBullet->field_10 = pBulletInfo->field_4; pBullet->vect.XY() = nAngle.ToVector() * pBulletInfo->field_4 / 128.; - pBullet->vect.Z = nVertVel * 0.125 * zmaptoworld; + pBullet->vect.Z = nVertVel * 0.125; } return pBulletActor;