Friendly Strife versus MBF

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, 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.
User avatar
Enjay
 
 
Posts: 26403
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Friendly Strife versus MBF

Post by Enjay »

In UDB, it is possible to set an actor to be friendly - and there are two options: Strife Logic and MBF Logic. The thing is, I don't know, and can't find, what the differences between these two logics is. Can anyone clue me in?

Bonus question (just out of interest) - if I set both, which one takes priority? (I assume it doesn't create a "super friendly" monster.)
Gez
 
 
Posts: 17632
Joined: Fri Jul 06, 2007 3:22 pm

Re: Friendly Strife versus MBF

Post by Gez »

The MBF "friendly" logic is not implemented in GZDoom, and instead remapped to the Strife "ally" logic. Therefore, there are no differences between the two when testing in GZDoom.


From what I vaguely remember, the MBF logic relies on having several linked lists of mobjs, I think. One of the key differences is that monsters (normal, hostile monsters, that is) will attack friendly monsters without having to be prompted by getting attacked by them first. Basically the A_Look code doesn't look just for a player, but also for any friendly monster. This was not copied in ZDoom for performance reasons IIRC. You can test that with one of the MBF test maps that depicts an ice hockey arena pitting barons against knights. In proper MBF, both "teams" of monsters will immediately attack each other; in GZDoom only one team will attack the other, which will only wake up to retaliate.
User avatar
Enjay
 
 
Posts: 26403
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Friendly Strife versus MBF

Post by Enjay »

Well that would explain why I couldn't see a difference. Thanks for the info. I remember that test map behaving as you described now.

Return to “Mapping”