Left 4 Dead 2

Left 4 Dead 2

302 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
15 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)
18
1
31 Jul @ 3:42am
Bugs and issues report / Questions / Suggestions.
Interneted
0
28 Dec, 2023 @ 8:53am
PINNED: settings.cfg
Interneted
41 Comments
BrainDamaged 2 Sep @ 12:13pm 
it works well, but they will ditch things like defibs and special ammo if their medkits from before are still around. so maybe a mod that keeps them from automatically going for items would work well with this.
็่ 4 Aug @ 10:43am 
why did i say that
Interneted  [author] 4 Aug @ 5:54am 
No, and that's one of the reasons i won't likely implement it.
็่ 3 Aug @ 9:47pm 
i cant even imagine your one expert and your teamate is black and white they take out there first aid but you take it before they can heal
็่ 3 Aug @ 9:46pm 
does this work on human players
|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