Permanent editing

Loc-Dog

Newbie
Joined
Aug 21, 2005
Messages
280
Reaction score
0
When i play HL2, i always go into the console and change the properties of the weapons. Like how much damage they do and so on. But you have to do this to suit your wishes every time you restart the game, or every time a map loads, even.

So i'm just wondering if you can change this stuff permanently, like in a text document or something. It's a simple question, but i dont know anything about the technical stuff of HL2 other than console commands.
 
Put the console commands that you use in a text file, call it something like "weapons.cfg" and put it in whereveryouinstalledsteam\SteamApps\your@account\half-life 2\hl2\cfg

Next time you play, type "exec weapons.cfg" and you're good to go.

Or, you could edit the already-existing config.cfg file and put them in there - that's automatically run by HL2
 
Pi Mu Rho said:
Put the console commands that you use in a text file, call it something like "weapons.cfg" and put it in whereveryouinstalledsteam\SteamApps\your@account\half-life 2\hl2\cfg

Next time you play, type "exec weapons.cfg" and you're good to go.

Or, you could edit the already-existing config.cfg file and put them in there - that's automatically run by HL2
Where is the already existing .cfg file located? I wasn't able to find it.

There is no your@account\Half Life 2 folder on my computer. Theres only your@account\counter-strike source and \Half Life 2 Deathmatch.
 
If you don't have a HL2 folder, there's a pretty good chance you're not actually playing HL2...
 
Hmm. I did reinstall the game right before i went on vacation. Today is the first time i start it up since the reinstall. Maybe the folders have yet to be created. Anyways, i'm making a "weapons.cfg" file now to see how it goes.
 
Okay, it doesnt work. What happens is that the config.cfg file changes back to its default when i start the game.

For example i want the damage of the pulse rifle to be 20. When i turn on HL2, i immediately check the console, and indeed it does say "damage_ar2 20". But when i start the game it changes back to "damage_ar2 8". What should i do?
 
You could also edit
valve.rc under
half-life 2 deathmatch\hl2\cfg

and add
exec weapons.cfg
under
exec default.cfg
 
Ive got it, it works. But i have to exec it every time a map loads. How can i make even that automatic? I heard something about an autoexec kind of file? Thanks for the help.
 
Im pretty sure thats what the valve.rc file is for.
If it doesn't work in there just trying making an autoexec.cfg and putting in
exec weapon.cfg
 
I made an autoexec file and typed "exec weapon" in it. And now the game crashes every time i start it up. Even after ive removed the autoexec.cfg
 
Back
Top