Left 4 Dead 2

Left 4 Dead 2

272 ratings
Less AI Optimization [Script]
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Scripts
File Size
Posted
Updated
554.000 B
Nov 24, 2023 @ 12:25pm
Nov 28, 2023 @ 6:23am
5 Change Notes ( view )

Subscribe to download
Less AI Optimization [Script]

Description
Have you ever noticed how the survivor bots sometimes become clueless and stop entirely like if they were having some flashbacks; well this is because the game has a build-in optimization system that penalizes their behavior when the game detects higher stress on the server , so this is where the scripts comes.
[Trading performance to make the AI more responsive]
•nb_update_frequency "0.08" // default "0.1"
(run bot AI stuff and NPCs more consistently on the server at the cost of higher cpu usage)
•nb_update_maxslide "0" // default "2"
(no longer skips bot AI updates to optimize performance ; less delays on AI / NPC tasks)
•nb_update_framelimit "30" // default "15"
(the game now updates AI & npc tasks at 30 fps - less interpolation , more updates)

[DISCLAIMER] This mod does not touch anything else besides this 3 cvars because i just wanted the overall actions of survivor / infected bots to be more responsive on my server.
(WORKS ONLY ON SINGLEPLAYER AND HOSTED LOCAL SERVERS)
=========================================================================

28 Comments
Nagant Nov 3, 2024 @ 1:01pm 
+88_________________+880
_+880_______________++80
_++88______________+880
_++88_____________++88
__+880___________++88
__+888_________++880
__++880_______++880
__++888_____+++880
__++8888__+++8880++88
__+++8888+++8880++8888
___++888++8888+++8888+80
___++88++8888++888888++88
___++++++888888fx888888888
____++++++8888888888888888
____++++++++00088888888888
_____+++++++00008f8888888
______+++++++00088888888
_______+++++++0888f8888
Doomgamer9000 Oct 20, 2024 @ 4:54pm 
Does this help game have more fps?
B1acK Wo1F Oct 15, 2024 @ 8:26am 
what is your computer spec im wonder?
DimTheEnderman May 7, 2024 @ 8:35pm 
I now have a reason to direct-die cool my cpu
NB  [author] May 3, 2024 @ 7:22am 
@Doomgamer9000 probably , like the tittle says - it will heavily impact performance BUT if you have a strong PC you can give it a try.
Doomgamer9000 May 3, 2024 @ 3:31am 
Can this be used with
left 4 bots 2?
Pyri Nov 30, 2023 @ 8:16pm 
@Amainy
Not just common infected. It affects Commons, Specials, Survivorbots
Amainy Nov 28, 2023 @ 6:48pm 
isn't everything starting with nb_ dedicated to commons' behaviours?
NB  [author] Nov 28, 2023 @ 6:33am 
@TootsyBowl the frequency value is now 0.08 to support better other script functions ; however keep in mind that left4bots has MANY functions in it and all of those are running in the background consuming resources so if your PC isnt strong enough i cant do nothing there ; but thanks for the feedback.
TootsyBowl Nov 28, 2023 @ 4:08am 
Probably shouldn't use this with Left 4 Bots, in some situations such as the bots trying to path to a box of laser sights or a jockeyed player, it apparently causes so much CPU load that the game starts not playing sounds.