Disable same-species infighting?

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.
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Disable same-species infighting?

Post by CaptainToenail »

How do I do this? I have a decorate monster with a hitscan attack, but they will attack each other if they hit each other.
User avatar
Jimmy
 
 
Posts: 4728
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Post by Jimmy »

+DONTHURTSPECIES stops them fighting over splash damage, not sure if it covers hitscans, though.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No, it doesn't.
User avatar
SilentRage
Posts: 216
Joined: Mon Apr 25, 2005 10:34 pm
Contact:

Post by SilentRage »

I have a question along the same lines as this.

How can you make it so that monsters won't infight due to hitscan friendly fire?

I know that in Strife, the Acolytes never infight.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Post by Gez »

Two easy way:

1. All your monsters can have the NOTARGET flag -- that way, they'll never infight, regardless of any other setting.

2. You can use damagefactor and damage types so that your monsters are immune to their own hitscan attacks. AFADoomer used this for his Wolfenstein TC mod (look in Project), and it works well.

I'm not sure how Strife did it exactly. I see nothing in the source code that looks like a special property about this precisely... :?
User avatar
Unknown_Assassin
Posts: 2468
Joined: Wed Apr 12, 2006 5:17 pm
Location: Where dead carcasses lie
Contact:

Post by Unknown_Assassin »

KDiZD did something that prevent hitscan monsters from killing each other, but I don't know what.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Unknown_Assassin wrote:KDiZD did something that prevent hitscan monsters from killing each other, but I don't know what.
DEHACKED lump:

Code: Select all

Misc 0
Monsters Ignore Each Other = 1
User avatar
Unknown_Assassin
Posts: 2468
Joined: Wed Apr 12, 2006 5:17 pm
Location: Where dead carcasses lie
Contact:

Post by Unknown_Assassin »

Pretty nifty and simple. I like it. :)
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

A note: Hitscan monsters can still hurt and kill each other and that option disables infighting entirely.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Vaecrius wrote:DEHACKED lump:

Code: Select all

Misc 0
Monsters Ignore Each Other = 1
A better method:

MAPINFO lump:

Code: Select all

defaultmap
noinfighting
This will only work with GZDoom and SVN.

I suspect the DEHACKED lump is rapidly approaching deprecation status, if it's not there already....
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

For some reason I can't get defaultmap to work (it's fine if I replace the line with a specific map). Am I missing something?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Ah, my bad. It appears that defaultmap only applies its properties to future maps defined in the same MAPINFO. Including it by itself in a MAPINFO lump doesn't do anything because there are no map definitions to apply to.

I wonder if this could be changed to facilitate making changes like this to every map in an existing WAD without having to redefine every map in the lump...
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Post by CaptainToenail »

So there is no simple flag to disable same species hitscan fighting, well, I think there should be...
User avatar
Unknown_Assassin
Posts: 2468
Joined: Wed Apr 12, 2006 5:17 pm
Location: Where dead carcasses lie
Contact:

Post by Unknown_Assassin »

CaptainToenail wrote:So there is no simple flag to disable same species hitscan fighting, well, I think there should be...
Unless you are not talking about monsters getting hurt, but instead, just fighting, then use the +NOTARGET.
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Post by CaptainToenail »

But that will mean other monsters of different species will not be able to target them...
Locked

Return to “Editing (Archive)”