Talk:Barrel suicide
From DoomWiki.org
Lee Killough's page says that barrel suicide does not occur when the monster destroys the barrel with his first shot. Doesn't that imply that the one-line bug fix described here is not the whole story? Ryan W 02:40, 31 October 2006 (UTC)
Contents
Youtube Video[edit]
Youtube video of a suicide Cacodemon https://www.youtube.com/watch?v=_slF2ne_drQ
Changes after testing[edit]
I removed a paragraph that said you could replicate the effect by giving a monster a blast damage attack. Not true; the monster gets hurt, but it does not become its own target. Also, I got a shotgun guy to hurt himself finally in E1M1, then he just walked around shooting as if he were blind, heh. A demo of a zombie doing this would be useful, though it's hard to get them to hurt themselves without destroying themselves, because of their low hit points. The task could be made easy by making a PWAD that places one at a certain distance from a Barrel it can't get closer to or farther from, with the player as a target beyond. In the process I noticed a v1.2 difference; shotgun guys don't light up when they fire. Who is like God? 09:03, 13 May 2008 (UTC)
Actually, I noticed that even in version 1.9, the Zombieman also doesn't light up when shooting. -Wagi 69.51.157.227 14:14, 13 May 2008 (UTC)
Call for a rewrite[edit]
The entire article has to be rewritten, the current explanation is incorrect. This is how this bug operates in reality:
1) Monster X damages a barrel without actually exploding it 2) the barrel explodes (injuring Monster X), set off by a) another monster -> Monster X will attack it b) the player -> Monster X will (attempt to) attack itself c) Monster X -> same as b)
If a monster explodes a barrel that is at "full health", that monster will not (attempt to) attack itself.
Then there are issues with passages like When damaging another object as a result of the barrel explosion, the "source" of the explosion is then passed on to the damaged object. It's hard to discern what the italicized portion is trying to say. Needs to be reworded or rewritten.
Before I start editing, I'd like some input from programmers.
- Interesting! Your analysis seems to be correct (I tried myself). It actually seems to be quite difficult to trigger the barrel suicide phenomenon, as the monster needs to damage the barrel without making it explode, then hit the same barrel again. A lot of the time it just blows up on the first hit.
- The code fragment does seem to be correct, however. I made a modified version of Chocolate Doom where I removed the check, and the same behavior occurred.
- I'd guess that the barrel's "target" only gets set when it is damaged and not when it is immediately blown up, but I'd have to check the source in more detail to be certain. Fraggle 14:05, October 31, 2009 (UTC)
- lol, more than two years after, the rewrite is there. --Gez 03:10, 16 January 2012 (UTC)
Hexen equivalent?[edit]
I believe it is possible for something similar to happen in Hexen, if a fire-based enemy (e.g. a chaos serpent) takes splash damage from burning a tree. -- ETTiNGRiNDER 17:55, 19 January 2014 (UTC)
Atmospheric[edit]
I believe they should not have fixed this.
1.4???[edit]
Isn't it fixed in 1.2? —Preceding unsigned comment added by 188.163.84.120 (talk) 21:28, 28 April 2017 (UTC)
- It's easily reproducible in every version up to 1.4. demo --Egor (talk) 09:29, 15 June 2019 (CDT)
- Correct. Egor's link is broken, so here is another v1.4 demo: E1M8-v14-barsui.zip
- Works the same way in v1.2, although the map is slightly different - the barrels are destroyed too early in the above demo with the v1.2 registered IWAD. Starting with v1.5 beta the Baron becomes uncooperative. So this bug was fixed not in v1.2 (which the current article seems to imply) but in v1.5. --Tpoppins (talk) 10:35, 3 December 2022 (CST)