Gez
Why don't I have a custom title by now?!
Posts: 9285
Registered: 07-07 |
unknownna said:
And it seems that demons could infight in the PSX version. We could emulate this behavior through A_CustomBulletAttack, but I don't know the damage formula of A_SargAttack, or what the actual melee range of the demons is. According to Graf Zahl, the default melee range is 44.
If demons infight, then it's because it was probably based on a pre-1.5 codebase. Maybe with the Doom II addons copy/pasted quickly, without paying attention to all the detail; which would explain why there isn't the infighting exception for Hell Knights and Barons. Obviously, that exception wasn't in the main code before Hell Knights were added. (Same deal for Doom 64, which is ultimately based on the same codebase.)
This is interesting on this topic.
The constant MELEERANGE is defined as 64*FRACUNIT. In 1.4 and older, the melee range check only looks for that value between two actors. Starting with v1.5., it's MELEERANGE-20*FRACUNIT (so, the value of 44 given by Graf Zahl), plus the monster's radius.
As for the demon infight, you can see it used a hitscan attack with MELEERANGE (so, 64 units, not 44) before it was changed.
|