Disable same-species infighting?
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.
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?
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.
- SilentRage
- Posts: 216
- Joined: Mon Apr 25, 2005 10:34 pm
- Contact:
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...
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...
- Unknown_Assassin
- Posts: 2468
- Joined: Wed Apr 12, 2006 5:17 pm
- Location: Where dead carcasses lie
- Contact:
- 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:
DEHACKED lump:Unknown_Assassin wrote:KDiZD did something that prevent hitscan monsters from killing each other, but I don't know what.
Code: Select all
Misc 0
Monsters Ignore Each Other = 1- Unknown_Assassin
- Posts: 2468
- Joined: Wed Apr 12, 2006 5:17 pm
- Location: Where dead carcasses lie
- Contact:
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
A better method:Vaecrius wrote:DEHACKED lump:Code: Select all
Misc 0 Monsters Ignore Each Other = 1
MAPINFO lump:
Code: Select all
defaultmap
noinfightingI suspect the DEHACKED lump is rapidly approaching deprecation status, if it's not there already....
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...
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
- Unknown_Assassin
- Posts: 2468
- Joined: Wed Apr 12, 2006 5:17 pm
- Location: Where dead carcasses lie
- Contact:
-
CaptainToenail
- Posts: 3975
- Joined: Fri Jul 06, 2007 9:16 am
