How to change ammo amount ?

A Forum Thread for Half-Life 2: Episode Two

need to give a weapon less ammo to carry, how?

Hello, am working hard on my HL2 ep2 SP-mod, (please see link and screenshot at bottum if your interested). I did add a sniper rifle to the mod and long ago some one explained to me how i could give it more ammo in its chamber and magazine. So i changed it, believe it was in a .cfg file. Now i want to change it again because otherwise the weapon is much to powerfull, when it can be used all the time. Just forgot which file i used to change it. Can someone please tell me were i can do this, have been looking in to this for quit some time now. Please help, Leon ![]( "") ![]( "") Mods Moddb page; []( "")
Sign up to access this!


  • Foofinoo avatar
    Foofinoo username pic Joined 5y ago
    Lost in time...
    Cell 1 Flag Affiliation: Cell 1
    12,278 points Ranked 386th
    30 medals 3 legendary 6 rare
    • Returned 5000 times Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    • 2nd Place - Marble Tracks Redux Contest Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    Foofinoo avatar
    Cell 1 Flag
    Cell 1
    It's a .txt file located in the scripts folder (for the crossbow, it's "scripts/weapon_crossbow"). You have just to find the line "clip_size" and change the value...
    Professional Crastination avatar
    Professional Crastination
    URL to post:
  • does-not-exist avatar
    does-not-exist Joined 5y ago
    So damn easy. For spare ammo, you'd go to whatever CFG file you've set it in, but since most people set their max ammo values in cfg/skill.cfg, that's probably where you should look at. Don't know what cvar you've set to control max ammo, but you can find it all there. For the max mag capacity, pretty easy too. Just go to scripts/weapon_(whatever).txt and fiddle with the "clip _size" parameter. wait, IT'S THIS MOD
    URL to post:
  • SPYmaps avatar
    SPYmaps Joined 5y ago
    106 points Ranked 30331st
    Thanks guys! It will indeed be very easy for you to find this, but as a mapper i have no skills at all with this. But, did find the weapon_crossbow.txt in the scripts folder and changed it back. See if i only need to change this or also something to lower the amount of magazines. thanks,! Leon
    SP leveldesign maniac
    URL to post:


Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code


SPYmaps avatar
SPYmaps Joined 5y ago
106 points Ranked 30331st

Sign up to access this!
Sign up to access this!
Sign up to access this!


Sign up to access this!



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 3 Posts
  • 5ySubmitted

More from Submitter

More Other/Misc Threads tracking pixel