Left 4 Dead 2

Left 4 Dead 2

11,622 ratings
Advanced Bot AI
47
20
68
8
49
20
18
14
7
25
12
14
12
10
2
2
6
6
5
4
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
1.084 MB
14 Jan, 2020 @ 1:38am
21 Jun @ 7:24am
179 Change Notes ( view )

Subscribe to download
Advanced Bot AI

Description
[Only works when the server is a local server]
Development Paused Due to Real-Life Commitments - Feel Free to Modify and Redistribute the Source Code
Previous version [github.com]

Various Unique Features
  • Optimized Bot combat awareness and improved teamwork capabilities. (See Bot Combat Skill Settings for details.)
  • Bots can pick up throwable items and actively throw Molotovs when encountering a Tank.
  • If a player has no pills or medkits, Bots will voluntarily offer their resources, whether it's pills, medkits, or throwables.
  • Right-clicking a Bot while holding a throwable allows swapping throwables with the Bot.
  • Bots can use defibrillators.
  • Bots can use ammo upgrades.
  • Prevents situations where Bots step on Spitter acid while reviving.
  • On certain maps, Bots will help players find gas cans and bring them to the fuel machine.
  • If a player is grabbed by a Smoker and the Bot cannot see the Smoker, the Bot will prioritize freeing the player by breaking the tongue.

Bot Combat Skill Settings
The current version has readjusted Bot combat behavior. They now better prioritize targets, protect themselves, and rescue players, with significantly improved teamwork.
There are five skill levels, with increasing improvements to vision range, aiming ability, reaction speed, success rate of shoving Special Infected, etc. The skill level does not affect Bot decision-making but only impacts their combat effectiveness against hordes, Special Infected, and focus-firing Tanks.

Level
Description
1
Closest to vanilla combat ability but with better teamwork. Suitable for players who don't want increased difficulty but desire improved Bot decision-making. Ideal for Advanced mode players.
2
Stronger than vanilla, with improved vision range (can detect zombies at their sides) and faster reaction speed. Overall better performance, bordering on Expert mode.
3
Further improved vision range (can detect zombies behind them). Enhanced individual combat ability, with better self-preservation and damage output. Can handle Expert mode smoothly.
4
Begins to introduce cheaty/fun elements. Anti-Special Infected and damage output far exceed vanilla. Recommended for high-difficulty custom maps.
5
Single Bot's damage output is roughly equal to three average players combined. Can handle modes with increased Special Infected spawns.

Mod Configuration Menu
Some features of this mod can be toggled via an hud menu. Open the chat (press Y) and type !botmenu to access it.
Alternatively, bind a key to +grenade1 (e.g., enter bind "j" "+grenade1" in the console) or bind a key to open the menu directly (e.g., bind "j" "say !botmenu").

Note: The menu may not respond on dedicated servers—use commands instead.

Toggleable menu options (Incomplete):
  • Bot skill level.
  • Bot teleportation range when too far away.
  • Toggle Bot gas can fetching in fuel missions.
  • Toggle Bot throwable usage.
  • Toggle Bot melee combat.
  • Toggle Bot immunity to friendly fire.
  • Toggle Bot auto-pathfinding.
  • Toggle Bot teleport when stuck.
  • Toggle Bot carrying resources (gas cans, propane tanks, etc.).
  • Toggle Bot continuing to progress after player death.
  • Toggle Bot defibrillator usage.
  • Toggle Bot picking up and using Molotovs and pipe bombs.

In a dedicated server only administrators can use menus and commands

Commands
For clients unable to use the menu, the mod provides commands. Enter these in the chat window.

Function
Command
Parameters
Example
Adjust Bot skill level
!botskill
Number [1–5]
!botskill 5
Adjust Bot follow distance
!botfollow
Number [100, 999999]
!botfollow 200
Adjust Bot teleport distance when too far
!botteleport
Number [100, 999999]
!botteleport 1000
Toggle Bot instant death immunity
!botprotect
None
!botprotect
Toggle Bot gas can fetching
!botfindgas
None
!botfindgas
Toggle Bot throw molotov
!botthrowmolotov
None
!botthrowmolotov
Toggle Bot throw pipe bomb
!botthrowpipe
None
!botthrowpipe
Toggle Bot melee
!botmelee
None
!botmelee
Toggle Bot friendly fire immunity
!botimmunity
None
!botimmunity
Toggle Bot pathfinding
!botpathfinding
None
!botpathfinding
Toggle Bot unstuck teleport
!botunstick
None
!botunstick
Toggle Bot upgrade usage
!botupgrades
None
!botupgrades
Toggle Bot progress after player death
!botkeepalive
None
!botkeepalive
Toggle Bot carrying resources
!botbackpack
None
!botbackpack
Toggle Bot defibrillator usage
!botdefib
None
!botdefib
Force end the round when only Bots remain
!botstop
None
!botstop
Adjust Bot damage multiplier vs Witches
!botwitchdamage
Number [-16, 16]
!botwitchdamage 1.0
Adjust Bot damage vs Special Infected (excluding Tank)
!botspecialdamage
Number [-16, 16]
!botspecialdamage 1.0
Adjust Bot damage multiplier vs Tanks
!bottankdamage
Number [-16, 16]
!bottankdamage 1.0
Adjust Bot damage multiplier vs common infected
!botcommondamage
Number [-16, 16]
!botcommondamage 1.0
Adjust Bot rescue teleport timeout
!botsaveteleport
Number [0, 999]
!botsaveteleport 9

Ping System
This mod includes a ping feature to command Bots.
Bind a key to +alt2 (e.g., enter bind "i" "+alt2" in the console).

Click ping while aiming at a Bot to select it (works through walls). Then:

Click an item to make the Bot use it.
Click the ground to make the Bot move there.
Click an Infected to make the Bot attack it.


Admin Configuration for Servers
https://steamproxy.net/workshop/filedetails/discussion/1968764163/3126038700442540342/

Notes:
This is a script mod, so expect frequent SCRIPT PERF WARNING logs—these can be ignored.
GitHub [github.com]

If you think this addon is suitable for you, enjoy it.
Popular Discussions View All (27)
12
3 Nov @ 11:22am
模组的AI传送导致过不了战役“牺牲”最后一关(需要一人开发电机,至少一个留桥上)
入云龙
13
9 May @ 1:19am
模组不工作
Communist_Silas
22
3
20 Feb, 2024 @ 1:31am
模组都能实现什么样的AI提升
巧克力薄荷冰淇淋
3,351 Comments
咎憷 4 Nov @ 5:11am 
很好的mod,有这mod可以单人玩自制地图了:steamthumbsup:
sommersby90 3 Nov @ 11:26am 
牺牲关和生化危机2B4,要想ai不跟着玩家导致牺牲失败,必须开启 到达安全室时传送便可以了。但是,生化危机2a4反而要关闭这个,不然便无法通关。
sommersby90 3 Nov @ 11:25am 
如果能改良到,ai遇上尸潮时懂得丢土制炸弹,胆汁䍎。遇上女巫时懂得使用汽油弹轰炸她,然后ai懂得使用电锯和m60机枪就好了(榴弹枪就免了,因为不合逻辑)。最好ai懂得关闭警报器之类的。
天青蓝21 3 Nov @ 7:10am 
傻比bot现在不知道上救援,在飞机或者装甲车旁边等,要么梯子上爬上爬下,想传送到救援载具就出现“使用 攻击”那个没卵用菜单,一多半地图都有这个问题:steamfacepalm:
Anonymousaholic 2 Nov @ 6:49am 
平时卡上了都传出来,但是人机卡到地下去了,不会传送出来呀,如果加一个玩家死后控制人机的功能,还有时常人机给我的手雷不是我需要的,再加一个能从人机身上掏道具的功能就完美了:steamhappy:
我史珍香啊 2 Nov @ 5:57am 
AI队友一直拿着药包对着我,但是不给我加血
双面人的小号 2 Nov @ 4:11am 
请问有无让人机使用固定重机枪(M2、加特林)的功能?
Anonymousaholic 1 Nov @ 3:33am 
这么好啊,我常常因为人机太蠢而被气到,平时我只有打打高级,现在我要锤专家!:steamhappy:
ThreeWithout 30 Oct @ 4:08am 
这是不是自带角色会挑武器?ai一个个都跟傻逼一样m60改的加特林全都扔掉只拿单一的东西,最好有个能开关ai自动捡武器与挑喜好武器的开关,让拿什么就拿什么不随便换,还有纯近战模式下ai完全不去打tank只会乱跑
天青蓝21 25 Oct @ 6:28am 
bot几个人远远的看玩家和坦克单挑,还有“攻击、使用”那个鬼鸟菜单没一点乱用建议删除,唯一有用的恐怕就是“传送”功能