Jump to content

Zdoom - How to prevent monsters to attack each other ?


Mewdoom

Recommended Posts

Hello guys,

I notice that some monsters start fighting each other because one accidentally hit another monster. There is a way to prevent monsters to injuring each other or make monsters invulnerable between them ? :)

Share this post


Link to post

Create a ZMAPINFO entry for the level and add "NoInfighting" to its definition. This will completely disable infighting, however, so if what you're asking for is to disable it on a case-for-case basis, then I dunno.

Share this post


Link to post

Note that disabling infighting will make monsters unable to target each other, but not make them invulnerable to each other's attacks. In other words, if there were 2 monsters (A and B) attacking the player, and monster A throwed a fireball towards the player, but the fireball hits monster B on its way, then monster B would take damage (lose health points), but continue attacking the player (not turning to fight against monster A).

Another thing: Projectile-based attacks don't deal any damage when they hit a monster of the same monster species as the monster who fired the projectile. Other types of attacks than projectile-based ones deal damage even to monsters of the same type as the attacker, though.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...