Synchronized monster reaction?

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
User avatar
Sandro
Posts: 183
Joined: Sat Oct 05, 2013 8:03 am
Location: Erathia

Synchronized monster reaction?

Post by Sandro »

I read in the wiki that a negative ReactionTime in a monster properties make the said monster to not attack unless attacked first.

What I want is a way to group this behaviour with monsters of the same tag. Is this even possible in a way ?

(For example : This way a swarm of monsters could easily surround the player (thus making him forced to shoot to move), making not only the monster he fired at, but also all the others around to start to retaliate. I wanted to use the tag parameter because I don't want monsters of the same specie elsewhere hidden in the map to change their behaviour too while they are not part of the current fight...)

Thanks in advance.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Synchronized monster reaction?

Post by Nevander »

The only way I can think of is to set the group of monsters to be dormant, then do Thing_Activate on them when you want them to wake up together. May need to combine it with a NoiseAlert or something. Since you are using tags I assume this to be a scripted event in a map.
User avatar
Sandro
Posts: 183
Joined: Sat Oct 05, 2013 8:03 am
Location: Erathia

Re: Synchronized monster reaction?

Post by Sandro »

Well, if they are dormant, they couldn't surround the player...
I'd like them to come to him "peacefully", until player loose his temper and shoot at them first.
User avatar
Caligari87
Admin
Posts: 6233
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Synchronized monster reaction?

Post by Caligari87 »

Have the monsters acquire and chase the player as normal, but put an inventory check to prevent them from jumping to their attack states if they don't have a certain dummy item. If the player shoots, have the weapon perform [wiki]A_RadiusGive[/wiki] and dump that inventory item to the monsters so they start jumping to their attack states. Alternatively, have the monster do the radiusgive if they go into a pain or death state. That would cause monsters near them to "defend" them.

8-)
User avatar
Sandro
Posts: 183
Joined: Sat Oct 05, 2013 8:03 am
Location: Erathia

Re: Synchronized monster reaction?

Post by Sandro »

Caligari87 wrote:Alternatively, have the monster do the radiusgive if they go into a pain or death state. That would cause monsters near them to "defend" them.
Awesome ! I'll try this out, thanks a lot ! :)
Locked

Return to “Editing (Archive)”