Left 4 Dead 2

Left 4 Dead 2

[VScript] Buffed Riot Shield
74 Comments
★JΛKΣ★ 4 Jul @ 2:53pm 
how to customize?
cool_weeb 30 Jun @ 8:37pm 
could you do this same script for the tonfa?
zuaL 30 Jun @ 4:42am 
if a smoker can grab the shield away, the survivor will receive a pistol after that.
It would be really immersive
󠀡 20 Jun @ 8:09pm 
Really like the idea of a buffed riot shield but I don't like the block by chance thing neither. Would much more prefer taking no damage from attacks at front or a damage reduction at front like the chainsaw has when chainsaw is attacking. Really good that riot shield can block smokers, jockeys and hunters. Does it block boomer vomit tho?
Ali the Monster Slayer 20 Jun @ 2:09pm 
It shouldn't block by chance.This dosen't make sense
Horniyomi 14 Jun @ 4:39am 
Nice mod but I can only seem to be able to block common attacks by chance and the smoker tongue, but not the hunter or jockey for some reason. Not sure if it has to do with any other vscripts I have installed, closest one I can think of as the reason why is the item drop on immobilization script but that's about it.
Aurelíos 6 Jun @ 11:50pm 
riot shield is meta now :steammocking:
Megatron  [author] 22 May @ 4:33am 
thank you
toolazy 22 May @ 4:28am 
i say it work

its work agains smoker jockey and hunter not charger
Megatron  [author] 3 May @ 5:47pm 
:steammocking:
Bro, I have a question.
Does your mod necessarily require the additional add-ons?
Because I have them all, and they conflict (and I checked all my mods).
And the conflicting mods are:
1- Vanilla + Riot Shield
2- Fireaxe (i.e., Riot Shield in the Parish)
3- Riot Shield Unlocker
4- Riotshield Unlocker with HUD Icon
Heavyeatsandvich 1 May @ 8:20pm 
still, a really good mod nice work!
Heavyeatsandvich 1 May @ 8:20pm 
if possible could complex blocking work on the hunter/jockey? it does seem to work for commons as I was doing some testing with an 50% block chance but it never triggered when I had my back turned to them.
Macaco De Gelo 26 Apr @ 4:42pm 
ngl this mod is peak
Megatron  [author] 25 Apr @ 9:32am 
fake
El Maxi 24 Apr @ 6:13pm 
I wanted a mod like this, and it's finally in my left 4 dead 2, thanks a lot man!
izida1005 24 Apr @ 3:28pm 
Hello, Can you make version for tonfa? It's just would look great with this one https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=314336351
ĐuckĐẹpJaiPóĐòyQá 24 Apr @ 8:10am 
pls can u make it block only , canT attack with shield to balance ?
Jimmothy fatnugs 23 Apr @ 11:34pm 
this is sweet! possible suggestion though, what if while it was on your back not equipped it could protect you from getting punched in the back by infected aswell as block friendly fire. :zomthumbup:
MossShrub 23 Apr @ 4:43pm 
It would be awesome if there was a version like this for the knife.
ᴰᴺ ᴍᴀʏᴄᴏʟ 23 Apr @ 1:37pm 
UFF
uronga 23 Apr @ 1:23pm 
This would make a fun mutation where it's just you and a shield vs tons of specials
SHADOWMOON 23 Apr @ 7:07am 
Need shield unlocker?
Megatron  [author] 22 Apr @ 6:13pm 
@ruben1430 maybe

@kurochama i solved it somehow and it also works on specials and versus so idk
now (maybe now) only witch throws a error while attacking :steamhappy:
ruben1430 22 Apr @ 5:46pm 
the mods have conflict is it ok
kurochama 22 Apr @ 5:35pm 
The "index 'attackerentid' does not exist" is probably related to another "attacker" on "player_hurt". "player_hurt" has 2 types of attacker, "attacker" for player type (special, tank, survivor) & "attackerentid" (common, witch, & world like traps, fall damage etc). I'm not sure if you've already added that player-type "attacker" or not yet, but last time I checked when noticing people commenting about error on console, I only saw "attackerentid" on the "player_hurt". If you haven't added something like "param.attacker" for player-type attacker yet, probably you can add it to solve the error on console.
Јамеѕ 22 Apr @ 5:33pm 
Aright, i'll test it out soon.
Megatron  [author] 22 Apr @ 5:30pm 
omg....... i fixed it....... (i think)
Megatron  [author] 22 Apr @ 4:37pm 
💔
Јамеѕ 22 Apr @ 4:16pm 
AN ERROR HAS OCCURED [the index 'attackerentid' does not exist]

CALLSTACK
*FUNCTION [OnGameEvent_player_hurt()] scripts/vscripts/okkg_RiotShieldBuff.nut line [135]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[params] 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
Doctor Sex 22 Apr @ 1:01pm 
block chance for common is kinda weak, and where is batton lol
Megatron  [author] 22 Apr @ 12:19pm 
21 hours 10 minutes
ChimiChamo 22 Apr @ 11:09am 
when dumb thrice
ミ★๖ۣۜLυηα★彡 22 Apr @ 8:48am 
AN ERROR HAS OCCURED [the index 'attackerentid' does not exist]

CALLSTACK
*FUNCTION [OnGameEvent_player_hurt()] scripts/vscripts/okkg_RiotShieldBuff.nut line [138]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[player] INSTANCE
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_hurt"
[idx] 3
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_hurt"
[this] TABLE
[params] TABLE
[event] "player_hurt"
[this] TABLE
Cr0w 22 Apr @ 6:33am 
Also, knockback from a Charger, like Blitz had suggested sounds like a neat idea- would be cool if that were possible!
Cr0w 22 Apr @ 6:28am 
Thanks for your quick work! Would love to see a complex blocking option for normal attacks and such as well as I've been doing a bit of work myself to balance out this cool concept.
Megatron  [author] 22 Apr @ 4:53am 
Fixed the bug that heals you, added a new ems option "Only Block Common Attacks = true", f u dont have it delete the ems file and create it again
Megatron  [author] 22 Apr @ 4:03am 
soon
I encounter the same bug as o0Dragon King0o said
o0Dragon King0o 22 Apr @ 12:59am 
I've just set the block chance to 100 for testing, it was hilarious to see the Tank deals zero damage. However, there seems to be a bug that make it heal you when you get hit from behind by common infected. I'm not sure if the setting is related to that.
2011 Xbox Username 21 Apr @ 11:20pm 
i feel like maybe a slightly longer stun would compensate it for being able to block attacks like these? idk anything about balancing though or if its even a good melee weapon to put such a nerf like that on it
Cr0w 21 Apr @ 7:24pm 
I notice that special attacks can also be blocked despite what the config says. Will there be an EMS separate for the chance to block special infected attacks, cause I do kinda like that, but i'd like it separate. I also notice that, at least on my mod settings, that taking a blocked common hit to the back (damage from the back is halved) that you will actually be healed and even overhealed because of the hit being halved but I guess the block is still giving the full damage back. Might not be an issue if in the future a way is found to make it only block damage taken from the front, but could be worth looking into.
Aleph_Null 21 Apr @ 6:57pm 
whats complex blocking?
Megatron  [author] 21 Apr @ 10:05am 
@Interneted fixed it, thanks
Blitz 21 Apr @ 9:45am 
Would be pretty cool if you can also block a charger's charge but instead of just being staggered you'll be knocked back like how you get knocked when a charger hits you with a charge while carrying someone.
Interneted 21 Apr @ 9:39am 
the error on line 53 is because it's possible that player is not holding any weapon resulting in player.GetActiveWeapon() returning null, you need to check if the active weapon is not equal to null.

plus, at the end of the function, make sure to return false.
Genghis Penghis 21 Apr @ 9:06am 
Oh sick! I've always wanted a mod like this
Megatron  [author] 21 Apr @ 9:00am 
also added a "No Complex Blocking = false" to the ems file so smokers can be blocked from any direction, if u dont have it delete the ems file and create it again
Megatron  [author] 21 Apr @ 8:51am 
update fixess i think
薇琪 21 Apr @ 7:32am 
AN ERROR HAS OCCURED [the index 'GetModelName' does not exist]

CALLSTACK
*FUNCTION [CheckWeapon()] scripts/vscripts/okkg_RiotShieldBuff.nut line [48]
*FUNCTION [OnGameEvent_player_hurt()] scripts/vscripts/okkg_RiotShieldBuff.nut line [112]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[player] INSTANCE
[this] TABLE
[player] INSTANCE
[params] 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