Left 4 Dead 2

Left 4 Dead 2

1,229 ratings
Current Item Drop on Immobilization
5
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
20.379 KB
18 Mar, 2024 @ 11:30am
24 Dec, 2024 @ 8:33am
25 Change Notes ( view )

Subscribe to download
Current Item Drop on Immobilization

In 1 collection by tomaz
My L4D2 VScript Collection
32 items
Description
My first "proper" VScript mod to refresh my coding skills and to familiarize myself with VScript. This makes it so that you drop the current item in your hand whenever you get grabbed by a SI or whenever you get immobilized in general. As a result, it adds a small new twist to your gameplay and kinda acts as a difficulty modifier.

FEATURES:
  • Any item in your hand can get dropped, including melees, throwables and health items, but not pistols (by default).
  • When grabbed by a Smoker, you'll still have a brief time window where you can save yourself and not have your item dropped, before getting pulled completely.
  • Anyone that is knocked by a Charger (not carried) can have their item dropped.
  • Slipping and grabbing on a ledge will cause your item to drop. Watch your step!
  • Getting punched by a Tank will result in having your item dropped.
  • Getting incapacitated will cause your item to drop.
  • Config file to tweak to your liking. Check out the pinned discussion to see what parameters you can change.

NOTE:
  • Although the pistols can technically be dropped, they really shouldn't be, so they've been blacklisted by default.
  • The dropped item instructor hints might not work as expected in some cases but it should work just fine in normal use cases.
  • In theory, bots will refrain from stealing your dropped weapons, but keep in mind that they'll still steal items such as throwables, pills, etc.

Like with pretty much every other VScript, this will only work in singleplayer or a locally hosted server.

This mod is probably janky so expect some bugs.
I still kinda suck at VScript so don't expect any more mods like this, at least not any time soon.

CREDITS:

I fully support & encourage edits of my mods. If you decide to upload your edit to the workshop or anywhere else, you are free to do so without needing to ask first, however please make sure that you credit me appropriately for the original work as well as any other authors that have contributed to the mod and provide a link to the mod that your edit is based on.

Popular Discussions View All (2)
4
1
5 Jul @ 6:08pm
PINNED: CONFIG
tomaz
1
30 Apr, 2024 @ 7:26am
adsd
فَجْرَسَارَحَ
169 Comments
Goosifer412 2 Jun @ 12:40pm 
Small issue, I removed Pistol from Blacklisted and I got caught by a smoker, a pistol dropped. But when I was released i had another pistol, and thus picking up the one I dropped resulted in double. Any potential fix?
TheTuncT 16 May @ 7:43am 


I've added this addon to the Tacticam Addon Collection. Check it out here: Tacticam


I want to modify the dropped prompt. Is it not possible to use Chinese? If not, can I use English and just modify this line? local caption = "Your item was dropped";:sad_seagull:
Ugly American 1 May @ 3:25pm 
dude my auto shottie went under a fkin car god damn it....
NEORETROGAMING 27 Mar @ 6:51pm 
Perfect! Thank you so much. I'm French and I didn't immediately understand that you were encouraging editing your mod. I was planning to ask you to help me find a solution to include an additional weapon database, but now I'm just going to make a variation. And it's with great pleasure that I'll credit you. (the name is CIDOI+)
Bonjet 5 Mar @ 4:30am 
Imagine your items drop off at the cliff, bridge, top building... F
Star With A Game 3 Mar @ 8:14pm 
cool concept but when in actual gameplay it is a nightmare. good mod tho :steamthumbsup:
f962341 13 Jan @ 1:10am 
10 OF 10
o_-KILLJOY-_o 11 Jan @ 4:17am 
i just tried to cross a bridge and got jumped by a hunter which ultimately through the gun off into the water:steamfacepalm:
Shieldbearer 4 Jan @ 8:41pm 
This mod is terrible, I love it.

in all seriousness, it definitely amps up the difficulty, in a good way. Tanks are a real threat here- combine this mod with Tiny Tank to REALLY spice up the tank fights. Definitely not for a casual playthrough, but if one wants some challenge, this mod is an excellent pick.