Left 4 Dead 2

Left 4 Dead 2

248 ratings
Grenade Launcher staggers everything
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Game Modes: Single Player, Co-op
File Size
Posted
2.955 KB
16 Dec, 2024 @ 8:52pm
1 Change Note ( view )

Subscribe to download
Grenade Launcher staggers everything

Description
Any target hit by the grenade launcher will now be staggered. This includes:
- The player using the launcher
- Other survivors
- Tanks and Chargers
- All common and special infected

It's a bit of a rework in a way; the launcher is now very useful against Tanks and specials, but friendly fire and self damage is a lot more punishing.
46 Comments
Cody | MusicLockerStudio 7 Jul @ 10:22am 
can you make one that dont stagger the player who shot the grenade
Courier 6-μ 7 Jun @ 7:20am 
can i have the script like this but without staggering the Tank?
Јамеѕ 19 May @ 11:07am 
Sorry. I just didn't expect a reply so soon.
Geebanger0  [author] 19 May @ 3:44am 
you had a question mark like you were asking why i explained it
Јамеѕ 18 May @ 11:51pm 
I wasn't doubting you.
Geebanger0  [author] 18 May @ 10:38pm 
Well you brought it up, I'm just explaining it
Јамеѕ 18 May @ 8:57pm 
Ah, okay?
Geebanger0  [author] 18 May @ 7:06pm 
It does have a reason. It’s just a false trigger, the script running when it doesn’t need to and since it can’t get the info it needs to run (since the info doesn’t exist) it throws up an error and ends the script. You can ignore them since it doesn’t affect the function of the mod
Јамеѕ 18 May @ 6:46pm 
This gets spammed in the console for no reason.

AN ERROR HAS OCCURED [the index 'attackerentid' does not exist]

CALLSTACK
*FUNCTION [OnGameEvent_player_hurt()] c:/program files (x86)/steam/steamapps/common/left 4 dead 2/left4dead2/addons/workshop/3385964131.vpk/scripts/vscripts/director_base_addon.nut line [6]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[victim] INSTANCE
[event] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_hurt"
[idx] 1
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_hurt"
[this] TABLE
[params] TABLE
[event] "player_hurt"
[this] TABLE
Geebanger0  [author] 2 May @ 11:42pm 
only some explosions. By default they can be stunned by propane, pipe bombs and oxygen tanks, but not grenade launchers.