Need Help? The Day isnt going so well on the Mapping front?
marnamai
Polygon
Posts: 21 Joined: Mon Aug 21, 2006 4:26 pm
Post
by marnamai » Wed Aug 23, 2006 2:56 pm
I want the metrocops to be friendlies in my map.
So I use a ai_relationship and set subject to its name or npc_class.
But what to use in target? For single player its "!player" ...
I tried making coop maps in dm before (vorts as enemies) but then they 'll only attacked the first player on the server ...
What target do I have to use in order to be friendly against all players?
Maxunit
prop_physics
Posts: 135 Joined: Fri Aug 04, 2006 1:00 pm
Location: Osprey
Post
by Maxunit » Wed Aug 23, 2006 5:28 pm
the target is still !player.
It hasnt changed because it is source code related.
Just use !player and it will work. And for the other side, use the entitie name from the npc, not the class name. Using classnames wasnt working for me, only the npc_ one.
Hyperjag3
npc_strider
Posts: 604 Joined: Mon May 29, 2006 8:54 am
Contact:
Post
by Hyperjag3 » Wed Aug 23, 2006 7:41 pm
Classnames
are things like npc_headcrab, npc_strider
.
Maxunit
prop_physics
Posts: 135 Joined: Fri Aug 04, 2006 1:00 pm
Location: Osprey
Post
by Maxunit » Wed Aug 23, 2006 8:10 pm
ooops...my fault xD....
tundra_cool
npc_citizen
Posts: 175 Joined: Fri Aug 04, 2006 10:08 pm
Post
by tundra_cool » Wed Aug 23, 2006 8:53 pm
Use 'player' for the target without the '!'.
Maxunit
prop_physics
Posts: 135 Joined: Fri Aug 04, 2006 1:00 pm
Location: Osprey
Post
by Maxunit » Wed Aug 23, 2006 10:04 pm
tundra_cool wrote: Use 'player' for the target without the '!'.
I use "!player" and it works fine. I haven't tried it with "player" so far.
Hyperjag3
npc_strider
Posts: 604 Joined: Mon May 29, 2006 8:54 am
Contact:
Post
by Hyperjag3 » Wed Aug 23, 2006 10:14 pm
tundra_cool wrote: Use 'player' for the target without the '!'.
'player' is technically wrong, but still works. '!player' is correct.
skidz
Obsidian Gold
Posts: 3228 Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:
Post
by skidz » Thu Aug 24, 2006 12:56 am
Hyperjag3 wrote: tundra_cool wrote: Use 'player' for the target without the '!'.
'player' is technically wrong, but still works. '!player' is correct.
Never understood that, not player...
Hyperjag3
npc_strider
Posts: 604 Joined: Mon May 29, 2006 8:54 am
Contact:
Post
by Hyperjag3 » Thu Aug 24, 2006 2:02 am
! in this case is not the not operator, it is a token that marks the beginning of a special string.