Left 4 Dead 2

Left 4 Dead 2

813 ratings
Gunshots attract infected
2
2
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
File Size
Posted
Updated
16.105 KB
3 Oct, 2024 @ 11:13pm
8 Nov, 2024 @ 3:32pm
5 Change Notes ( view )

Subscribe to download
Gunshots attract infected

Description
This mod causes common infected to target survivors when they fire their weapons. Low caliber firearms such as pistols or the uzi will only draw the attention of nearby infected. Powerful weapons like the shotguns or sniper rifles can draw in commons from a considerable distance. The only exception is the silenced SMG; its namesake silencer lets you fire it without being detected by all but the closest common infected.

I have updated the mod to address several key issues, including:
- infected ignoring pipe bombs and bile bombs
- infected changing targets rapidly or running away from a survivor they're already attacking

They've been fixed by only having the script trigger for survivors who aren't in combat (IE: survivors who haven't dealt or taken any damage in the last few seconds). What this means is that a shot can be fired to draw in any nearby infected, but they'll behave as normal for any additional shots. If you don't deal or take any damage for a few seconds, you can fire another shot to draw them in. This makes the mod useful for clearing rooms full of infected, but still keeps the games combat the same as vanilla.

The volume levels of each weapon can be customised by editing the ems file "ems\gunshots_attract_infected\weapon_volumes.txt". This allows you to tailor the mod to suit your specific weapon setup. If you use other mods to give weapons silencers, you can easily reduce the volume levels to accurately reflect this.
208 Comments
Geebanger0  [author] 20 Oct @ 12:52pm 
doesnt work like that
Ajiliffe 20 Oct @ 7:48am 
Make the worker infected (the ones with headphones) ignore this entirely (as an option, because, why not?)
Death&AllHisFriends 29 Sep @ 9:18am 
Hey idk if youre still in the mood for these QOL improvements, but if you are could you make it so that the pipebomb doesnt override the attention of commons when a survivor is biled or when a bile bomb hits something. Never made sense to me that they care more about a loud noise than the literal zombie juice?
Redeyes 7 Sep @ 5:13pm 
I know it isnt this mod causing it but I've been having an issue where the console is overlayed on the left side. it's just text but I cant not notice
ink 6 Sep @ 5:25am 
It might not be this mod itself and could be something else, idk
ink 6 Sep @ 5:25am 
So idk why, but my game crashes occasionally when this mod is enabled..sucks cuz I really love this mod
Noodlepikmin 26 Aug @ 6:34am 
Boomer has left the chat
Barktrap 15 Jul @ 11:59am 
So pipebombs don't attract the roadcrew uncommons, but gunshots do. Interesting piece of Valve logic.
Geebanger0  [author] 10 Jul @ 11:56pm 
I dont see how this mod would do that
Geebanger0  [author] 10 Jul @ 3:41am 
That's what they do in vanilla. If you want a more exaggerated version of that, you're wanting an entirely different mod