Prevent AI Charge [Server Mod]

If you liked this item, please rate it up on Steam Workshop page.

Author: devlos

Last revision: 23 Oct, 2023 at 09:57 UTC

File size: 15.01 KB

On Steam Workshop

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/