Two handed weapons fixed

tracer bullets follow correct trajectory
This commit is contained in:
Simon 2020-03-15 23:37:10 +00:00
parent 6e5a4488a4
commit d6c0ac2d32
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
float zxDist = length(x, z);
if (zxDist != 0.0f && z != 0.0f) {
VectorSet(weaponangles, -degrees(atanf(y / zxDist)), (-(doomYaw - hmdorientation[YAW])) - degrees(atan2f(x, -z)), 0.0f);
VectorSet(weaponangles, -degrees(atanf(y / zxDist)), -degrees(atan2f(x, -z)), 0.0f);
}
}
}

View file

@ -6750,7 +6750,7 @@ AActor *P_SpawnPlayerMissile (AActor *source, double x, double y, double z,
pos = source->player->mo->AttackPos;
DVector3 dir = source->player->mo->AttackDir(source, angle, pitch);
an = dir.Angle();
pitch = -dir.Pitch();
pitch = dir.Pitch();
}
AActor *MissileActor = Spawn (type, pos, ALLOW_REPLACE);