Closed Raptor007 closed 2 years ago
This might be caused by SV_CalcRoll
or SV_CalcViewOffset
in p_view.c if ent->velocity
does not get cleared at map end.
Might work to just VectorClear(ent->velocity);
in p_hud.c MoveClientToIntermission
.
Edit: Nope, didn't work.
Aha, this is where those values get set: https://github.com/Raptor007/aq2-tng/blob/7fcea7db86db9087bd9217f50db31ca9bdbb7792/source/p_view.c#L297 https://github.com/Raptor007/aq2-tng/blob/7fcea7db86db9087bd9217f50db31ca9bdbb7792/source/p_view.c#L330-L335
So the solution is VectorClear(ent->client->ps.kick_angles);
in MoveClientToIntermission
.
There's a slight roll angle applied to the view when strafing, and if you are strafing when the map ends, that tilt remains on the end of map camera. It should reset to straight up. Not very important, but I also don't think it'll be hard to fix.