Left 4 Dead 2

Left 4 Dead 2

855 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.
221 Comments
Geebanger0  [author] 5 Dec @ 9:32pm 
also, it'll only attract infected if youre not already in combat. You can kill a zombie with a pistol first and then youve got a brief moment to use your awp without attracting anything
o_-KILLJOY-_o 5 Dec @ 9:21pm 
thanks, I understand 2000 is a bit to much.
Geebanger0  [author] 5 Dec @ 8:04pm 
The game plays the music whenever a large number of infected are running at once. this will happen during hordes, but also when you fire a loud gun and lots of infected attack you. If youre getting swarmed youre probably moving slower through the map and not getting as far before the next horde spawns.
o_-KILLJOY-_o 5 Dec @ 7:57pm 
i feel like this triggers mobs events to spawn more regularly am i wrong? for example my AWP is set at 2000 if i shoot just outside the safe room on spawn i can trigger a mob event as the zombat music starts playing. Once the music dies down, next portion of the map I shoot a infected and all the infected in the area will run to me but another mob event will spawn along side them as the mob music starts playing. So going through the map with a AWP just seems to have more hordes.
Sassy 5 Dec @ 3:19pm 
Hello friend, could you please be so kind as to create a mod that attracts infected on voice lines? I think this would be hilarious, I keep trying to get the whisper voice line as Nick and he just ends up screaming "♥♥♥♥♥♥♥" at a crowd who aren't alerted yet, would be neat if they ran at him for that XD
Geebanger0  [author] 4 Dec @ 12:30pm 
i forgive you :BL3Thumbsup:
Mr Tomato 4 Dec @ 6:33am 
Oh my apologies
Geebanger0  [author] 2 Dec @ 10:34am 
read the description...
Mr Tomato 2 Dec @ 5:05am 
Any way to customize what weapons the infected react with specifically? Like something in the debug menu or something? like instead of just the silenced SMG they also don't react to the military sniper or something?
Gonzbt/Betel.Arg 24 Nov @ 2:40am 
SMG weapons do not work, the rest of the weapons do.