dreamstalker / rehlds

Reverse-engineered HLDS
GNU General Public License v3.0
657 stars 170 forks source link

Question about pitch and angles #599

Open GaussianReflex opened 6 years ago

GaussianReflex commented 6 years ago

Sorry if the answer is obvious

In pev->v_angle the 0th value corresponds to the pitch, and is negative when the player is looking up and positive when the player is looking down. If you apply AngleVectorsyou correctly get the corresponding forward vector.

But for any (?) random entity, pev->angles 0th value also corresponds to the pitch, but is positive when the entity is "aiming" up, and negative when it's aiming down. And if you apply AngleVectors you will get incorrect vectors.

What's the deal here? I must be misunderstanding something

WPMGPRoSToTeMa commented 6 years ago

Stupid Quake Bug

GaussianReflex commented 6 years ago

So am I correct in assuming that this bug is present in both client and server so this can't be fixed in ReHLDS/ReGameDLL, and I just have to live with it and invert the pitch in the right places?

Is there a rule of thumb of where to invert and where not?