Left 4 Dead 2

Left 4 Dead 2

Infected can disarm survivors
46 条留言
Geebanger0  [作者] 9 月 21 日 下午 10:35 
i love you
pelo e taladro 9 月 21 日 下午 10:31 
unfair mod, i love it :spiffo::spiffo:
我們不是為了遊戲! 8 月 26 日 下午 9:33 
hello bro, does this mod make regular zombies disarm you? I like it! It gives that realistic touch when fighting them up close with weapons.
Ponds34 8 月 3 日 上午 11:38 
You should add a setting to allow only special infected or common infected to disarm you, Its cool to have a tank disarm me whereas its annoying to lose my gun in the middle of a horde with nothing but a pistol to kill them
Geebanger0  [作者] 7 月 10 日 上午 3:41 
Ellis doesn't get stumbled there, he just runs away
withextradip 7 月 10 日 上午 12:12 
You should make the survivors stumble when they drop a weapon, similar to the video
rgawsome231 7 月 9 日 下午 6:21 
@Geebanger0

Many thanks for the explanation, I hope you have a fantastic night and good fortune on future projects!
Geebanger0  [作者] 7 月 9 日 上午 12:02 
If you get an error, it means that at some point during this the script failed. So long as it still otherwise works though, it's fine. Almost every script I make produces errors in console constantly. I don't know how/can't be bothered to make them in such a way that they don't produce the errors. The scripts still work perfectly fine otherwise, and most people don't check the console at all so they won't even know.

So yeah, unless the script doesn't work, you don't have to worry about the errors.
Geebanger0  [作者] 7 月 8 日 下午 11:59 
The function basically means this

When a player takes damage:
- Check which player it was who took the damage
- Check what damage type that player took. Every damage type has a corresponding number
- If the damage type equals 128 (which it should if a common infected hit the player):
-- Continue with the rest of the script
rgawsome231 7 月 8 日 下午 8:34 
Hey I don't know if you still watch over this mod but on line 117 to 122 which is this:

function OnGameEvent_player_hurt(event)
{
local victim = GetPlayerFromUserID(event.userid);
local damagetype = event.type;
if(damagetype == 128)

I think this is what causes error problems on my computer, as in the console it show it as "type is not a valid" something of this sort. I was wondering if you can explain what this function does and maybe review it to see if it happens on your end too.

Thank you for your time! :-3
Corveck (Fusion) 6 月 20 日 下午 10:42 
@an apocalypse fae It's not like anyone's asking you to download this lol
an apocalypse fae 6 月 16 日 下午 1:54 
i'd like to keep my reserve ammo :/
kouga 5 月 29 日 下午 11:19 
is it possible to add a variable in the cfg to blacklist what weapons can be dropped?
SP-Calamitas 5 月 26 日 上午 5:24 
thank you. i found it the mod causing it but, curiously, it seems this mod has an error actually


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

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

LOCALS
[victim] INSTANCE
[event] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_hurt"
[idx] 11
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_hurt"
[this] TABLE
[params] TABLE
[event] "player_hurt"
[this] TABLE
kurochama 5 月 25 日 上午 9:57 
@SP-Calamitas , the file is inside the vpk file. Use GCFScape tool to check what's inside the vpk file. The mod that has that error must be related to item drop mechanisms.
SP-Calamitas 5 月 25 日 上午 9:42 
thanks for the insight. how would i go about doing this? using wiztree i cant seem to find a file with that name or a folder called vscripts
kurochama 5 月 25 日 上午 6:58 
@SP-Calamitas , I think you mistook it for other mod. I checked this mod, & this mod didn't use "weapon_drop". The clue is on that " scripts/vscripts/DropDaGun.nut ". This mod uses "director_base_addon.nut" so if there's an error, the error would be like this instead: " scripts/vscripts/director_base_addon.nut ".
So, the error in your case is caused by other mod. You need to find the mod that uses that "DropDaGun.nut".
SP-Calamitas 5 月 25 日 上午 5:12 
yes but this error pops up in the console
Geebanger0  [作者] 5 月 24 日 下午 3:53 
does the script still work?
SP-Calamitas 5 月 24 日 上午 7:23 
error

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

CALLSTACK
*FUNCTION [OnGameEvent_weapon_drop()] scripts/vscripts/DropDaGun.nut line [81]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[player] INSTANCE
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_weapon_drop"
[idx] 3
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "weapon_drop"
[this] TABLE
[params] TABLE
[event] "weapon_drop"
[this] TABLE
kouga 5 月 15 日 上午 11:50 
go for it dude itd be funny
Geebanger0  [作者] 5 月 15 日 上午 3:40 
oh ok. I dont know how to prevent a stagger, but i can make the second thing
kouga 5 月 15 日 上午 1:29 
what? oh nah sorry for the confusion. my request is completely unrelated to this mod; i was thinking to prevent the player from staggering when on green (or whatever health in cfg). but the thought of infected smacking the survivors around sounds hilarious too.
Geebanger0  [作者] 5 月 15 日 上午 12:50 
so the same as this but with stagger instead of dropping your gun?
kouga 5 月 14 日 下午 11:31 
is alr....instead how about a mod that only allows you to get staggered when ur below a certain (configurable) amount of health?
Geebanger0  [作者] 5 月 14 日 下午 9:36 
well... nah. I could do it. I just didnt see much point is all
kouga 5 月 14 日 下午 9:30 
darn nvm then
Geebanger0  [作者] 5 月 14 日 下午 8:54 
i could but itd take ages
kouga 5 月 14 日 下午 8:45 
can you add a configurable setting to tweak which weapons can get dropped or not?
Bubonic Cheese Crust 5 月 8 日 下午 6:19 
Only thing I gotta say about this mod: Dicks.
Ngl, got the Nightmare collection with this mod and I was so thrown back by my sudden missing gun. I mean, I love it, but damn, half the time I didn't know where my gun was. Still a solid 10/10.
Geebanger0  [作者] 5 月 2 日 下午 2:13 
yeah it should work
Vals 5 月 2 日 下午 12:54 
NEORETROGAMING 3 月 16 日 下午 9:14 
Thx ! I love the idea and i need that ! But for consistency with other mod as well as for QoL would it be possible to add an indication on the HUD to have a marker where the weapon is located (like in "current item drop on immobilization") ?
an apocalypse fae 3 月 12 日 下午 2:20 
pretty sure it's broken or a conflict, it's occuring 100% of the time, but i love the idea
Geebanger0  [作者] 1 月 5 日 上午 9:49 
Much obliged
Specters Scream 1 月 5 日 上午 4:16 
I love these mods, keep em up man!
Look 1 月 4 日 下午 5:40 
Survivor dropping weapon.
Bots: Its free real estate
ꉣꍏ꒒ꂵꌗ 1 月 3 日 上午 12:40 
@The Austrian Painter It is the default G3 sniper in the game or "Military Rifle", as they like to call it.
THE AUSTRIAN PAINTER 1 月 3 日 上午 12:07 
what gun is that ellis has
Acciuga Morta 1 月 2 日 上午 11:09 
I have something goofy in my mind, Make every single special have the knockback of a normal tank, that would be absolutely goofy. idk why but flying is funi. :steamhappy:
Geebanger0  [作者] 1 月 1 日 下午 9:24 
much obliged
Slipknot 1 月 1 日 下午 5:27 
geebanger really lives for his name, he makes banger mods like these
ꉣꍏ꒒ꂵꌗ 2024 年 12 月 31 日 上午 3:35 
YES! This will make my game much harder & balance more of my pros that I have in the game w/more cons. I need my difficulty to be much higher than expert, w/these small details.
Samuels' Chili Shop 2024 年 12 月 30 日 下午 7:33 
Gee never fails to make bangers.
TimNPT0 2024 年 12 月 30 日 下午 7:30 
this is some grim shit we got ourselves into
NasanNanayMo 2024 年 12 月 30 日 下午 7:01 
The immerzion is real