Camera changes too late in simulations
The current camera handling in Netplus is made with a hack that the camera changes only occur in real game.
Also, the hack disables the camera cone limit with climbing Knuckles and when riding a minecart.
This ensures that your camera won't ever be messed up.
The only thing is being really messed up is localangle
variable, everything else seem to be working in order.
If there won't be any hacks regarding this issue, then the camera would be changed every simulated tic, which is undesirable. There is a way to check for camera consistency, but due to the ticcmd_oldangleturn += delta;
in P_SetLocalAngle()
, it messes up your character rotation. Every time you rotate the character, it also pushes ticcmd_oldangleturn, so that's why there's delta
to prevent angle changes.
I haven't found a way to disable this and make a better implementation of it.