mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- fixed bad z-scale relations in BuildBullet
This commit is contained in:
parent
52dc48d671
commit
81a688ee75
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue