Half-Life 2

Half-Life 2

556 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.
70 Comments
Shotty Man 18 Oct @ 10:59pm 
Mod is fine but if I ever manage to close the distance and get close to an enemy, the AI just kinda sits there and stops shooting. I don't have any other AI mods so idk why this happens.
negreaflorin687 21 Sep @ 5:24am 
would it be possible to make it so some soldiers are assigned normal better combat ai and some are assigned aggressive combat ai? feel it would spice up combat since currently i feel gunfights with either mod are just... eh? with better combat ai the combine soldiers just wait in cover to take potshots at me and dont advance at all, and with aggressive combat ai they just push too often and feel too suicidal
justdeltaxd 6 Aug @ 3:49pm 
nevermind it didnt
justdeltaxd 2 Aug @ 9:20pm 
pretty sure this fucked up the alyx ai
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