Left 4 Dead 2

Left 4 Dead 2

141 ratings
Item giver
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
29.329 KB
1 May @ 10:47am
1 Change Note ( view )

Subscribe to download
Item giver

Description
Script that adds possibility of binding a button to exchange items with other survivors

Example of binding this to "q" key
bind q "setinfo nescmd giveitem; taunt; nescmd 0"

You can paste that line to console.
If something is unclear about how to bind it ask it in the discussion section not in the comments

Now when you use this on a bot:
with a primary/secondary weapon in your hand -> you will take all the items/weapons they have that you have free slot for (can do triple click to switch your held weapon with a bot just be aware that the first click will always take their available items first)

with item in your hand -> you either give it to the bot or switch it with them if they have other item in their slot

for human players you can only give them an item that's in your hand when they have free slot for it


If you are script maker that wants to bind some action to a button you can use this addon as required item for your mod.

======================================
Paypal [www.paypal.com] for donations if you feel generous and want to encourage me to make more addons
Popular Discussions View All (2)
0
1 May @ 10:52am
Bug reports
Nescius
0
1 May @ 10:51am
Questions about how to bind it
Nescius
14 Comments
Pwnage Peanut 1 Jul @ 8:00pm 
No such thing
樱涩舞 10 May @ 12:07am 
Does anyone know any official L4D2 staff? It's been a long time since 《Last stand》 was last added to the official campaign. It's time to add the official forgotten map 《Dead Line》to the official campaign.
Niko 5 May @ 9:47am 
edgelord
nick69 4 May @ 8:41am 
what butten?
:steambored:
Tijabe 4 May @ 8:03am 
not working :(
JUP17ER 4 May @ 5:44am 
slow movement when carry m60:tank:plz
Ilshat52 3 May @ 11:23pm 
:104::steamhappy:
Dex 3 May @ 10:14pm 
BEST MOD !!!!!!!!
Nescius  [author] 3 May @ 3:31pm 
Good suggestion. I did think of something like that where it would show a message to player I try to switch/take item with and will probably add it at some point.
kurochama 2 May @ 6:38pm 
It's very good. I thought bind feature via vscript was limited only to certain buttons that could be registered on "GetButtonMask()", but seeing this mod made me get some enlightenment to see a bigger picture & knowledge that it's actually possible to bind any keys to some vscript features. It's pretty simple too, as people can use it simply by writing that command line.

Just a random suggestion, probably if you plan to develop this further to allow swap items between players (not only give but also swap), if it's possible to be made, you could also add some binds on "yes/no" confirmation in few seconds after first "item transaction", so if the other player presses "yes" key during "transaction time", item will be swapped. Probably this could be helpful in multiplayer.