decorate flag: +hatetarget

Moderator: GZDoom Developers

User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ

decorate flag: +hatetarget

Post by Necromage »

Self-explanitory. Something with this flag will draw monsters to it like the player does. Maybe have something like +IgnorePlayerHateTarget, which causes the monster to only go after this thing and to totally ignore the player.
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Post by Shadelight »

use thing_hate ;) I haven't tried using it yet, but I will(gonna be nessecary for some of my cutscenes).
User avatar
Inuyasha_989
Posts: 612
Joined: Thu Oct 16, 2003 2:51 pm
Location: Player Connector

Post by Inuyasha_989 »

its for Decorate, not ACS. he already tried that anyway, but thanks :P
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ

Post by Necromage »

but from what i have been reading thing hate requires that the monster also needs a tid and while i could simply just have all the monsters have the same tid, what if need certain monsters to something else? I cannot give a monster two tids. And then on top of that you need to tag the hate target and as far as I know the only action that will give it a tid is the thing_spawn and that needs a map spot. The flag seems to be so much easier.
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ

Post by Necromage »

mini bump

I do not know the code behind zdoom but would this be possible?
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois

Post by justin024 »

Would +FRIENDLY work? thing_hate works pretty good in combination with ACS.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Thing_Hate can be used in DECORATE as well, yno.
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois

Post by justin024 »

Any action function can be used in decorate, but why create an actor that can hate only predefined tids? ACS allows your monster not to be as limited.
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ

Post by Necromage »

I do not think you get it. I want monsters to hate whatever has the +hatetarget flag not the other way around. +friendly does that fine.

Example: you spawn a decoy that looks like the player but does nothing. If you give it the +hatetarget flag then monsters will go for it like the player. Other wise they will just ignore it.

Thing_Hate is terrible for this because it takes a tid for the hatee. The hatee is the thing that is supposed to hate whatever you want. So you have to give it a spicifc tid and that causes problems when you want to use that thing for something else.

Return to “Closed Feature Suggestions [GZDoom]”