Maes
I like big butts!

Posts: 10165
Registered: 07-06 |
xvertigox said:
So if a zombieman hits a barrel once then I blow it up and it damages a baron the baron will target the zombieman?
Yeah. I had analyzed this behavior here recently.
The root cause is that when barrels are destroyed, they do not get their source (inflictor) set. So if a barrel is blown up with a single hit, it gets no inflictor and "none's to blame" (in practice, this is hard to verify from the player's point of view, because the monster(s) you hurt will be woken up for other reasons anyway). During barrel cascades, most barrels blow up in a single hit anyway, and there's no propagation of blame.
However, if a barrel is hit without exploding, then the last monster hitting it will get the blame (if it can withstand more than one hit).
So if two zombiemen A and B hit a barrel in that order without exploding it, and then A shoots it again and it hurts a Baron, the Baron will go after B, not after A.
This happens in most source ports that don't modify the behavior explicitly (e.g. ZDoom, Skulltag, and possibly others, in order to do proper attribution in deathmatches).
I also suspect that shotgunners are the only monsters who can explode barrels AND get the blame with a single hit ( as is the player, when using the SG or SSG), because of the way these weapons work (they are multiple smaller attacks, rather than a single big one).
|