18.12.2016, 10:57
(
Last edited by IllidanS4; 31/01/2017 at 04:18 PM.
)
I've done some minor research, and I have found three possibilities for the return value:
Reversing the conversion, the actual values obtained from the player are 85, 63 and 198 respectively, for the above cases. It's not an actual field of view angle, but it does represent how large the player's field of view is.
- 4:3 (1.3333334, Float:0x3FAAAAAB) - this is returned for the majority of players, when the "widescreen" option in the display settings is turned off, possibly incorrectly when they actually have a widescreen display.
- 5:4 (1.2470589, Float:0x3F9F9FA0) - this value is returned when the letterbox mode is turned on, like via YSF's TogglePlayerWidescreen.
- 16:9 (1.7764707, Float:0x3FE36364) - this value is returned in all cases when the "widescreen" option is turned on.
Code:
v6 = (double)*(_BYTE *)(v4 + 30) * 0.0039215689 + 1.0;