Hassassins killing each other Created 6 years ago2018-09-18 00:09:56 UTC by Cabo Fiambre Cabo Fiambre

Created 6 years ago2018-09-18 00:09:56 UTC by Cabo Fiambre Cabo Fiambre

Posted 6 years ago2018-09-18 00:09:56 UTC Post #340905
So i've added a new class to the game in order to make the assassins a different type from the hgrunts because i want to add the black ops from op4 but when i test it on game the assassins attack each other. Maybe i'm missing something, i don't know much about this, it's my first time using the hl1 sdk, can someone give me a hand?
Posted 6 years ago2018-09-18 03:09:53 UTC Post #340906
Assuming you mean the female assassins and the male assassins are fighting each other, the reason is the faction set-up - the Black Ops fighting the standard Grunts was something that didn't get introduced until Op4, so Valve just set the female assassins to be the same faction as the hgrunts - Human Military. Op4's male assassins use their own faction that's hostile to Human Military, IIRC. I seem to recall they also changed the female assassins to that same faction in Op4 as well, which is what I would recommend doing.

If that's not the issue, it's probably still an issue with the factions, so double-check those.
Notewell NotewellGIASFELFEBREHBER
Posted 6 years ago2018-09-18 09:50:09 UTC Post #340908
I want to make the black ops a different faction from the hgrunts just like in op4 with male and female assassins being allies and attacking the grunts but my problem is that the assassins attack each other is if they were enemies not allies. Sorry for my post, is a bit confusing
Posted 6 years ago2018-09-18 10:00:18 UTC Post #340909
You need to make sure your new class is set to be allied with female assassins in this table: https://github.com/ValveSoftware/halflife/blob/5d761709a31ce1e71488f2668321de05f791b405/dlls/monsters.cpp#L2199
Posted 6 years ago2018-09-19 12:57:26 UTC Post #340913
Done!
What i'm going to say does nothing to do with the topic of the post but can someone tell me why do sparks appear over npcs heads?
Posted 6 years ago2018-09-19 15:12:12 UTC Post #340916
That's this code: https://github.com/ValveSoftware/halflife/blob/5d761709a31ce1e71488f2668321de05f791b405/dlls/schedule.cpp#L169

If you're compiling debug builds it turns on spark effects for NPCs that failed to follow a schedule.
Posted 6 years ago2018-09-20 22:10:49 UTC Post #340926
Sorry for reviving this thread but i don't want to spam the forum with my posts. I've recently added otis (fat security guard from op4) to my mod, he behaves the same as barney but for some reason he won't say and do anything if the player attacks/kills a scientist or a fellow security guard. Why does this happen?
Posted 6 years ago2018-09-21 21:39:11 UTC Post #340930
What is Otis' AI - just Barney's copy+pasted?
Posted 6 years ago2018-09-22 01:15:38 UTC Post #340931
You must be logged in to post a response.