Half-Life 2

Half-Life 2

499 ratings
Better Combat AI
3
   
Award
Favorite
Favorited
Unfavorite
type: assets
File Size
Posted
Updated
1.027 KB
29 Apr @ 3:20pm
18 May @ 10:54am
3 Change Notes ( view )

Subscribe to download
Better Combat AI

Description
This mod allows combine soldiers, metropolice and citizens/rebels to use standoff system which will greatly improve combat in streetwars chapters of Half-Life 2.

Enemies like metropolice and combine soldiers will now less likely to advance against player or other targets unless scripted by map. They are more likely to take cover or retreat from enemy depending from location, taking damage, enemy pressence, losses etc. This is mostly noirced during big shootouts between large group of combine soldiers/metropolice against rebels or other enemies.

Standoffs between large groups will progress slowly as most of the participants are very reluctant to advance unless one of the side takes heavy losses or is assaulted by player. Player can forcefully advance battle line for his allies. Combatants will react to enemy disposition, taking losses, getting damaged or player actions. Once one side takes heavy losses they will start hiding which will trigger other side to slowly advance.

Of course this system wouldn't fit any level and is more limited than original sttandoffs because of HL2's limited cfg scripting so expect bugs and ai acting stupid on some occasions.

Hooray for the first NPC AI mod in HL2 Workshop.
66 Comments
Monki 9 Jul @ 7:36am 
@Tyler Alyx doesn't follow you because you have the dynamic fire mod

This mod makes all NPCs that accompany you not follow you unless you have the flashlight on
Tyler 5 Jul @ 9:38pm 
This mod completely breaks Alyx, She's calling for help wanting me to turn on my flashlight so she can follow me.
Hds46  [author] 1 Jul @ 12:02pm 
@PAPAZULU_
Code is inside .cfg file which is inside "cfg" folder. I'm using Notepad++ for it.
robotgamer2 1 Jul @ 11:42am 
dude ive been looking everywhere for a mod like this TY FOR MAKING THIS
PAPAZULU_ 23 Jun @ 8:46am 
Hey @Hds46, sorry to bother you, but could you tell me which tool you used to create or view the code for the scripts?

Since the code doesn’t appear in the console, I assume it must be in Hammer, right? If so, could you give me a quick explanation on how to open it and view these variables? I’d really appreciate it — I want to experiment with the AI as well =D
kuba_jeden 18 Jun @ 12:26pm 
can yall fix the ally npc's? alyx in the episodes keeps getting worried when i dont have my flashlight on , sheckley and griggs are basicly USELESS in the antlion defence section in episode 2
John S. Stapler 11 Jun @ 11:15pm 
chain mail in MY 2025 more likely than you think
_-Echo-117-_ 11 Jun @ 10:25am 
below me is a person warning others persons that there is a honest to god "scary chain email" in 2025
hexagonopus 6 Jun @ 8:49pm 
below me is an honest to god "scary chain email" in 2025
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life