Make one monster type susceptible when NoInfighting is on

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Enjay
 
 
Posts: 26957
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Make one monster type susceptible when NoInfighting is on

Post by Enjay »

I have a map where I am using NoInfighting in the map definition. It's doing what I want (i.e. enemies are not infighting and not taking damage from each other's projectile impacts).

However, there is monster that just wanders around effectively as an item of scenery and it too is affected by this. The monster itself has no fighting abilities or anything, but it can just happen to get in the way of an enemy attack and block it. That's also fine, but its a pretty weak thing (only 10 hitpoints) and it looks a bit daft for it to be able to take the full impact of a baron's fireball with impunity.

So, is there any way to force a single actor type to take damage from other monster's projectiles when NoInfighting is active via MAPINFO?
Kzer-Za
Posts: 521
Joined: Sat Aug 19, 2017 11:52 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Make one monster type susceptible when NoInfighting is o

Post by Kzer-Za »

FORCEINFIGHTING flag?
User avatar
Enjay
 
 
Posts: 26957
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Make one monster type susceptible when NoInfighting is o

Post by Enjay »

:oops:
Yes, that's exactly what I was looking for. Works perfectly. I knew there was a simple solution, but I couldn't see it for some reason.

Thank you.
Post Reply

Return to “Scripting”