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 ![](http://imagizer.imageshack.us/v2/800x600q90/404/spymapsroofintro180010.jpg "") ![](http://imagizer.imageshack.us/v2/800x600q90/40/teststrider670032.jpg "") Mods Moddb page; [http://www.moddb.com/mods/the-closure](http://www.moddb.com/mods/the-closure "")

Posts

  • Foofinoo avatar
    Foofinoo username pic Joined 5y ago
    Lost in time...
    Cell 1 Flag Affiliation: Cell 1
    11,998 points Ranked 390th
    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
    Foofinoo
    Cell 1 Flag
    Affiliation
    Cell 1
    4y
    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
    Mantra
    Professional Crastination
  • does-not-exist avatar
    does-not-exist Joined 5y ago
    Offline
    4y
    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
  • SPYmaps avatar
    SPYmaps Joined 5y ago
    Offline
    106 points Ranked 29816th
    4y
    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

Embed

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

Author

SPYmaps avatar
SPYmaps Joined 5y ago
Offline
106 points Ranked 29816th

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

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 3,616 Views
  • 3 Posts
  • 4y Submitted

More from Submitter

bcp.crwdcntrl.net tracking pixel