Left 4 Dead 2

Left 4 Dead 2

62 ratings
Limited Ammo[Sub weapons]
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
5.701 KB
26 Jul, 2024 @ 8:17pm
26 Jul, 2024 @ 8:42pm
2 Change Notes ( view )

Subscribe to download
Limited Ammo[Sub weapons]

Description
[Works on local host and dedicated server[/b]

Make the pistol and magnum have limited ammo. Refill ammo by using the ammo pile. Host can customize the maximum ammo of each weapon by setting it in modsetting.txt.

modsetting.txt is locate in [Game directory] > Left 4 Dead 2 > left4dead2 > ems > limitsubammo > modsetting.txt
default setting: Magnum = 80 Pistol = 300

the setting is apply in real time. you can change anytime even during gameplay
NOTE: If you change the max ammo, the new setting won't take effect for the currently equipped sub weapon ammo until you use the ammo pile to refill it.
28 Comments
Everice  [author] 12 Jul @ 11:31am 
In l4d1 you can manually change weapon.txt inside scriots folder(IIRC) open pistol.txt then change ammo_type to something else eg. Autoshotgun which will make weapon pistol have the same ammo as autoshotgun and could make ci stumble just like autoshotgun does
Brazil 12 Jul @ 7:43am 
Is there any way to get this working in left 4 dead 1?
Everice  [author] 6 Jul @ 3:35am 
NetProp is individual entity. I changed weapon pistol NetProp ammo type. And I only set it to apply to unowned pistol(pistol that hasn't been picked up once). There is no way this mod will affect primary weapons. If it does, your problem comes from some weapon mods
Jakiy 6 Jul @ 1:48am 
It affect the primary weapon ammo instead. :steamsad:
Everice  [author] 28 May @ 12:38am 
no. that's the cause why you saw chinese letters instead of en letters. you can now open it with windows notepad
bennobrba22 27 May @ 9:40am 
There was text next to the pistol ammo count that said NUL, but I went and removed that. Is that NUL text necessary for the mod to work?
Everice  [author] 27 May @ 9:33am 
you will need to use better text editor such as notepad++
this has been a problem from windows a long time
bennobrba22 27 May @ 9:27am 
Getting a string of Chinese letters on opening the modsetting.txt file, is this normal?
Everice  [author] 22 May @ 10:22pm 
i can't fix problems that come from another mod. that means my mod works perfectly fine on its own, not a bug from my mod
Faith Over Science 22 May @ 9:24pm 
Bugs:

Crashing and stuttering.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3123223144

Reloading magnum depletes awp/scout ammo if using a custom gun script for them.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3290271877