Monsters that Attack other monsters
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.
Monsters that Attack other monsters
Hi, I am a sort of new modder and I am new to this website. I'm wondering if there is a way to Have some monsters (Zombiemen for example) attack other monsters AND you.
- 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:
Re: Monsters that Attack other monsters
Welcome to the forums; I've moved your question to Editing, as it is not a Project.
Re: Monsters that Attack other monsters
This is a good question, I wanted to ask the same for Flappers and Laphodorms for the Mist level. Flappers and Laphodorms always attack other mist creatures, and will only take advantage on da player when he gets too close (just like in the movie). Looks like you were quicker 
I believe it's sort of a decorate-working, but I don't know any bit of DECORATE...

I believe it's sort of a decorate-working, but I don't know any bit of DECORATE...
Re: Monsters that Attack other monsters
You'll generally use [wiki]Thing_Hate[/wiki] for that, so you need to know your way around [wiki]ACS[/wiki].
- Sergeant_Mark_IV
- Posts: 812
- Joined: Wed Feb 02, 2011 12:44 pm
- Location: United Communist Nazi Republic Dictactorship of Banana Land (Brazil)
Re: Monsters that Attack other monsters
If you are looking for making a specific scene where a zombieman attack other monsters, do what Gez said with Thing_Hate. But if you can make it in a generic way and make all monsters infight, make the zombieman spawn one actor on every cycle of his See animation. Spawn an actor like this:
Then, make the zombieman and the player to be imune against "ZombiemanTaunt" damage. Then the monsters that get close will take some minor damage and will engage the zombieman in combat. Then, do the same thing with other monsters, and they will all fight against each other.
Code: Select all
actor ZombiemanTaunt
{
Radius 10
Height 10
DamageType ZombiemanTaunt
+NOGRAVITY
+NOTELEPORT
+NODAMAGETHRUST
+THRUGHOST
+NORADIUSDMG
+NOEXTREMEDEATH
+FORCERADIUSDMG
PROJECTILE
+DEHEXPLOSION
+ACTIVATEMCROSS
States
{
Spawn:
TNT1 A 0 A_Explode(3,600)
Stop
}
}