Can we make monsters hate non-monster/player objects?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Can we make monsters hate non-monster/player objects?
Can we make monsters hate non-monster/player objects using Thing_Hate or or NoiseAlert? I've already tried so far with Thing_Hate and dead cacodemons and lights.
I want to make it look like a bunch of monsters are attacking a plane.
I want to make it look like a bunch of monsters are attacking a plane.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Probably thing type 9076. An invisible, blocking actor that can be used (amongst other things) as a hated item. The actor just sits there, but can be used to provide an object for an enemy with thing_hate to head for. If the enemy sees the hated item, it will attack it. The angle that you set the thing at is used to determine its health.Agent ME wrote:What's a hate target?
Last edited by Enjay on Wed Jun 15, 2005 1:50 pm, edited 1 time in total.
Enjay, you're wrong, hate targets are not blocking:
Code: Select all
IMPLEMENT_ACTOR (AHateTarget, Any, 9076, 0)
PROP_RadiusFixed (20)
PROP_HeightFixed (56)
PROP_Flags (MF_SHOOTABLE|MF_NOSECTOR|MF_NOGRAVITY|MF_NOBLOOD)
PROP_SpawnState (0)
PROP_MassLong (INT_MAX)
END_DEFAULTS- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Yes, they do block. NOSECTOR simply means it doesn't use certain physics checks and its invincible.Costja wrote:Enjay, you're wrong, hate targets are not blocking:Code: Select all
IMPLEMENT_ACTOR (AHateTarget, Any, 9076, 0) PROP_RadiusFixed (20) PROP_HeightFixed (56) PROP_Flags (MF_SHOOTABLE|MF_NOSECTOR|MF_NOGRAVITY|MF_NOBLOOD) PROP_SpawnState (0) PROP_MassLong (INT_MAX) END_DEFAULTS
Is it possible to make it not block?
Oops, you're quite right. Shootable but not blocking. My bad. Thanks for the correction.
BTW, angle 0 does seem to make it fairly invincible. A load of SSG shots didn't destroy it. Mind you, an MDK did.
[edit]Argh! cross posting.
I put one in a map and was able to walk through it as if it wasn't there. However, I was able to shoot it.[/edit]
BTW, angle 0 does seem to make it fairly invincible. A load of SSG shots didn't destroy it. Mind you, an MDK did.
[edit]Argh! cross posting.
I put one in a map and was able to walk through it as if it wasn't there. However, I was able to shoot it.[/edit]
