Half-Life 2

Half-Life 2

View Stats:
Loom Nov 30, 2024 @ 3:12pm
how to permanently change weapon damage?
i used the "sk_plr_dmg" command but every time i load a new map or quick load or anything thats loads it resets to the original damage so uhh how to i make it permanent???
Last edited by Loom; Nov 30, 2024 @ 4:42pm
Originally posted by kreededalt:
Easiest way to do it, since as mentioned above that some mods will override these files when a map is loaded, is to make your own .cfg file and then bind it to a key to press after every loading screen. It is annoying but way less annoying than having to manually input the commands each time. (Side note - you can do all of this while the game is loaded and you are playing in the background, I actually recommend it for SMALL changes such as weapon damage for instant testing.)

You will go to:

\\C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2_complete\cfg
(hl2_complete will help keep the file for the episodes as well)

Here, you want to either copy one of the cfg files then edit it in Notepad or etc. or you can make a .txt file containing commands, then make sure you save it as a .cfg file.

An example of changing weapon damages and max ammo for weapons for the file will look like this:
sk_max_ar2 120
sk_max_smg1 200
sk_plr_dmg_ar2 20
(Make sure to put commands on a new line and that they are spelled properly.)

Not sure if it is necessary or not, but at the very end add alias <what ever you want the command to be called> (If you want spaces in the command name make sure to use " " around the name of the command.)

Make sure to save it, then go back to HL2 and open the terminal. Type in:
exec <command file name>, but do not hit enter just yet. It should pop up below with the name if it is properly being pulled from the game files. If it is, you can go ahead and execute it to test it is working properly.
If there are any errors, it should give a basic description. Check to make sure you got the commands typed in correctly and maybe use the "find <keyword>" and "help <command>" to search for the exact command you want and maybe some details on what it does.

Finally, just use: "bind <key you want to bind the command to> <"exec <command name">
(BE SURE TO INCLUDE THE " " around the exec and command name!).
You should be able to get out of the menus, and press the key while in game to use the command. You can check the console again to see if the commands ran (some do not show up this way however, you will just have to manually test them).
You can also use: bindtoggle <key> <command> - to have the bind be a toggle.

Hope this helps. I have tried to directly edit the config.cfg file to have these things happen automatically but my mods run scripts and override these files. You may also check out editing autoconfig.cfg, I have not done that but there are plenty of tutorials around for doing that exact thing if that is what you want to do.
< >
Showing 1-6 of 6 comments
Colonel Vanek Nov 30, 2024 @ 3:20pm 
Got to: Steam\steamapps\common\Half-Life 2\hl2\cfg
First create a backup copy of the file skill.cfg. Now you can just open skill.cfg with notepad and edit the damage values for the weapons. The changes you make there are permanent.

Unfortunately, some custom maps on the workshop contain their own skill.cfg file, so they will overwrite the changes you've made.
Loom Nov 30, 2024 @ 5:03pm 
its not working nothing i change makes any difference

Originally posted by Colonel Vanek:
Got to: Steam\steamapps\common\Half-Life 2\hl2\cfg
First create a backup copy of the file skill.cfg. Now you can just open skill.cfg with notepad and edit the damage values for the weapons. The changes you make there are permanent.

Unfortunately, some custom maps on the workshop contain their own skill.cfg file, so they will overwrite the changes you've made.
The author of this thread has indicated that this post answers the original topic.
kreededalt Dec 1, 2024 @ 3:43am 
Easiest way to do it, since as mentioned above that some mods will override these files when a map is loaded, is to make your own .cfg file and then bind it to a key to press after every loading screen. It is annoying but way less annoying than having to manually input the commands each time. (Side note - you can do all of this while the game is loaded and you are playing in the background, I actually recommend it for SMALL changes such as weapon damage for instant testing.)

You will go to:

\\C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2_complete\cfg
(hl2_complete will help keep the file for the episodes as well)

Here, you want to either copy one of the cfg files then edit it in Notepad or etc. or you can make a .txt file containing commands, then make sure you save it as a .cfg file.

An example of changing weapon damages and max ammo for weapons for the file will look like this:
sk_max_ar2 120
sk_max_smg1 200
sk_plr_dmg_ar2 20
(Make sure to put commands on a new line and that they are spelled properly.)

Not sure if it is necessary or not, but at the very end add alias <what ever you want the command to be called> (If you want spaces in the command name make sure to use " " around the name of the command.)

Make sure to save it, then go back to HL2 and open the terminal. Type in:
exec <command file name>, but do not hit enter just yet. It should pop up below with the name if it is properly being pulled from the game files. If it is, you can go ahead and execute it to test it is working properly.
If there are any errors, it should give a basic description. Check to make sure you got the commands typed in correctly and maybe use the "find <keyword>" and "help <command>" to search for the exact command you want and maybe some details on what it does.

Finally, just use: "bind <key you want to bind the command to> <"exec <command name">
(BE SURE TO INCLUDE THE " " around the exec and command name!).
You should be able to get out of the menus, and press the key while in game to use the command. You can check the console again to see if the commands ran (some do not show up this way however, you will just have to manually test them).
You can also use: bindtoggle <key> <command> - to have the bind be a toggle.

Hope this helps. I have tried to directly edit the config.cfg file to have these things happen automatically but my mods run scripts and override these files. You may also check out editing autoconfig.cfg, I have not done that but there are plenty of tutorials around for doing that exact thing if that is what you want to do.
天音Alpha Dec 1, 2024 @ 6:10am 
Originally posted by Loom:
its not working nothing i change makes any difference

Originally posted by Colonel Vanek:
Got to: Steam\steamapps\common\Half-Life 2\hl2\cfg
First create a backup copy of the file skill.cfg. Now you can just open skill.cfg with notepad and edit the damage values for the weapons. The changes you make there are permanent.

Unfortunately, some custom maps on the workshop contain their own skill.cfg file, so they will overwrite the changes you've made.

Hold on, which
skill.cfg
did you edit?
The backup file should be the original file, which came with the installation of the entire game, and the real
skill.cfg
would be the one your game would load, which means you should edit this one to make your own settings work

And also, if you didn't install Steam in default location, then your
skill.cfg
location would be: (Windows as example)
<Your Steam Folder Location>\steamapps\common\Half-Life 2\hl2\cfg\skill.cfg
and if you want to edit the
skill.cfg
of your mods such as MapLab Series, it would be
<Your Steam Folder Location>\steamapps\sourcemod\<Your Mod Folder Name>\cfg\skill.cfg
if your Mod has Independent
skill.cfg
wers1de Dec 1, 2024 @ 6:11am 
ky
Loom Dec 1, 2024 @ 10:14am 
Originally posted by kreededalt:
Easiest way to do it, since as mentioned above that some mods will override these files when a map is loaded, is to make your own .cfg file and then bind it to a key to press after every loading screen. It is annoying but way less annoying than having to manually input the commands each time. (Side note - you can do all of this while the game is loaded and you are playing in the background, I actually recommend it for SMALL changes such as weapon damage for instant testing.)

You will go to:

\\C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2_complete\cfg
(hl2_complete will help keep the file for the episodes as well)

Here, you want to either copy one of the cfg files then edit it in Notepad or etc. or you can make a .txt file containing commands, then make sure you save it as a .cfg file.

An example of changing weapon damages and max ammo for weapons for the file will look like this:
sk_max_ar2 120
sk_max_smg1 200
sk_plr_dmg_ar2 20
(Make sure to put commands on a new line and that they are spelled properly.)

Not sure if it is necessary or not, but at the very end add alias <what ever you want the command to be called> (If you want spaces in the command name make sure to use " " around the name of the command.)

Make sure to save it, then go back to HL2 and open the terminal. Type in:
exec <command file name>, but do not hit enter just yet. It should pop up below with the name if it is properly being pulled from the game files. If it is, you can go ahead and execute it to test it is working properly.
If there are any errors, it should give a basic description. Check to make sure you got the commands typed in correctly and maybe use the "find <keyword>" and "help <command>" to search for the exact command you want and maybe some details on what it does.

Finally, just use: "bind <key you want to bind the command to> <"exec <command name">
(BE SURE TO INCLUDE THE " " around the exec and command name!).
You should be able to get out of the menus, and press the key while in game to use the command. You can check the console again to see if the commands ran (some do not show up this way however, you will just have to manually test them).
You can also use: bindtoggle <key> <command> - to have the bind be a toggle.

Hope this helps. I have tried to directly edit the config.cfg file to have these things happen automatically but my mods run scripts and override these files. You may also check out editing autoconfig.cfg, I have not done that but there are plenty of tutorials around for doing that exact thing if that is what you want to do.

It worked thanks a lot man!
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Nov 30, 2024 @ 3:12pm
Posts: 6