Kai so, everytime I open the Ingame overlay when I'm in a passenger seat of a vehicle, everything turns black (check screenshot) + the command "NAN" spams the console. (I posted this in a different forum) Anyone knows what this is? Since I can't code, this is like watching arabic news without subtitles. *EDIT* Tends to happen in APC's passenger seats!
I remember way back I had some debug code in I think hud_crosshair. It would print out "NaN" if it couldn't get the location the player was aiming, but that would only happen with a very obscure bug which was tied to vehicles. That might be it.
nan means you're dividing by zero (usually) I had a few issues like this with weapon scripts and shotguns and certain settings. I've also had this issue when I changed the turret model of a vehicle to be something that isn' ta turret model (like an ML turret) I ended up with a camera underground a fuckton of NaN and lag.
Yes, only NAN printing code is in the hud_crosshair. If I were you, I'd wait for 2.25 which shouldn't take long and might fix it.
i once had the nan code when i wanted a shotgun infantry weapon to gain accuracy as shots where placed
It's something to do with like divisions or square roots in the code and you can't square root a negative.
Something like that. I got this message when the shotty pistol's spread decrement value was bigger than its spread increment value.
http://en.wikipedia.org/wiki/NaN IEEE 754-1985 also defines other special cases like positive infinity and negative infinity values.