Custom death messages not used for certain situations

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Reisal
Posts: 1267
Joined: Fri Mar 13, 2009 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10 Home
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: New York State
Contact:

Custom death messages not used for certain situations

Post by Reisal »

I am trying to use custom death messages such as OB_WATER, OB_SLIME, OB_LAVA, OB_BARREL, OB_SPLASH, OB_R_SPLASH and OB_ROCKET in LANGUAGE lump but they are not being used by neither GZDoom or UZDoom. Blowing myself up with a rocket against the wall just says "X killed himself." instead of "X learned the hard way with a rocket." while custom death messages for monsters work just fine.

The same applies by getting killed by an exploding barrel. Obituary/HitObituary are not being utilized in the DECORATE code for the barrel and neither does dying in nukage, lava or slime that damages the player. This neither worked in the modified mod I use or my own mod, so what am I doing wrong?

The examples below:

Code: Select all

OB_BARREL = "%o was in the blast radius of a barrel.";
OB_MPBARREL = "%o was in the blast radius of a barrel.";
OB_KILLEDSELF = "%o fails at self-preservation.";
OB_WATER = "%o attempted to breathe in oxygen from the water but drowned instead.";
OB_LAVA = "%o decided to take a bath in flesh searing lava.";
OB_SLIME = "%o dissolved while wading in corrosive liquid.";
OB_SPLASH = "%o learned the hard way that some weapons deal splash damage.";
OB_R_SPLASH = "%o failed to put enough distance from %h rocket.";
OB_ROCKET = "%o learned the hard way with a rocket.";
Post Reply

Return to “Scripting”