Loading a long list of cvars in one command?

New Member
💻 Oldtimer
Joined
Jul 9, 2003
Messages
1,388
Best answers
0
Okay, so i have alot of cvars I was messing with, and I want it to load atleast everytime I start the game, or through a console command.

Anyone here know how this is done?

Throwing all the cvars at the bottom of the server.cfg didnt work for me >.>
 

MC

New Member
💻 Oldtimer
Joined
May 24, 2003
Messages
3,989
Best answers
0
Location
United States, Florida
Go into your ESF folder > Create a new text document > Name it "autoexec.cfg" > Open it and add the commands you want to use > Start ESF and start a new game > Open the console and type "exec autoexec".

That should work (if I remembered how to do it correctly, that is).
 
Active Member
✔️ HL Verified
💻 Oldtimer
Joined
Nov 6, 2004
Messages
3,055
Best answers
0
Location
Round Rock, TX
Just add them to the bottom of config.cfg (where all of your binds are stored). They'll be executed every time the game is launched. Or if you want different lists of commands for performing different functions at different times, create different configuration files naming them appropriately. When you need them, use "exec filename<filename>" and you're set.</filename>
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
I'd suggest putting all your custom stuff in userconfig.cfg which is executed by default by config.cfg.
 
Active Member
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Sep 23, 2002
Messages
1,876
Best answers
0
Location
Fryslân Boppe! The Netherlands
if you want to start them manually, just copy the autoexec.cfg, rename it. put the cvars you want in.
And during the game you can use "Exec name.cfg" to execute them.
 

Users who are viewing this thread

Top Bottom