Left 4 Dead 2

Left 4 Dead 2

Survivor's Item Swap and Drop
91 Comments
kurochama  [author] 17 Mar @ 11:44am 
@Pikachu_025 , you can disable "Insult When Shoved" to remove all the complaints.
Pikachu_025 17 Mar @ 10:09am 
Mod works great, but by any chance, do you think you can remove the complaining part for the weapon giving/swapping, its no big deal, just i personally wouldnt wanna hear complaining when im helping them
kurochama  [author] 8 Jan @ 2:35pm 
@Clyde Anderson , I'm not sure of what's more to update, as there's only a minor bug left, like sometimes you can get some bonus items on the ground on the next round/ chapter.
loganbarron 8 Jan @ 1:46pm 
no more update
Edgyiel™ 11 Mar, 2024 @ 12:01am 
@kurochama Nah, that was fixed together, tho I thought I talked about this before and you knew about that.

Also, I think there's one last bug, besides that pistol deagle bug one.

Is trying to find a way to fix the duplicated item that appears after completing a part of the chapter after swapping anything with others.
kurochama  [author] 10 Mar, 2024 @ 1:42pm 
@Edgyiel™ , I see... I thought it was a new bug so I immediately checked it.
Edgyiel™ 10 Mar, 2024 @ 1:40pm 
@kurochama This bug didn't happen because this has been fixed a long time thanks to you.
They are no longer a threat for trolling or making the game more easier.

And no, I don't have other addons scripts that could cause conflict or some sort.
kurochama  [author] 10 Mar, 2024 @ 12:15pm 
@Edgyiel™ , I finished checking the swap process between same weapon, & that bug you mentioned didn't happen. Here's the demo file if you want to see it: Swap Same Weapons [drive.google.com]
Probably there's one or some of your mods that triggered the vanished weapon bug on your play.
kurochama  [author] 10 Mar, 2024 @ 9:56am 
@Edgyiel™ , wait, is it even possible to swap same weapon? I think I set a rule on the scripts that only different weapons can be swapped. I think I need to check it myself soon.

& for removal of dropped item, lately I have an alternative solution in mind, like removing any dropped items in 30-60 seconds after they're dropped. But this might also affect the item drop feature by "TAB + E + SHOVE" buttons, because items dropped by this feature are also registered as dropped items by the L4D2 system. & this will also disable "Item Juggling" trick that's usually used on finale to move items to camping spots other than ones near radio/ designated camping spots by the map.
Edgyiel™ 10 Mar, 2024 @ 9:44am 
@kurochama

If you swap someone's AK with your AK, their AK will be gone, untill they find a new primary to use. THAT is the major threat of trolling.
kurochama  [author] 10 Mar, 2024 @ 1:26am 
@222329404 , yeah some items are dropped on the next chapter. It's because the system sometimes doesn't recognize the swap mechanism so it spawns both the original item before swapping on the next chapter (for example, if you have molotov & then you swap with bot's pipe bomb, on next chapter you'll more likely see a molotov on the ground). But not all the swapped items drop on next chapter.
kurochama  [author] 10 Mar, 2024 @ 1:20am 
@Edgyiel™ , well,about swapping same weapon type becoming a major threat, could you explain more? For example, what makes swapping m16 with ak47 or other rifles become a major threat? I thought the major threat was the ammo refill bug back then, & that was fixed.

As for duplicated support items, actually they're not unlimited. On next chapter, usually there's only one or two dropped additional items on the ground. & as I said before, this one can be tricky, as it's the L4D2 system doing it, like the system doesn't recognize the swap process completely so it spawns both swapped & original items on next chapter. The removal is also tricky as it depends on survivor's spawn location, like, if they spawn far from the supply spots then the removal won't be bugged, but if they spawn near supply spots, items on supply spots will be removed along with the dropped items. That's why for now I let that bug slip, until I find a more effective way to remove the dropped items on the next chapter.
222329404 10 Mar, 2024 @ 12:19am 
@Edgyiel™ Does "the duplicated support items" mean throwables? I also noticed: it seemed that after I had exchanged throwables and moved on to the next chapter, there were more throwables on the ground (I was in the safe room).
Edgyiel™ 9 Mar, 2024 @ 10:50pm 
[Continue]

Ammo and clip refill bugs was the medium threat before fixing it, however, removing their weapons for swapping with the same weapon type, is by far the major threat of your addon, together with the duplicated support items [Not the pills and adren]. Because that will make most things very easy with unlimited support resources and also dangerous for trolls.
Edgyiel™ 9 Mar, 2024 @ 10:41pm 
@kurochama

When I installed your addon for the first time ,I went to the testing map to see how it works, as the time goes by, I knew some things weren't right, after that, I started to investigate more and see if there's more or not. with solo gameplay and also map testing.

Of course, it would be hard to report those bugs without discovering the way to trigger them. Some of them is easy to notice, while others are a little difficult to find.

Luckly there was no crashes [I believe that if I manage to find one, it would stop my game after doing certain actions.
222329404 9 Mar, 2024 @ 10:21pm 
@kurochama You did a great job! While the reaction from the survivors is still a little weird, but it's pretty good now, and you deserve a big big thumbs up!
kurochama  [author] 9 Mar, 2024 @ 5:12pm 
@222329404 , I just added a new value on "Weapon Swap By Shoving" on the new update, & on the new value no. 4, you can't take items from other survivors (bots & players) when you don't have the items, but you can still take throwables from bots. & I also modified "Insult When Shoved" feature a bit on primary weapon swap depending on the weapon tier. So, if you swap your smg (T1 gun) with other survivor's T2 primary gun, the other survivor will complain/ insult. But if you swap your T2 primary gun, the other survivor will give positive responses.
kurochama  [author] 9 Mar, 2024 @ 5:12pm 
@Edgyiel™ , thanks a lot for your supports in testing & also finding bugs that even I didn't notice. Without your bug reports, I wouldn't be able to find out the bugs like ammo refill & ammo clip bugs.
Edgyiel™ 9 Mar, 2024 @ 2:15am 
A friend of mine suggested me this, so I use it and made some tests to see if I could find bugs and I did, of course they got fixed thanks to kurochama. I couldn't find more bugs than what I know so far, so this addon is now useful for your gameplays.
222329404 9 Mar, 2024 @ 1:39am 
@Edgyiel™
We have different understandings, but that's okay, we're lucky to both get the way we need.
222329404 9 Mar, 2024 @ 12:03am 
@kurochama
Then please!
kurochama  [author] 8 Mar, 2024 @ 10:49pm 
@222329404 , no problem. I'm not a native English so sometimes I have some difficulties in some expressions though I can still read without problem. So...
1. For the feature of item swap without taking other survivor's weapons, there's an option by setting the value of "Weapon Swap By Shoving" to 3. When setting the value to 3. you can't take survivor player's items when you don't have the items. But I only limit it only for survivor players, as you can still take items from bots. I can make another value to disallow taking items from bots too if you want.
2. For throwables, the feature of item swap & take is already this way, like if you don't have throwable, doing normal shoving on other survivor bot will take their throwable.
3.For first aid & pills, like point no. 1, value no. 3 can become the solution. Or if you want this to work on bots too, I can add another value to make it work on bots.
Edgyiel™ 8 Mar, 2024 @ 10:36pm 
@222329404
Swap feature is best with friends, doing with random players can have the chance to be trolling in the middle of the campain, but ONLY for those who knows about this addon. If not, then they won't know anything about it.

You can use an addon where you share and give throwables by shoving [without press & hold TAB], it works normally.

Support items is very good to give and also swap in most situations.

Also, I made my request with @kurochama about being able to take items from bots only instead of players. Now you won't have trouble swapping weapons and then taking something else from them at the same time.

It really depends on the owner of this addon when it comes to key binds.
Maybe in the future there will be a way to customize yours to have a easier way to swap & drop.
222329404 8 Mar, 2024 @ 9:53pm 
@kurochama Sorry for my English expression.What I mean by that is:
For main weapons/melee, only swap features, no need to take other survivors' weapons when I'm unarmed (or out of ammo).
For throwables, there is a need for a full "give" and "take" function (after all, sometimes I do not have my own throwables)
For a first aid kit/pill, it only needs to have a "give" function. (In practice, I don't want to take other survivors' first aid kits when I exchange weapons with them or just push them)
Finally, on how to use keys, I believe you are better at it than I am.
❤👍
kurochama  [author] 8 Mar, 2024 @ 8:59am 
4. Well, probably if it's about the "Insult When Shoved" feature, actually it can be set so that the shoved survivor only complains/ insults when you give them lower-tier gun, like, when they have ak47 but then you swap it with smg instead, & they'll give positive response when you give higher-tier gun. Probably I can update it like that on the next update.
5. As for different swapping mechanism for throwables, if TAB button is removed, that might cause a problem of swapping throwable by accident (one of example is during panic event near other survivor. If the swap was without TAB button, when you're preparing to throw a throwable but zombies came too fast, when zombies were shoved & other survivor nearby was also shoved by accident, the throwable would be swapped by accident), because like what I said on point no. 3, TAB button also works as a safety button.
kurochama  [author] 8 Mar, 2024 @ 8:58am 
@222329404 , I still don't get what you wanted to say on some parts of point no. 1, 2, & 3, so I'll try to answer based on what I understand first.
1. If what you meant was swapping gun when you had no primary gun, I think you can take bot's gun simply by shoving the bot.
2. For throwables, they can be swapped too, by pressing TAB + SHOVE. I often make bots carry throwables this way, especially when there are more bile bombs found.
3. For medicine/ medkit, the reason I added TAB button was to prevent from giving a medkit by mistake. So, TAB button can also work as a safety button.
222329404 8 Mar, 2024 @ 2:42am 
4. The exchange of weapons among the survivors is to better deal with the enemy, which is a friendly act, and everyone should be recognized, not complain, right? \( ̄︶ ̄*\))
5. For the methods used, I considered: if switch to main weapon or melee, use "TAB + SHOVE" to swap weapons, use "SHOVE" to get or swap throwables; If switch to medicines/defibrillator, just use "TAB+SHOVE" to give it.

Of course, this is just a suggestion. And thank you again for what you've already done.
222329404 8 Mar, 2024 @ 2:42am 
With your help, now I can finally use the ".txt" file under the "ems" folder to make the survivors not say "complaints" when I swap weapons with them. Wow ~ ~

In addition, based on my practical feelings, I have a suggestion:
1. In fact, most of the time, I just wanted to swap weapons with the survivors so that I could kill the WITCH easily.so just for that, I'll get my old weapon back when I'm done. If I don't have a main weapon of my own, that's my own problem, all I need to do is look for one on the map.
2. The only other item that needs to be exchanged are throwables,many times in the game having more than one throwable will make the difficult part easier to transform.
3. For the medicines, just give it to the survivor, like pill. When I need help, they will heal me,or use "Drop it ."
kurochama  [author] 7 Mar, 2024 @ 7:01pm 
@222329404 , if the survivor is bot, then yes, as there's also a mechanism to take items that you don't have from bots. But if you want to swap item with survivor players without taking other items, you can set the value of "Weapon Swap By Shoving" to 3 .

As for the request, actually I put complaints as the responses instead on "Insult When Shoved", so the survivor whose item is swapped will insult/ complain via talker. It's not difficult to slightly vary from complaints to positive responses.
222329404 7 Mar, 2024 @ 3:21pm 
Uh, one more problem: right now I only want to exchange my main weapon with the survivor in front of me, I don't have a medical bag on me, and when I perform the maneuver we not only exchange the main weapon but also the medical bag.... Is this how it should be?
222329404 7 Mar, 2024 @ 3:05pm 
very thanks for providing this plugin, this feature is exactly what we need, but there is a small request : Can the survivors speak other words when exchanging items? Just say "yes", for example.
Edgyiel™ 28 Feb, 2024 @ 9:25am 
@kurochama So the config works normally, and I just happen to realize that I tested the bug after the this update, so it's still there.

Tho I must say that is mostly rare for the pistol bug to happen since I don't see my friends dropping anything yet. Just swapping weapons & items or giving items.

But the good thing so far is there's just 1 bug remaining, at the same time, the bugs that is more critical are fixed. And also no crashes report as well
kurochama  [author] 27 Feb, 2024 @ 2:02pm 
@Edgyiel™ , I updated it just before sending the previous reply. I checked the file on the updated version, & the new scripts I added were there. If you want to refresh the cfg file, you can just delete the old cfg file & then reload your gun to create a new one with updated info about value no. 3.

As for the bug test on that pistol, probably I'll need to try several more times, as I didn't trigger the bug, especially on this new update.
Edgyiel™ 27 Feb, 2024 @ 12:36pm 
@kurochama Apparently you need to drop your pistol and pick it up twice and then grab the deagle to make the bug happen. After I finished a part of the campaing, it dropped those 2 pistols and you hold the deagle with normal ammo capacity.

Also did you updated the addon or not yet ? I did started left to test that out, but I didn't see the option 3 on the configuration at the moment. Unsubs and subs or created any campaing to see if it works, and no results.
kurochama  [author] 27 Feb, 2024 @ 9:38am 
@Edgyiel™ , I added value no. 3 on the new update. Value no. 3 makes it so that survivor players can only take (steal) bot's items when they don't have the items, so they can't "steal" from other survivor player.

As for the leftover bug on magnum pistol when dropping magnum, I added some scripts that are triggered when picking magnum, but I'm still not sure if this fixes the bug because this one is rather difficult to re-create the same situations (my test before uploading didn't trigger this bug). You can try it & see if the bug is still there or not.
Edgyiel™ 26 Feb, 2024 @ 6:52pm 
@kurochama Before transition, I went on last man mutation to make it easier to test it out, having only tier 2 weapons and also deagles, at the end of the dark carnival first part is easy cuz there's a deagle right there, I dropped the pistol , grab again and then deagle, it went to double pistol.

I closed the door and loads to the next part, and I hold deagle with 8 bullets on the clip, which is correct. Although I found some weapons on the ground as well. No idea why tho
kurochama  [author] 26 Feb, 2024 @ 10:07am 
@Edgyiel™ , for the dual pistols bug, did it happen after transition to next map, or before transition?

As for the option not to take all items from other survivor player, I think it's possible. I'll make a new value on "Weapon Swap By Shoving" later, like, when setting the value to 3, you'll be able to swap items with other players without taking their items that you don't have.
Edgyiel™ 25 Feb, 2024 @ 9:32pm 
@kurochama So I tested here, and it works just as intended, no bugged deagle with 16 ammo on the clip when loading the next part of the campaing.

However the double pistol still happens, it appears that one of the pistols is bugged, making the deagle to become one of the pistols when picking it up from the map, not on the ground.

Fixing this will definitely become great feature to many players to use.

By the way, I have an request too
Can you make an option where you take everything you don't have from only bots and not players ?

I told my friend to install your addon, and while was trying to swap throwables , I ended up taking something else from them to me as well. An example, I was trying to give my friend an med kit, but then I took his throwable as well.
kurochama  [author] 25 Feb, 2024 @ 12:04pm 
@Edgyiel™ , I finished fixing the magnum ammo clip bug. I tested by spawning a magnum & then using "Double Ammo Clip" on merciless bots mod to create similar situation of magnum with 16 ammo clip, & when I finished a map & went to the next one, the ammo returned to 8 on each reload. You can try the new update.
Edgyiel™ 25 Feb, 2024 @ 4:28am 
@kurochama So far yes, I don't know if someone found some more bugs than what I have found.
kurochama  [author] 24 Feb, 2024 @ 8:27pm 
@Edgyiel™ , so, the only bug left is only the deagle then? I think I got a clue of how to fix it via event function. Probably I'll fix it on the next update.
Edgyiel™ 24 Feb, 2024 @ 8:18pm 
@kurochama In order to bug the deagle and turn into a pistol, you need to drop your pistol, pick it up again and then grab the deagle on the map, doing this results that you're holding 2 pistols, but completing a part of the campaing loads a deagle with 30 on the clip, you're able to reload the deagle, but not at 30 it goes to 16.

You can't do this with a deagle dropped on the ground, it won't work. It needs to be a weapon from the map. This bug last until you swap that pistol with someone else and swap again.
kurochama  [author] 24 Feb, 2024 @ 12:19am 
@Edgyiel™ , I just finished testing by re-creating the same situations by swapping pistols with bot & dropping pistol before finishing a map, but the bug didn't happen to me. Could you explain more about what situations you had during swapping/ dropping that triggered the ammo clip bug?
kurochama  [author] 23 Feb, 2024 @ 11:44pm 
@Edgyiel™ , so the bug happened when dropping pistol & picking it again? On last update, I only focused on fixing the swap mechanisms, but I haven't touched the item drop mechanisms yet. I'll check the drop mechanisms soon.
Edgyiel™ 23 Feb, 2024 @ 9:40pm 
@kurochama I tested your updated mod and I have good news, clip and reserve ammo is now finally in the correct way.

But also the pistol drop to pick up deagle still happens, and completing a part of the campaing after doing this will make your deagle to have 30~16 depending on the 2 pistol clip before completing,and goes to 16 after wasting it all, I can't remember if you said that this can't be fixed or not, but that's the only bug remaining now. [If it's possible]
Edgyiel™ 22 Feb, 2024 @ 9:56am 
@kurochama I'll have a go and test your mod and see if it works normally
kurochama  [author] 22 Feb, 2024 @ 7:42am 
@Edgyiel™ , I updated this mod instead, after several tests.
Edgyiel™ 22 Feb, 2024 @ 4:04am 
@kurochama Your plugin got updated or you made a newer version on the discord that fix them up ?
kurochama  [author] 21 Feb, 2024 @ 4:44pm 
@Edgyiel™ , if it's the ammo refill bug, it should be fixed now. & all item swaps except melee & throwable are instant, so bugs on dual pistols & magnum should also be fixed.
Edgyiel™ 21 Feb, 2024 @ 3:25pm 
By the way did you manage to fix some bugs on the discord I mentioned ?