Left 4 Dead 2

Left 4 Dead 2

218 ratings
Give N Take - Interneted Version
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
22.667 KB
27 Nov, 2023 @ 10:12am
30 May @ 4:44am
32 Change Notes ( view )

Subscribe to download
Give N Take - Interneted Version

In 1 collection by Interneted
My VScripts Collection
13 items
Description
Thank you, patience and mistakes.

After some more deep VScript learning, I decided to force myself to make my own assessment, which is to make my own version of Give N Take by MANACAT from scratch, it took me a few days until I am satisfied with the result.

I am publishing it in case anyone is comfortable using this.

Description
This simple script add-on allows you to give and exchange items to your fellow survivors and take bot survivors' items.

Features and notes:
  • To take the bots' items, you need to shove the bots while holding your walking bind (default is SHIFT), you can't shove them from a distance.
  • To take the incapacitated bots' items, you need to hold your walking bind (default is SHIFT), and then revive them.
  • To give and exchange, you can shove the survivor from a distance while holding the item.
  • Taking items only works on survivor bots. For exchanging, you need to set enablePlayerExchange in the ems to exchange with players, the mechanic is different from bots, see the pinned discussion to see how it works.
  • If you are holding a medkit, you must hold your walking bind in order to give or exchange, default is SHIFT.
  • You can still give and exchange if your target is incapacitated or dominated by a special infected.
  • You cannot take bots' items when you are not holding anything (you can't shove), in other words, only with shoving.
  • Additions to make it consistent with the temporary health items' mechanic:
  1. The survivors will speak their responses, they will also speak as they have never known the survivors' names.
  2. Emiting the big reward sound to the shover, and small reward sound to the rest of the survivors.
  3. Giving and exchanging's range should be approximately close to the original mechanic.
  4. Giver and exchanger will switch to their primary or secondary weapon when the action is done.
  • Include configurable settings, see the pinned discussion for more information.
  • Only works on local/dedicated servers.

Inspired by smilzo's Left 4 Bots and MANACAT's Give N Take, Special thanks to those VScripters who have helped me too along the way.

Another similar script that I would recommend by Nescius
Popular Discussions View All (2)
16
1
26 Apr @ 5:50pm
Bugs and issues report / Questions / Suggestions.
Interneted
0
28 Dec, 2023 @ 8:53am
PINNED: settings.cfg
Interneted
36 Comments
|PeleQ| 30 May @ 6:28am 
Yup, works great, thanks king!
Interneted  [author] 30 May @ 4:52am 
Updated, I have added the setting and it should be working now, enjoy! :)
|PeleQ| 30 May @ 3:25am 
Here, you dropped this 👑

Honestly though, glad I'm not the only one out there getting annoyed by it :P
In that case - I'm looking forward to the update, thanks!
Interneted  [author] 30 May @ 2:43am 
I have thought about making that addition a while ago from my friends sometimes complaining. xD

At first, I thought of making a config for another key for other players but I don't want it to be too complicated for users, I am still thinking about this option.

I guess I can add another setting where you will always need to hold shift for any item transfer in the next update.
|PeleQ| 30 May @ 2:27am 
Any chance of a mod like this (or some config setting?) but have it where shoving by itself never trades or otherwise gives away your held item?
I'm talking about AI bots in particular, as a solo enjoyer (using Left4Bots, first version) my heart crumbles whenever I'm surrounded, holding a grenade, going for that quick shove before throwing it, only to find myself giving it away to bot Coach on accident xd Having it where holding Shift for any item transfer (or just a dedicated button at this point) would help me a bunch!
Any chance at all, or is that hard-coded into this game's DNA to just be annoying? :P
Interneted  [author] 21 May @ 12:46am 
@voidboy13
Nope, only items.

This mod might interest you
voidboy13 20 May @ 9:53pm 
can you give put weapons?
Interneted  [author] 30 Dec, 2024 @ 10:31pm 
@ Fiendzy
All I know from that script is that it forces scripted mode, so it is incompatible with VSLib related add-ons. Plus, it is outdated, so as you said, I might cause some issues.
Fiendzy 30 Dec, 2024 @ 10:50am 
be careful with vscript autoloader, it can and will make your game rather unstable when interacting with the enviroment in my testing;
Jakiy 2 Dec, 2024 @ 7:46am 
This sounds good on paper but in reality it's kinda messy. I often mispressed the key and ended up fried up my teammates. I want to give, not to accidentally throw the molov.