Barrels won't stay solid

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Barrels won't stay solid

Post 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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Barrels won't stay solid

Post 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.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Barrels won't stay solid

Post by Nevander »

Oh wow I had no idea about that property. Thanks, that seems to have fixed it.
Locked

Return to “Editing (Archive)”