Left 4 Dead 2

Left 4 Dead 2

65 ratings
Bot's Acid Evasion and Item Auto Pickup
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts, Miscellaneous
Game Modes: Single Player, Co-op
File Size
Posted
43.547 KB
4 Feb, 2024 @ 8:22pm
1 Change Note ( view )

Subscribe to download
Bot's Acid Evasion and Item Auto Pickup

In 1 collection by kurochama
Useful "Side-Dish" Mods (Especially for Bots)
45 items
Description
As the title said, this mod gives bots 2 features that the original L4D2 doesn't have. "Acid Evasion" is bot's ability to immediately run from acid when it falls on the ground. Normally bots love to stay until they get hit by acid before they start to move. Even some bot mods also still have this bot's behaviors though they could make bots avoid acid more frequently. But on this mod, they will have like 90% chance to avoid acid! The rest 10% is when they're unlucky to get cornered or run in wrong way, but this rarely happens.

As for "Item Auto Pickup", this makes bots pick items automatically when the items is in the radius of auto pickup. This can solve problems with bots refusing to pick items due to bot navigation error on some custom campaigns.

Here are the features in "bot acid evasion.txt" cfg:
  1. Acid Evasion: The main feature to enable bot's acid evasion
  2. Acid Escape Timer: The sub feature of "Acid Evasion" that controls how long the bots will run away from acid.
  3. Acid Standby Timer: The sub feature of "Acid Evasion" that controls how long the bots will remain standby on one place to wait until the acid disappears.
  4. Item Auto Pickup: The main feature to enable bot's auto item pickup.
  5. Item Auto Pick Range: The sub feature of "Item Auto Pickup" that controls the range of item auto pickup. The value is the range of the auto pickup.
  6. Item Auto Give: Bots will automatically give items to players simply when players in in close range (melee range). The value affects which items to gve (first aid kit only, or with throwable, pills & primary guns).

As the settings of "Acid Evasion" have to be set correctly,
here's the simple tutorial of how to configure it
:
  • "Acid Escape Timer" makes bots run in the duration of the value of this feature & at the same time triggers standby state, this should be set lower than the value of "Acid Standby Timer" to prevent unwanted bugs.
  • "Acid Standby Timer" makes bots move again by the end of the duration, so it must be set higher than "Acid Escape Timer" to prevent unwanted bugs.
  • Set the value of both sub features with the difference of 1 or 2 seconds. For example: "AcidEscapeTimer 3", "AcidStandbyTimer 5"

With this mod, you'll have better bots at avoiding acid & at the same time very kind bots that will voluntarily give you their items when you don't have them :D .

Notes:
  • A video preview will be added later.
  • Some known bugs on "Item Auto Pickup" feature:
    - Bots can duplicate items sometimes (imagine 3 bots pressing E on the same item at the same time).
    - Bots can always pick throwables when they're close to the throwable spawn spot, so basically bots become grenadiers or grenade suppliers with unlimited supplies if they camp near throwable spawn spot.
    - "Item Auto Pickup" also makes bots prefer T2 guns over T1 guns, theywill switch to T2 immediately when they're close to it even if the T2 gun is low of ammo or empty. This will be fixed later. & you can also set "Item Auto Pickup" to 2 to make bots pick item automatically when players hold TAB button.
Popular Discussions View All (1)
4
21 Feb @ 6:38pm
PINNED: Bug Report Section
kurochama
30 Comments
kurochama  [author] 12 Jul @ 1:25am 
@Brian , I don't remember exactly, but "auto pickup" will make bots pick better/ preferres guns & items (examples: If they have T1 guns & there are some T2 guns, they'll pick T2 guns. If Coach has rifle & then there's autoshotgun, he'll pick autoshotgun. If Ellis has autoshotgun & there's a sniper nearby, he'll pick sniper). I don't remember about magnum, but I think it also works that way, like magnum is the top priority among other secondary weapons. So if you use a mod to make bots use melee, it's better to disable the "auto pickup" to prevent bot's confusion in picking items like that.
Brian 11 Jul @ 10:05pm 
@kurochama, Does this mod cause every bot player to pickup a magnum instead of pistols? I use a modified version of the Improved Bots mod. That version lets two bot players use melee weapons. I noticed that Coach picked up the magnum. I had never seen Coach pick up a magnum. He replaced the magnum with a melee weapon. Then, he picked up the magnum again. He couldn't decide which weapon to keep. That's what happened when I had the Auto Pickup feature enabled.
kurochama  [author] 11 Jul @ 9:30pm 
@Brian , yeah, item auto pickup & auto give are based on the default item slots. So, if you use a mod to change some item slots, it's better to disable item auto pickup & auto give.
Brian 11 Jul @ 8:30pm 
This mod does improve a bot player's ability to avoid Spitter Acid. Spitter Acid is actually worse than friendly fire for bots. The regular bots can't seem to avoid it that well. This mod is not compatible with certain mods. I don't think it's compatible with Ten Inventory Slots. The bots would pick up grenades, but they would not give them to me even if I didn't have a grenade. Ten Inventory Slots must be putting grenades into slots the bots can't recognize. I had to disable the Auto Pickup and Auto Give features. That's not a problem for me. I don't really need more grenades from the bot players while they are trying to kill zombies.
HazyAPI 14 Jun @ 11:12am 
appreciated
kurochama  [author] 14 Jun @ 10:11am 
@HazyAPI , start Singleplayer or start a map by hosting a local server. Then check in "Left 4 Dead/left4dead2/ems". A folder with similar name of this mod will show up there.
HazyAPI 14 Jun @ 10:01am 
its a vpk.file .;where is the cfg file?
mikecj9 22 Mar @ 10:38pm 
thanks
kurochama  [author] 22 Mar @ 10:37pm 
@mikecj9 , you can disable it from the cfg file though. Look for "Item Auto Pickup", & set it to 0.
mikecj9 22 Mar @ 10:08pm 
@kurochama can we have this but without the item auto pick up please ?