Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
How to make your own "auto setting" console commands.
By ᴄɪᴛʀᴜꜱɪꜱ
   
Award
Favorite
Favorited
Unfavorite
What I need?
  • Have a txt edit software.
  • Ability to pack/unpack vpk.
  • Patience.
What I should do?
  1. Find your current InGameMainMenu.res. Probably in resource\ui\l4d360ui.
  2. Now open it.
    You see every control is coverd by "{}".
    So you can paste the format below between any two units.
    "#Format"
    {
    "ControlName" "SliderControl"
    "visible" "0"
    "minValue" "#num"
    "maxValue" "#num"
    "conCommand" "#console command"
    }
    Better not to repeat the control name with others.
  3. Here is an example.
    "LockFlashLight"
    {
    "ControlName" "SliderControl"
    "visible" "0"
    "minValue" "0"
    "maxValue" "0"
    "conCommand" "r_flashlight_attach_to_viewmodel"
    }
  4. Then save the file and pack to vpk. Done.
    Everytime you open the in game menu these settings will be setted once.
    Have fun!
How does this come out?
  1. When the game begin your most settings will be rest.
  2. The value will be limited between min/max limit of the slider when loaded.
  3. By adding such invisable slider controls you can change settings easily.