Code: Select all
pryC.x = CLAMP(look.tAng.x, (0 - pActVars->pitchLimit), pActVars->pitchLimit);
pryC.z = CLAMP(look.tAng.z, (0 - pActVars->yawLimit), pActVars->yawLimit);
/* WARNING!!!!! The above pryC auto-initializes pryC.y to 0 on the client, and something like - or + 504 on the server!!!
CryLog("CLIENT pryC %f", pryC.y);
CryLog("SERVER pryC %f", pryC.y);
Lost about 5-7 hours on this since I thought I was either passing pitch/yaw wrong, skewing somewhere else, etc.
Ended up just randomly cry-logging related variables server vs client-side until I got to this.
If this is an issue on my part, please advise. I think this can be easily replicated.