Left 4 Dead 2

Left 4 Dead 2

Give N Take - Interneted Version
Interneted  [developer] 27 Nov, 2023 @ 10:20am
Bugs and issues report / Questions / Suggestions.
Post it in here and I will try to reply as fast as possible.

Before you post anything, make sure to read the description of the item.

As for suggestions, I can only accept them if I am interested.

Make sure to report console errors too, even if the add-on is working.


Bugs, limitations, or considerations:
  • If you have switchToItem set to true and Left 4 Bots installed, the bot may throw the throwables after being given, nothing I can do about this, I recommend preventing the bots to throw in the settings for Left 4 Bots.

  • You may not be able to take items when you are in a moving elevator.

  • It is incompatible with weapon scripts that swaps its slot/more inventory slots, for example like throwables have been moved to the 5th slot. Not sure I will fix it considering the amount of people that actually uses it.

    DON'T USE THEM TOGETHER!

I got some more ideas to make it better, but it wouldn't affect that much, I think these adjustments are enough to cope with normal gameplays.

Just a fun fact about Left 4 Bots: The nades throw setting doesn't actually control the bots to throw the nades or not, but rather to switch to the nades or not, that's why changing the setting doesn't fully fix issue with this add-on when switchToItem is set to true.
Last edited by Interneted; 15 Dec, 2024 @ 4:56am
< >
Showing 1-15 of 16 comments
BUG
When I hold pills, a medkit, or throwable items and then shove a zombie, the game crashes. I speculate that this might be due to the mod attempting to give the items to the zombie, resulting in a game crash. I hope you can fix this issue soon. Thank you.
Sorry, when I restarted the game, I found that the bug disappeared, possibly conflicting with other mods

Besides, I hope you can create a mod that will prevent Fallen Survivor from running away. Thank you very much
Interneted  [developer] 2 Dec, 2023 @ 12:12am 
Ah, I see, I've tried to make sure that the target isn't a zombie, but I think there's something missing in the code, it's not going to affect gameplay, it will just show errors in the console, but it will try to fix it as soon as possible.

And script add-ons in a very rare case don't work with each other, mind telling me the script add-ons you used?

I don't think I will be doing your idea though as I find it not interesting, but I do appreciate your add-on suggestion.

Overall, thank you for your report, and have a nice day! :steamhappy:
ChimiChamo 11 Dec, 2023 @ 2:44pm 
I've discovered the issue with survivors speaking their item pickup lines with ammo packs at least with rochelle specifically. Turns out the criteria that prevents her from saying the lines if pickedupitem is one just simply doesn't exist, they forgot to add it. So if you want to fix the lines for her at least you could set the "speaking" context to 1 for a second or something as that would prevent her from saying the lines as well. If you are hearing it with other survivors then idk the problem. maybe i should make a talker mod that fixes that
Interneted  [developer] 11 Dec, 2023 @ 9:00pm 
Yes, so far after I tested multiple times, it appears that rochelle is the only one speaking the lines, and if you're wondering, it's the result when using the GiveItem function.

I am guessing the 'Speaking' context disables every single lines of her? I haven't tested it yet. But I would say it's better than nothing.

Overall, thank you for the help and good luck with your next talker mod!
ChimiChamo 11 Dec, 2023 @ 10:00pm 
The speaking context just prevents survivors from speaking most automated lines, vocaliser commands and map dialogue still works fine
Core Values Bro 16 Dec, 2023 @ 7:54am 
Every time I swap my throwables with a bot teammate (particularly pipe bomb & boomer bile), they have the tendency to throw swapped throwable right off the rip. A good handful of plays that I've cooked up while going through the campaign gets sent to the shadow realm real quick because of this.

The duplication bug that I've seen a handful of times as well, actually prevents losing a throwable from a ill-fated throw from my dogwater bot teammates.

However, I did come across a game breaking bug though. During the 2nd level of Dead Center where my bot teammate was carrying the cola bottles to Whitaker, I tried to swap throwables with them but when I did the swap to get a boomer bile, the cola bottles just disappeared & broke the level.
Interneted  [developer] 16 Dec, 2023 @ 5:39pm 
Ah yes, I totally forgot about that.

I got some the same issues too regarding giving throwables to the bots and they immediately throw them without reason whil using left 4 bots, I don't think there's anything I can do about that other than you disable bots in the left 4 bots ems folder setting, in conclusion, my script doesn't work well with how left 4 bots handle the bots throw the throwables.

I will also try to fix the duplication bug assuming you are still letting the bots throw their throwables, after I am back from my busy hours.

For the gas, propane, oxygen tanks, as well as cola, I haven't tested it, I thought they would drop the can after switching to the given item, I will try to make sure they still holding the quest items while they still receive the items from other survivors.

Overall, thank you for report!
Hello, thank you very much for making this mod, I have been using it for a while and it feels great

However, this mod also has a disadvantage. When playing with computer-controlled teammates, when I give an item to a teammate, the teammate will automatically switch to the item. At this time, if the teammate sees a zombie, he will immediately use the item. .

Imagine that when you find a Molotov cocktail in a small room, you give it to a teammate to hold it for you. At this time, a zombie suddenly appears, and the teammate throws the Molotov cocktail directly, and the Molotov cocktail is thrown on the ground. Everyone inside the house was burned to death. It was a disaster.

I found that this is a game setting. When you give an item to a teammate, the teammate's hand will be forced to switch to that item.

So, can you make a mod so that when the player receives an item, the player's hand is no longer forced to switch to that item?
Interneted  [developer] 28 Dec, 2023 @ 5:29am 
Ah I see, that's unfortunate, yes my script forces the taker to switch to that item.

I guess it's just how the game was designed where bots immediately use the item upon sighting an infected.

But I will consider your problem on my list, I currently doing the code from zero again and I will also add ems configurable settings to make sure the taker doesn't switch to the item when given.

Stay tuned for the next update!
Thank you very much for your reply

I modified the settings.cfg file according to your updated method, and the situation has improved, but the medicine will still be forced to switch.

I once used a mod that enhanced the robot: [Advanced Bot AI]. This mod made the robot actively pick up items and hand them to the player. I found that when the robot gave me items, I would not be forced to switch the items in my hand. Maybe you can Get help from this mod
Interneted  [developer] 29 Dec, 2023 @ 4:07am 
I haven't look at the code nor try it, but if I have to guess, the mod allows bots to give pills and adrenalines even if the player is not low on health.

In vanilla, bots give them to you when you are low on health, and you are forced to switch to it.

But about that mod, he coded it so that bots give them to you whenever they like regardless of your health state. Because of that, he can freely decide whether to switch to it or not.

You can already give pills and adrenalines to bots in vanilla, so in my script, only exchanging will not cause the receiver to switch to the item, I cannot do anything with giving.

Overall, thanks for pointing me out about that add-on and report any bugs along the way, appreciate it!
I see, thank you very much for your reply

In addition, I have imagined a mod that sets the bullets of all weapons in the game to one magazine. When the player finishes shooting this magazine, the weapon will randomly change into another weapon, and the changed weapon will also only have one magazine.

I think this mod will greatly increase the fun and randomness of the game, and allow players to become familiar with more firearms faster. Do you think this mod can be achieved?
Interneted  [developer] 30 Dec, 2023 @ 2:56am 
Yep! It's definitely possible, I can agree that sticking to your favorite weapon is pretty boring, but I feel like one magazine is a bit too much, there's a mutation that is similar to your idea, you can try it out, https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=188590719
Very minor suggestion, but could you change the PlayerThanks response to the PlayerGivenItem response? So that the thanks responses work the same as the default giving temp health items. Or is there a specific reason PlayerThanks is used?
Last edited by MisterMayoNL; 26 Apr @ 6:23am
< >
Showing 1-15 of 16 comments
Per page: 1530 50