SRL Archive - Devs' Corner

Camera angle?


marpis

2011-01-11 10:37:09

Is it possible to get the correct camera angle with reflection?

JPHamlett

2011-01-11 10:59:30

I think its "cam yaw" divided by 45, not 100% on that anymore though.

pyroryan

2011-01-11 20:44:04

From: J_Pizzle
I think its "cam yaw" divided by 45, not 100% on that anymore though.


camYaw*16384/360
camYaw*45.511111111111111111111111111111111
If I recall.

marpis

2011-01-12 03:28:48

From: pyroryan
camYaw*16384/360
camYaw*45.511111111111111111111111111111111
If I recall.


What is this "camYaw"?

pyroryan

2011-01-12 04:42:02

From: marpis
What is this "camYaw"?


Below. Not something that was in the reflection hooks. But if you need it, I'll be happy to add it.

hook_static_CameraYaw = 'gl.l'; //634
So after you added that to hooks.simba, the code to get it would be:

SmartGetFieldInt(0, hook_static_CameraYaw);
Then carry out the necessary operations. Out of curiosity, why is this in Dev's Corner?

marpis

2011-01-13 14:24:33

From: pyroryan
Below. Not something that was in the reflection hooks. But if you need it, I'll be happy to add it.

hook_static_CameraYaw = 'gl.l'; //634
So after you added that to hooks.simba, the code to get it would be:

SmartGetFieldInt(0, hook_static_CameraYaw);
Then carry out the necessary operations. Out of curiosity, why is this in Dev's Corner?


Oops! :redface: