Left 4 Dead 2

Left 4 Dead 2

NB's Simple AI Improvements (Script)
42 Comments
NB  [author] 18 May @ 6:22am 
@Eizen-Ark no
Eizen-Ark 18 May @ 5:17am 
Does this disable achievements?
MrDanny 25 Jan @ 9:34pm 
bots wander off and cant climb ladders... :(
little_froy 18 Dec, 2024 @ 5:28pm 
good work, bots get far attack range and fast routing. but there is a problem, bots keep fighting even the finale vehicle ready and don't want to get in the vehicle, how can I avoid this?
Pretty Riki 26 Nov, 2024 @ 1:48am 
Thank you!
NB  [author] 25 Nov, 2024 @ 12:55pm 
@Ivan Mctraher if thats the case... them just unpack the file and delete the next lines from the scriptedmode notepad them just make it vpk again and place it into your addons folder.

============================================

botAvoidItems =
{
// Bot Preferences tweak
weapon_hunting_rifle = true
weapon_shotgun_chrome = true
weapon_pumpshotgun = true
weapon_sniper_awp = true
weapon_sniper_scout = true
weapon_sniper_military = true
}

function ShouldAvoidItem( classname )
{
if ( classname in botAvoidItems )
{
return true;
}
return false;
}
Pretty Riki 25 Nov, 2024 @ 12:30pm 
It's just that I use single grab weapons addon and so..
NB  [author] 24 Nov, 2024 @ 11:43am 
@Ivan Mctraher why would u want that?

bots often perform worse with those type of guns , specially on realism.
Pretty Riki 24 Nov, 2024 @ 6:54am 
Dear author,is there any way to allow them to use snipers and non automatic shotgun?What to do?Overall that is a great addon to have.
Sultan Abu Al Pepsi 25 Aug, 2024 @ 12:58am 
yes it should work
Doomgamer9000 12 Jun, 2024 @ 10:21am 
A my dreaming? Does this works with l4bots 1 and 2? If I'm not dreaming pinch me!!!
僵尸清理小队队员Jint 1 Jun, 2024 @ 8:58pm 
This is the best AI enhancement I have ever used, gentle and not too aggressive, nor does it make people feel foolish. It would be great if the function of the computer closing the door could be removed, because I have encountered several times when the computer repeatedly opens and closes the door outside the door, but does not come in.

这是我用过最好的AI增强,温和不会太激进,也不会让人感觉蠢蠢的。如果能去掉电脑会关门的功能就好了,因为我遇到几次,电脑在门外重复开关门的动作,但是不进来。
Kod Adı - Karma 24 Jan, 2024 @ 2:51am 
@NB Tonfa is not useless brother, it's the fastest melee in the game and can kill up to 4 common in near you with 1 shot
Killa Klappa 14 Jan, 2024 @ 3:45pm 
*Entire team getting pummeled by tank* Ellis standing still with crowbar:
NB  [author] 22 Sep, 2023 @ 3:49pm 
@LightningBlaze03 yep.
LightningBlaze03 22 Sep, 2023 @ 1:17pm 
Does this still work with The Last Stand Update?
好机会小渡 12 Sep, 2023 @ 9:39pm 
can you keep bots from shooting the player?
好机会小渡 12 Sep, 2023 @ 5:51pm 
best and the most simple bot mod I've been used:dslike::health::dslike:
好机会小渡 12 Sep, 2023 @ 9:36am 
nice:health:
NB  [author] 19 Aug, 2023 @ 2:13pm 
@WellDare thats a bug with their behavior on survival maps (best example c5m4) for whatever reason they refuse to pick up items/weapons if those are slightly far away from them unlike other survival maps ; there is no cvar that can help to solve that as far as i know , you can try to play survival without this mod and yet they will do the same on specific maps even on official servers
▼ WellDare ▼ ♫♫♫ 19 Aug, 2023 @ 10:51am 
Bots do not want to take ammo in survival mode and run around with melee weapons, if they die, then they resurrect with a gun, but I like these bots
ivan braginsky gaming 25 Jun, 2023 @ 6:46pm 
They did happen to have a melee weapon, good to know.
NB  [author] 27 May, 2023 @ 7:35pm 
First person animations was and still is pretty buggy if not.broken already ...try loading that mod first before using mine. them it shouldnt be any problem.
Thats the best suggestion i can give you
XENON 25 May, 2023 @ 9:36pm 
Recently, I have been using a lightweight survival BOT AI with minimal overhead, but I noticed that its size has doubled after the update on May 25th. I'm not sure what has changed, but occasionally, when being attacked by special infected, an overwhelming number of WARNING messages are being displayed per second, causing lag.

SCRIPT PERF WARNING --- "main" ran long at 3.522410ms
NB  [author] 24 May, 2023 @ 3:54pm 
@Odorokasuho not really , however I do have plans to tweak what type of melee bots will pick up rather than picking everything like the useless tonfa and the slower ones.
Lee Winston 19 May, 2023 @ 12:36am 
Can you lead the way?
Akatori 18 May, 2023 @ 2:53pm 
Can you release a separate version that doesn't allow bot to use melee ?
ⲥⲏⲓⲱⲉⲱⲉⲛⲥⲏ 9 May, 2023 @ 4:19am 
pregunto a que poner en addoncofig? 0 o con suscribirte cambia algo alguien me explica xfa
:steamsad:
NB  [author] 6 May, 2023 @ 10:20am 
Like the tittle says is not about making something complex with the mod just an alternative simple AI script for people that dont want to mess with the "gamemodes.txt" file but they wanted waay less terrible bots, the script is pretty much finished , i might look into some convars to fix some things up in the future.. but yeah I have no plans to add binds / ems options , etc.
(^^^) Xeno 5 May, 2023 @ 12:00pm 
Maybe it's possible to put the lead command on the radial menu, "lead on," and the "be careful" line will turn off the lead. That's my alternative solution if a player wants to enable the lead feature.
Skeleton can walk 4 May, 2023 @ 2:50am 
like said some survive name (example nick lead)
Skeleton can walk 4 May, 2023 @ 2:49am 
i want bot lead by command chat
Roiditron77 3 May, 2023 @ 4:33am 
i'm curious since every other bot improving mod crashes with this other mod, is it compatible with the rng beta charger script by cuba?
(^^^) Xeno 2 May, 2023 @ 11:31pm 
Do you plan to add some sourcemods for these bots? I can recommend some like bots can defib etc...
NB  [author] 30 Apr, 2023 @ 10:52am 
@レオニの神職の方々 still working like usual on my end.
The End 30 Apr, 2023 @ 1:05am 
After one day of use, but the next day the plugin not work anymore...
The End 30 Apr, 2023 @ 1:03am 
This AI function is very similar to the Lewd4Dead server's AI.
I really love it.
(^^^) Xeno 28 Apr, 2023 @ 10:09pm 
Leading is also buggy for custom maps bots can sometimes teleport through walls.
NB  [author] 28 Apr, 2023 @ 7:58pm 
Xeno :] Yeah i noticed that , thats why i decided to let only 1 bot to be able to hold melee + the bot will follow now their target instead of waiting for the target to aproach thanks to another extra cvar.
(^^^) Xeno 28 Apr, 2023 @ 7:24pm 
Also, there's a bug with the melee: if you let the bot pick melee when fighting the tank, they just sometimes stand and don't want to fight. It's better if you let them pick pistols since they never run out of bullets.
NB  [author] 28 Apr, 2023 @ 4:39pm 
long story short , removed lead mechanic because of waay to many bugs.
(^^^) Xeno 27 Apr, 2023 @ 8:00pm 
Maybe disabling the bots can continue the game feature, because that is buggy for custom maps if the player wishes to play in different campaigns. And some custom maps don't have a smooth nav mesh, so the behaviour of the bots might get stuck somewhere.