Heyyo,
With some help of some online files, I've done it, I've gotten HL2 ai working perfectly in HL2DM! (well, the majority at least)
console commands speak better thand paragraphs
npc_create npc_zombie
ent_fire npc_zombie setrelationship "player D_HT 99"
Now the zombie will attack ANY player in sight.
how it works:
ent_fire changes special conditions for any npc. To find out which you can use, type: ent_info *npc name*
Now here's the kicker: the ability to add and remove targets for certain npc's by button pushes!
This I had to figure out how to implement by myself since online guides don't exactly guide you.
bind "del" "npc_create npc_antlionguard;wait;ent_setname mardsbrute"
bind "pgup" "ent_setname mardsbrute"
bind "end" "ent_setname target;wait;exec peace"
bind "pgdn" "ent_setname target;wait;exec attack"
now, create cfg's in the cfg folder, and name them 'peace.cfg' and 'attack.cfg'. After that, inside them, add these:
attack.cfg: ent_fire mardsbrute setrelationship "target D_HT 90"
peace.cfg: ent_fire mardsbrute setlreationship "target D_LK 90"
now, when you hit "del", it'll spawn a antlion guard, and set its entity group to mardsbrute, or you can use "pgup" to assign any npc to your mardsbrute entity group.
After that? aim at anything living, and hit "pgdn", and it'll turn that poor target into their sworn enemy.
If you want to give them remorse, hit "pgup" your mardsbrute posse will then act like they don't care for that person... so when they turn their backs? PGDN!
lmao, I'm sooo evul.... bowling for combine's just got better... use an antlionguard
Oh, pgdn, you can multitarget too, just look at each person, and hit pgdn one after another. same goes for peacefullness... but do you really wanna take the fun away from that antlion that just wants to kill? 9_9
WARNING: so far, any npc that uses a gun has not been able to work properly, so sry, no citizen vs combine wars. Same goes for striders and gunships... and from what I've seen, no ichyosaur either.
Also, you can't bind that ent_fire setrelationship stuff to keys... I tried, but since it requires the quotes ("") and so do the keybinds... won't work, you need to make it exec a cfg...
I hope you guys enjoyed this... cause me buds sure the heck diddn't on dm_overwatch when as soon as they went outside the building, or on the top floor, antlionguards were there with a lot of health.
[EDIT]
Oh, and stefan, this works for our cheaply emulated hl2 coop! so just create an autoexec.cfg with all the ent_fire's for all the enemy npc's and you're set.
Oh, and you need sv_cheats 1 to get it to work, I did this:
bindToggle "*" "sv_cheats"
OH!, here's my reference files,
http://halflife2.filefront.com/file/...I_Script;35304
thanks to the dude who made it: F2!
Oh, and yes, game always crashes when you try to leave the server, it's a bug in HL2DM...