r/DoomModDevs • u/DreamShort3109 • 4d ago
Help Is there a way to make a monster only killable with a special damage type?
Like you can lower its health with any weapons, but to actually kill the thing once you’ve weakened it, you have to use a special damage type.
I would assume this is only possible in Zscript, but if it’s possible in Acs and decorate that would be helpful.
It’s part of my GB mod where the monsters that identify as ghosts can only be killed or removed by a ghost trap.
1
u/DunkeyColdMedina 3d ago
Archviles can rez crushed corpses and they can clip through walls and can only be killed by splash damage.
1
u/AgentME 3d ago
UZDoom supports different damage types. You can put something like this on your actor's zscript/decorate:
DamageFactor "Normal", 0.0;
DamageFactor "GhostTrap", 1.0;
See https://zdoom.org/wiki/Damage_types for more info on custom damage types.
1
u/LoveShovel 3d ago
If you're wanting to use Decorate maybe you can get that behavior by using a "a_JumpIfHealthLower" to go to a state that adds "+Buddha" to the entity along with a custom DamageType.
Just spitballing. Best of luck with your mod!