Scripts / FOV Slider in-game - how to remember setting?

Author
Message
Cobbs
4
Years of Service
User Offline
Joined: 20th Sep 2020
Location:
Posted: 2nd Mar 2021 17:16
Is it possible to have the game remember the FOV setting players set the slider to? Currently it resets upon game load or file load
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 5th Mar 2021 00:09
I wrote a chunk of code to test it, basically, play with g_PlayerFOV and with GetGamePlayerStateCameraFov(), although is the last one you are looking for, I guess.
Change fov values via tab-tab and see the values changing in realtime in the prompt.
Just pass this value to a var and play with it.


Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 5th Mar 2021 06:40
Yes anything is possible with lua, just save the setting to a file and read back in. Lua.org is your bible
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++ VS2019, SQL, PL-SQL, JavaScript, HTML, Three.js, others
Hardware: ULTRA FAST Quad Core Gaming PC Tower WIFI & 16GB 1TB HDD & Win 10 (x64), Geforce GTX1060(3GB). Dell Mixed Reality VR headset, Aerodrums 3D
loelatte
User Banned
Posted: 19th Apr 2021 00:01 Edited at: 21st Apr 2021 23:34
Even better a benchmark tool so I don't have to keep fiddling around the settings during the starting of the game.






https://testmyspeed.onl/

Login to post a reply

Server time is: 2024-12-22 01:46:10
Your offset time is: 2024-12-22 01:46:10