Left 4 Dead 2

Left 4 Dead 2

Give N Take - Interneted Version
 This topic has been pinned, so it's probably important
Interneted  [developer] 28 Dec, 2023 @ 8:53am
settings.cfg
If you have loaded a map at least once with this add-on installed, a settings.cfg file will be created into Left 4 Dead 2/left4dead2/ems/interneted_gnt2

Here is the default code:
{ enablePlayerExchange = false switchToItem = false alwaysWalk = false takeAndExchangeIdlePlayerItems = true takeandExchangeIncapPlayerItems = false }
Key
Type
Description
enablePlayerExchange
boolean
Allow player survivors to exchange items with another player survivor?

Both of you need to face each other and shove while holding the item with the same slot to exchange.
switchToItem
boolean
Whether the taker switches to received item upon receiving the item. However, this will not work for giving pills and adrenalines since it is built in the game.

28/03/2025: You can install this add-on to prevent temporary health switching, it works by dropping the receiver item and picking it back up:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3444371110

I only recommend changing it to true if you just want to be consistent with the pills and adrenalines, keep it mind that bots may accidentally use the item when switched.
alwaysWalk
boolean
Every actions requires holding your walk key bind to execute if this is set to true

This setting ensures that accidental item transfers do not happen when shoving.
takeAndExchangeIdlePlayerItems
boolean
Allow player survivors to take and exchange items with idle player survivors?

The game still considers them as bots.

Could be useful if you don't want your items stolen when you are away?
takeandExchangeIncapPlayerItems
boolean
Allow player survivors to take and exchange items with incapacitated player survivors?

Could be useful when you are in a crisis situation and taking their items to protect your teammates, as well as avoiding team wipes?

So what happens if you try to take an incapacitated idle player items when takeAndExchangeIdlePlayerItems is set to false, and takeAndExchangeIncapPlayerItems is set to true?

The second setting is prioritized, so you will be able to take their items.


You may change the values for each key inside the table as you like.

Don't change anything else inside the .cfg file or even putting words other than true and false, otherwise you would have to load a map with the add-on again to gain the default code or just copy the code above.

Using it in PvP gamemodes
The addon has functionality on all gamemodes and maps, but for PvP gamemodes like Versus it is automatically disabled by Valve.

To make it work in Versus on your local server, right-click on Left 4 Dead 2 in your steam library, select Properties, click on the Installed Files tab, then click on the Browse... button.
Go to left4dead2/cfg/ and open addonconfig.cfg with a text editor or Notepad.

Finally, edit this line:
"versus" "1"
Last edited by Interneted; 30 May @ 6:41am