Difference between revisions of "Changing max ammo in HL2"

From Valve Developer Community
Jump to: navigation, search
m
(Cleaned up somewhat and removed signature. (Signing is against wiki policy.))
Line 1: Line 1:
== Changing maximum ammo in HL2 ==
+
Many people that make a total conversion mod will want to change the maximum ammunition settings in Half-Life 2. This small tutorial will tell you just how to do that.
Many people that make a total conversion mod will want to change the ammunition settings in Half-Life 2. This small tutorial will tell you just how to do that.
 
  
== Editing ammo settings ==
+
# Using [[GCFScape]], open the GCF file called ''source engine.gcf''.
Before we can change the values in our mod, we need to get a file from one of the gcf's.
+
# In this file, browse to <code>Root/hl2/cfg/</code> and extract the file called ''skill.cfg''.
Using [http://nemesis.thewavelength.net/index.php?p=26 GCFscape] we open the GCF called source engine.gcf. in this file, browse to Root/hl2/cfg/ and extract the file called skill.cfg.<br>
+
# Place the extracted file in <code>Steam/Steamapps/Sourcemods/yourmodname/cfg/</code>.
Place the file in Steam/Steamapps/Sourcemods/yourmodname/cfg/. Then go down to the Weapons part, and edit the lines starting with sk_max_*, where * is the name of the weapon (such as pistol, 357, ar2, etc).</br>
+
# In this file, go down to the ''Weapons'' part, and edit the lines starting with <code>sk_max_*</code>, where <code>*</code> is the name of the weapon (such as pistol, 357, ar2, etc).
<br><br>[[User:Solokiller|Solokiller]] 13:03, 12 November 2006 (UTC)
 
  
 
[[Category:Programming]]
 
[[Category:Programming]]

Revision as of 23:30, 12 November 2006

Many people that make a total conversion mod will want to change the maximum ammunition settings in Half-Life 2. This small tutorial will tell you just how to do that.

  1. Using GCFScape, open the GCF file called source engine.gcf.
  2. In this file, browse to Root/hl2/cfg/ and extract the file called skill.cfg.
  3. Place the extracted file in Steam/Steamapps/Sourcemods/yourmodname/cfg/.
  4. In this file, go down to the Weapons part, and edit the lines starting with sk_max_*, where * is the name of the weapon (such as pistol, 357, ar2, etc).