Left 4 Dead 2

Left 4 Dead 2

1,546 ratings
Low Ammo Sound Cue
4
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
15.305 KB
Mar 23, 2024 @ 5:05pm
Dec 20, 2024 @ 4:29pm
13 Change Notes ( view )

Subscribe to download
Low Ammo Sound Cue

In 1 collection by tomaz
My L4D2 VScript Collection
32 items
Description
A rather simple VScript that plays a click sound on each shot whenever your current weapon's mag capacity is at 20% (30% if you have a shotgun), or in other words, when your ammo is "low enough", kinda like in CS:GO/CS2, in fact, this uses the click sound from it.

NOTE:
  • Due to a limitation with the .mp3 file format, the beginning of the sound is always padded out, making it ever so slightly delayed.

Special thanks to Nescius for coming up with the string table overflow/crashing fix.

This will only work in singleplayer or a locally hosted server.

I fully support & encourage edits of my mods. If you decide to upload your edit to the workshop or anywhere else, you are free to do so without needing to ask first, however please make sure that you credit me appropriately for the original work as well as any other authors that have contributed to the mod and provide a link to the mod that your edit is based on.

118 Comments
Freeagin Aug 7 @ 11:19pm 
实用:100oj:
kegelbane Jul 15 @ 11:34am 
I found a script that performs a similar function, but it doesn't have the sound issue during healing.

https://steamcommunity.com/sharedfiles/filedetails/?id=3386188570&searchtext=Low+Ammo+Sound+Cue
kegelbane Jul 15 @ 7:59am 
I don't have any mods or scripts that would affect the healing in any way, I tried to disable about half of the scripts that would approximately affect this, I also disabled the sounds.

Something incomprehensible is happening somewhere, oh well. Maybe it will resolve itself in the future.
tomaz  [author] Jul 13 @ 6:12pm 
i'm looking back at this and i just realized i already had accounted for this sort of thing and the sound doesn't do that for me when using a medkit, so i have no clue what's happening on your end.

are you sure you don't have any medkit related scripts or something?
kegelbane Jul 13 @ 10:53am 
Cool, I'll wait for the update.
tomaz  [author] Jul 13 @ 10:52am 
ohhhh now i know what you mean, your other comment implied that it was the actual healing sound itself.

i know what the problem is and i'll fix it when i get the chance, thanks for telling me.
kegelbane Jul 13 @ 10:42am 
kegelbane Jul 13 @ 8:52am 
I don't know what happened. I checked again and it's working fine now — the sound no longer glitches during healing.
Maybe it was some kind of error in the game itself or a mod incompatibility. In any case, I checked and everything seems to be working properly now.

Thanks for replying
tomaz  [author] Jul 13 @ 7:45am 
this doesn't replace any sound or anything like that so idk what you're talking about
kegelbane Jul 13 @ 12:31am 
The healing sound is glitchy with this mod.