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.)
Friendly Strife versus MBF
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.
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.
-
-
- Posts: 26539
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
-
-
- Posts: 17895
- Joined: Fri Jul 06, 2007 3:22 pm
Re: Friendly Strife versus MBF
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.
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.
-
-
- Posts: 26539
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Friendly Strife versus MBF
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.