Left 4 Dead 2

Left 4 Dead 2

291 ratings
Prevent AI Charge [Server Mod]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
15.014 KB
Jun 11, 2023 @ 5:40am
Oct 23, 2023 @ 2:57am
8 Change Notes ( view )

Subscribe to download
Prevent AI Charge [Server Mod]

Description
Prevent AI Charge By Solved/Devlos! Aka "Timonenluca"

Prevents the AI Charger from using he's ability by checking he's current angles towards he's target and the target's angles , we then use a compass on the .y Qangle off the charger and the target and check the nav sides for any next nav connecting in that direction including your current being either a edge or higher then 180.0 hammer units if this is the case we block the charger AI's input preventing him from doing something very stupid , that is charging into oblivion.

A Local/Dedicated Server Mod

Mod info

Mod info
Prevents The AI Charger , Charging himself into oblivion.
Prevents The AI Charger going into retreat mode on a jump.
Ai Charger now charges on a deadly edge instead if given the opportunity
Charger will simply snap he's Eye Angles continously on he's target to prevent a bad charge or hit
Charger will insta charge within melee distance
Predicted charge , Charger will follow he's target untill X distance on a very long charge.

Not Included
Priority targetting , senseflags or setting a variable to keep the AI from taking over or not turning him into a braindeath bot seems to be unavoidable so i ditched this and rather kept the vanilla one.

Credit to army_guy3 for being able to use he's VectorToQAngle code.
Check out he's cool mods: https://steamcommunity.com/id/4AG3154Be/myworkshopfiles/

50 Comments
maiaterix Feb 6 @ 5:13pm 
Esta super Brother :steamthumbsup:
Jericho May 31, 2024 @ 8:20pm 
I kinda like the derpy charger tbh.
Joellis Jan 3, 2024 @ 8:48pm 
why is the charger so slow?
TheNamelessKing Nov 12, 2023 @ 9:27am 
Cool but charger now hits walls very often, which gives away is location
Xenorvya Oct 26, 2023 @ 11:56am 
Interesting mod, makes the Charger much more annoying and tougher to fight, which I like. However, playing "Fairfield Terror", I did notice the Charger sometimes charged into walls despite not being into direct line of sight with survivors.
tom Oct 23, 2023 @ 3:36am 
nice
devlos  [author] Oct 23, 2023 @ 3:00am 
- Potentially fixed "U" turning charger.
- Optimized Code
- Reduced Predicted charge kicking by 15% from 75% to 60%.
tom Oct 18, 2023 @ 8:29am 
@devlos r u gonna fix it?
devlos  [author] Oct 15, 2023 @ 1:56am 
Uuuuh , ill take a look at it today and see if i can fix it. Im a very lazy person.