Left 4 Dead 2

Left 4 Dead 2

914 ratings
Current Item Drop on Immobilization
4
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
39.862 KB
18 Mar @ 11:30am
4 Oct @ 9:06am
22 Change Notes ( view )

Subscribe to download
Current Item Drop on Immobilization

In 1 collection by tomaz
My L4D2 VScript Collection
24 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)
2
1
27 Oct @ 11:56pm
PINNED: CONFIG
tomaz
1
30 Apr @ 7:26am
adsd
__19365OKUPA$
145 Comments
Agitatio 9 hours ago 
I see dropping on rock hits was already suggested before. Still planning to add that some day?
Agitatio 28 Oct @ 12:05am 
Config has that option. I don't know how you edited it and still asking for something that is in the config.
Doc903 20 Oct @ 7:45am 
Would you mind posting a second version that makes you drop... everything? I edited the cfg and losing the primary, secondary, pills, and healthkit is fun and chaotic. Could just call it hardmode.
daniel, the fool 12 Oct @ 10:32pm 
Oh, Ellis lathered his hands in oil again. Dag nabbit...
rafix432maman 6 Oct @ 5:31am 
IS TOP ISTI L4D3
tomaz  [author] 5 Oct @ 3:55am 
not any that I know of
Gumbs 4 Oct @ 10:52pm 
DOes it currently have notable errors? this is interesting
tomaz  [author] 4 Oct @ 8:52am 
oooohh that does seem a bit more practical, thanks!!
Interneted 3 Oct @ 5:37pm 
Instead of check the projectile, you can use the m_bRedraw netprop on the item to fix the dupe, it will be set to 1 when thrown. ;)
Kyto 24 Sep @ 1:57pm 
thanks! Really appreciate the mod you made here