Making combine friendly Created 19 years ago2005-01-29 10:37:59 UTC by Madcow Madcow

Created 19 years ago2005-01-29 10:37:59 UTC by Madcow Madcow

Posted 19 years ago2005-01-29 10:37:59 UTC Post #86638
How do you make a metropolice friendly?
I've seen it in other maps like in "Antlion troopers" and "Bunker defence"
I can't find any flags or options for it in the properties.

Please help.. =)
Madcow MadcowSpy zappin my udder
Posted 19 years ago2005-01-29 13:59:54 UTC Post #86692
You use an entity called env_global and choose in properties Gordon is pre criminal.
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-01-29 14:48:05 UTC Post #86706
Or use special entity (dont know what its called) to set relationship between to npc's. Theres a tutorial at hl2world.com
Posted 19 years ago2005-01-29 16:50:54 UTC Post #86714
Thanks! =)
I'll have a look at both
Madcow MadcowSpy zappin my udder
Posted 19 years ago2005-01-29 17:43:10 UTC Post #86718
It is really simple, all you have to do is put in an 'ai_relationship' entitie and have the object being the turrets and the target being '!player'. You must have the ! before player or it wont work. It should also work with any other person, striders, combine, ect.

The target can be a npc class name, such as npc_combine_s, npc_antlion, ect. Or it can be a npc's name.
Posted 19 years ago2005-01-30 10:17:52 UTC Post #86929
thanks lucky4444!
The env_global went nuts.. So I had to remove it.
But is there any way to make two things enemies?
Like the !player and the npc_citizen?
And makes me able to kill the npc_citizen? =/
Madcow MadcowSpy zappin my udder
Posted 19 years ago2005-01-30 13:59:23 UTC Post #87002
Use citizen models on combine!
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-01-30 14:07:18 UTC Post #87005
Use more than one ai_relationship?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-01-30 21:15:14 UTC Post #87096
I do not know how, I tried making !player and npc_citizen hate each other but it did not work. if you figure out how to do it let me know by posting the answer here.
Posted 19 years ago2005-01-31 12:12:28 UTC Post #87258
when coding the "!" means not. you could try to make the npc target just "player". let me know if it works
Posted 19 years ago2005-01-31 12:44:31 UTC Post #87265
To make them hate the player just use a global.
Posted 19 years ago2005-01-31 21:30:24 UTC Post #87395
The only globals dealing with citizens are lower weapons when ally is on crosshair(not exact wording), and citizens are not commandable.

Lament:
Aparently !player works just fine because it is what I use. Have you tried it with just 'player'?
Posted 19 years ago2005-02-01 10:18:58 UTC Post #87445
i havent tried it. it was just an idea. like instead of the target being "!player" "(not)player", the target would be player which would make them hostile. probably doesnt work, but its something to try. just some c++ logic for you.
Posted 19 years ago2005-02-01 22:02:09 UTC Post #87567
Yes, you are right about the c++ part, but this is hammer not c++. If you want you can prove that there is another way ('player' instead of '!player') by trying it. But it is a good point that ! means 'not' in c++.
Posted 19 years ago2005-02-01 22:05:35 UTC Post #87568
Just in case you are curious, I did a little c++, but then liked visual basic 6 better because I accually made an audio player, picture veiwer, and writting to files program within two days of starting visual basic 6.
Posted 19 years ago2005-02-01 22:17:44 UTC Post #87576
I havent gotten around to c++... I made some short games with Visual Basic where the backgrounds were scanned drawings, it was nice.
Then I learned how to render cool stuff in Bryce, and quit Visual Basic
Then I learned how to compile HL maps, and quit Bryce
Then I realized it was time to sleep, and I went to bed... zzzz

If timeofday>2:AM Then
kasperg.sleep=true
Else
kasperg.sleep=false
Kasperg.mapping=true
End if

:D
Posted 19 years ago2005-02-01 22:19:21 UTC Post #87580
C++ is hard.
You must be logged in to post a response.