mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2024-11-10 15:01:48 +00:00
Two handed weapons fixed
tracer bullets follow correct trajectory
This commit is contained in:
parent
6e5a4488a4
commit
d6c0ac2d32
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue