Batch script goes in the
C:\Program Files\Activision\Call of Duty: Modern Warfare\main folder. right click -> edit to customize.
Usage: Right click, run as admin and wait for progress bar to be at 100%. launch cod4, open the console and type:
/exec out.cfg. This has to be done inside an actual private match or while running a demo, once set, you can start the animation using the preferred keybind
Sets the keybind to start the animation
Sets the name of the ingame variable string to set (not important, unless you have your own variable strings)
Config to write to
Amount of steps (step "rate", depending on wait ..; parameter)
Time in ms (relative to game performance) between each step/frame
Call first variabe string at the end of the final vstr (making the sequence loop), not recommended as it will not allow you to perform any other in-game actions while looping. ending this loop can only be done using a forced shut down.
set dvar=r_lightTweakSunDirection set start=-45 0 0 set end=-45 360 0 set dvar=cg_fov set start=80 set end=65
Set start and end of the dvars you wish to use, but do not use decimals (only round numbers).