Left 4 Dead 2

Left 4 Dead 2

506 个评价
Bot AI Improvements
2
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
文件大小
发表于
更新日期
114.563 KB
2022 年 9 月 6 日 下午 5:48
2024 年 8 月 14 日 下午 12:08
31 项改动说明 ( 查看 )

订阅以下载
Bot AI Improvements

描述
I noticed that bots are lacking in many features, this mod is made to be compatible with the mod Left 4 Bots and to add onto it. Like an DLC/ADDON

Important:
When this addon receives an update the setting.txt and const.nut will NOT automaticaly add the new cvars to said files, you have two choices either delete the setting.txt and const.nut and let this addon recreate them with the new cvars or use this list of Addon Settings and manually add the new cvars, if this addon does not detect one of the cvars in the setting.txt it will use this addons default settings as a failsafe.
Also, if you notice certain features are not working, “bots not pulling on their melee weapons when a common infected gets too close,” your setting.txt and/or const.nut may be corrupted or has a typo, you should delete the file and let this addon recreate it. I am working on having this addon automatically fixing said issue.

Current Features:
- Bots will pull out their melee weapons when a common infected get to close to them,
- Improved bot chainsaw behavior, "Bots will shove for two seconds after pulling out their chainsaw and will hold down their attack button when multiple commons are close to them."
- Bots will crouch when fighting far away common infected, there is a limit to how far away the common infected can be when deciding to crouch
- Bots with sniper rifles will scope in when crouching to improve their accuracy
- Attempted to fix bots when incapacitated and sb_allow_shoot_through_survivors is set to 0 not shooting through teammates
- Attemped to fix bots walking though fire, “This bug happens all the time, bots for some reason love trying to reach you by walking straight through Molotovs and/or Gascans, “this is a major problem in expert mode where fire can easily kill you,” what I did to fix this is add a check for active fires and marked the area as blocked for the survivor bots, “infected will still walk into the fire,” making the bots take alternate routes to get to the player.”
- Bots can now attempt to dead stop hunters and jockeys
- Bots will stop reviving teammates if they are being attacked by a common infected and/or if a tank is nearby, “bots being bots will still attempt to revive teammates, but they will immediately stop the revive if the tank or common infected is too close.”
- Bots will prioritize killing smokers that are trying to grab them
- Bots will not drop melee weapons if they are controlling an idle player
- sb_melee_approach_victim is set based on the distance from the closest player
- Improved bots ability to deal with nearby common infected
- Bots with T1 shotguns and css snipers have a chance to shove after shooting to allow them to shoot faster
- Bots with shotguns will reload for 2 seconds after emptying their weapon clip before firing again
- Bots will reload their secondary weapons if they are not in combat
- Bots will use their secondary weapons if they are attacking far common infected to save ammo

This addon is NOT compatiable with Bot Primary Weapon Enforcer, because of this I have replicated the features of that addon into this one.

If you want more information on the features of this addon here is a link that explains them in a bit more detail Addon Features Explained

You can customize this addon's cvars, here is a guide on what each cvars does: Changing Addon Settings

Todo:
- Improve bots ability to deal with nearby common infected

Important Discussions:
Suggestions
Bugs
Known Bugs

Here is this addon’s source code
GitHub Repository[github.com]

Check out my other addons:
Left 4 Bots Chainsaw Pickup Fix: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2809813258
Bot Chatter: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2857764764
热门讨论 查看全部(6)
136
5 月 3 日 下午 1:21
置顶: Bugs
T-Rizzle
79
5 月 23 日 下午 5:14
置顶: Suggestions
T-Rizzle
11
2024 年 10 月 27 日 上午 9:21
置顶: Addons Cvars
T-Rizzle
375 条留言
Johan 10 月 4 日 下午 11:19 
dissapointing ;(
bingus dingus 8 月 27 日 下午 12:40 
ngl the sniper/shotgun shove feature should be a standalone mod
T-Rizzle  [作者] 7 月 4 日 下午 9:25 
@CaptPatrick01
Sigh, this was one of my few first ever mods I made and as a result, it runs on some “pretty” bad coding mistakes in my time. I wonder if it has something to do with the dynamic tables as an optimization, having some kind of race condition. I did my best to look into the error and found this, 0x52200C54 may indicate a problem with your game files. Try verifying the integrity of the game files through Steam. I have never had the mod crash like this, but it’s still probably something I should look into eventually.
CaptPatrick01 7 月 4 日 下午 1:54 
It appears this mod is causing an exception to be thrown at the server.dll (0x52200C54) when it tries to remove a dead SI on Ryzen 5000 CPUs.
T-Rizzle  [作者] 6 月 23 日 上午 11:44 
@SP-Calamitas
Yeah, thats an issue with how the base AI is coded! I try to force the bots to use the chainsaw, but the base AI has final authority that I have very little control over.

Yeah, the bots still walk into fire as there is only so much I can do about fixing it since the issue in in the base AI and I can only suggest to the bots not to path there in the first place!
佐伊的老公 6 月 23 日 上午 5:30 
The bot will still walk into the fire
SP-Calamitas 6 月 14 日 上午 6:33 
bots still suck when using chainsaw, even after bumping up the value of melee_attack_distance and abandon distance they'll still pull swap to their primary even when surrounded by infected
bingus dingus 6 月 7 日 下午 10:18 
oh nice, ill try and see how well it works
T-Rizzle  [作者] 6 月 7 日 下午 5:27 
@angry bird
There is no need for a second version. This should be compatible with both versions of left 4 bots! Although I may need to update the "requirements" section!
bingus dingus 6 月 7 日 上午 8:34 
are u gonna make a separate version for left 4 bots 2?