Monsters that Attack other monsters

Archive of the old editing forum
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.
Locked
ADooMFan

Monsters that Attack other monsters

Post by ADooMFan »

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.
User avatar
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

Post by wildweasel »

Welcome to the forums; I've moved your question to Editing, as it is not a Project.
User avatar
Reactor
Posts: 2091
Joined: Thu Feb 03, 2011 6:39 pm
Location: Island's Beauty, Hungary

Re: Monsters that Attack other monsters

Post by Reactor »

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...
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Monsters that Attack other monsters

Post by Gez »

You'll generally use [wiki]Thing_Hate[/wiki] for that, so you need to know your way around [wiki]ACS[/wiki].
User avatar
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

Post by Sergeant_Mark_IV »

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:

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
 }
}
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.
Locked

Return to “Editing (Archive)”