Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.
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.
Hold on, which
The backup file should be the original file, which came with the installation of the entire game, and the real
And also, if you didn't install Steam in default location, then your
It worked thanks a lot man!