Page 1 of 1

Barrels won't stay solid

Posted: Sat Aug 26, 2017 2:13 am
by Nevander
So I have this issue where the barrels in my game don't remain solid during the death animation and somehow allow me to walk on top of them when they are exploding until they disappear. It feels like it's about 4 or 8 units tall. Here is my DECORATE:

Code: Select all

ACTOR 64ExplosiveBarrel : ExplosiveBarrel REPLACES ExplosiveBarrel
{
	Health 15 // DEFAULT IS 20
	Radius 20
	Height 50
	+SOLID
	
	States
	{
		Death:
			BEXP ABC 5
			BEXP D 5 A_Scream
			BEXP E 0 A_SpawnItemEx("64BarrelExplosion", 0, 0, 25, 0, 0, 0, 0, 0)
			BEXP E 5 A_Explode(128, 136) // DEFAULT RADIUS IS 128
			BEXP E 7 A_SetTranslucent(0.0)
			BEXP E 9
			TNT1 A 1050 A_BarrelDestroy
			TNT1 A 5 A_Respawn
			Wait
	}
}
As you can see, there is nothing there that should be causing it to stop blocking the player. It is even happening in vanilla Doom with no mods loaded. What I want is to make them nonsolid at a specified point in the death animation but even if I do an A_ChangeFlag on SOLID or A_NoBlocking, it doesn't seem to affect in when I want it to. The only thing that does work is to call A_NoBlocking at the very beginning of the animation, but I don't want that and I don't want to be able to walk on top of the barrel while it is still exploding either.

Re: Barrels won't stay solid

Posted: Sat Aug 26, 2017 2:33 am
by Graf Zahl
If something gets killed, its height gets to reduced to 1/4th of its original. If that doesn't suit your needs you will have to specify a separate 'deathheight' property.

Re: Barrels won't stay solid

Posted: Sat Aug 26, 2017 3:04 am
by Nevander
Oh wow I had no idea about that property. Thanks, that seems to have fixed it.