Skip to content

Blood oddity with custom dehacked things #863

@KLNeidecker

Description

@KLNeidecker

If one makes a new "Tall lamp 2" via copying it an making a new thing via DSDEHACKED, the lamp spawns with a pool of blood around it.

If one creates a new thing via DSDEHACKED and gives it the flags of "Blood Color = 0" and "Retro Bits = DECORATION", though the wiki says this combo should spawn blood below the thing, it does not.

If one creates the lamp above, but uses a +NOBLOOD flag, it stops the blood pool.
And no combo of +NOBLOOD or -NOBLOOD or +CORPSE or anything else seems to make the dead scientist spawn the pool.

Decohack code

auto thing RandomlyBloodyLight : thing TechLamp2 "Randomly bloody light"
{
	ednum 11000
}

auto thing NotBloodyCorpse "Corpse that isn't bloody"
{
	ednum 11001
	BloodColor 0
	RetroBits "DECORATION"
	+CORPSE
	states
	{
		spawn:
			MSCI N -1
   			stop
   		
   	}
}

Dehacked result:

Patch File for DeHackEd v3.0
# Created with DECOHack v0.37.0 by Matt Tropiano
# Note: Use the pound sign ('#') to start comment lines.

Doom version = 2021
Patch format = 6

Thing 155 (Randomly bloody light)
ID # = 11000
Hit points = 1000
Width = 1048576
Height = 1048576
Reaction time = 8
Bits = 2
Mass = 100
Initial frame = 963

Thing 156 (Corpse that isn't bloody)
ID # = 11001
Bits = 1048576
Initial frame = 1156
Blood Color = 0
Retro Bits = DECORATION

And a screenshot of what this looks like in practice:

Image

I'm not sure what is going on, but the only way I'm able to get Retro to do the good-old blood spatter under my poor dead scientist is if I spawn it with a gib frame first AND THEN loop into normal frames. The gib frame makes retro spawn the blood.

	States
	{
		//Odd spawn trick to convince Doom Retro it needs blood
		Spawn:
			PLAY W 1 // Player gib frame
			goto Main
		Main:
			MSCI N -1 // Actual dead scientist frame
			stop
		XDeath:
		        PLAY W -1
		         Stop
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions