Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --STARTUP SCRIPT, SAVED IN "/Content/<gamename>/Scripts/Startup/"
- local FOV = plr_fFOVOverride
- local SendFOV = function()
- prj_strCustomOccasion = string.gsub(prj_strCustomOccasion,"{FOVforCWM=.-}","")
- prj_strCustomOccasion = prj_strCustomOccasion.."{FOVforCWM="..FOV.."}"
- end
- while true do
- Wait(Delay(0.01))
- if (FOV ~= plr_fFOVOverride) then
- FOV = plr_fFOVOverride
- SendFOV()
- end
- end
- --WORLD SCRIPT, 'READING' THIS
- local FOV
- RunHandled(WaitForever,
- OnEvery(Delay(0.1)),
- function()
- local string = prjGetCustomOccasion()
- local config = string.match(string, "{FOVforCWM=.-}")
- if not (config == nil) then
- local arg = string.sub(config,12,-2)
- if not (arg == "") then
- FOV = tonumber(arg)
- if (FOV == -1) then
- if worldGlobals.CWMisBFE then
- FOV = 75
- else
- FOV = 90
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement