Valve.rc

From Valve Developer Community
Revision as of 22:33, 4 July 2009 by Craziestdan (talk | contribs) (Created page with 'Valve.rc is a file that lies inside the game / mod's cfg folder. It is a file that automatically executes convars on game launch, identical to that of the autoexec.cfg. …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Valve.rc is a file that lies inside the game / mod's cfg folder. It is a file that automatically executes convars on game launch, identical to that of the autoexec.cfg.

To create one simply create a text document and save it with a .rc extension.

Example syntax:
 // load the base configuration
 //exec default.cfg

 // Setup custom controller
 exec joystick.cfg

 // run a user script file if present
 exec autoexec.cfg

 //
 // stuff command line statements
 //
 stuffcmds

 // display the startup level
 startupmenu