Files
Divergent/mods/Outfit Animations/gamedata/scripts/lam_fov_manager.script
T
Rage 376b4b9689 Added New Mods and Profiles Folders
This is a complete rebuild of the modpack, with all new mods and updates for 1.5.3 of Anomaly.
2025-01-14 05:07:53 -05:00

31 lines
501 B
Plaintext

local default_fov
function on_game_start()
RegisterScriptCallback("on_game_load", on_game_load)
RegisterScriptCallback("on_option_change", on_option_change)
end
function on_game_load()
write_fov()
end
function on_option_change()
write_fov()
end
function write_fov()
default_fov = ui_options.get("video/basic/hud_fov")
end
function set_fov(new_fov)
exec_console_cmd("hud_fov " .. new_fov)
end
function restore_fov()
exec_console_cmd("hud_fov " .. default_fov)
end