Different sounds for different pain types?
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.
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.
Different sounds for different pain types?
For example, having the sounds of bones breaking when suffering from falling damage, or burning sounds when in lava. Is this possible?
Re: Different sounds for different pain types?
Sure, you can make multiple Pain states, in them you can just put A_PlaySound("yourcool/newpainsounds").
Some examples are shown here:
http://zdoom.org/wiki/Custom_damage_types
Not entirely sure about environmental damage like lava or falling damage though, I never really worked with this stuff. But for custom projectiles, absolutely.
Edit: http://zdoom.org/wiki/Damage_types
I guess you can make Pain states for Falling and Slime and the like.
Some examples are shown here:
http://zdoom.org/wiki/Custom_damage_types
Not entirely sure about environmental damage like lava or falling damage though, I never really worked with this stuff. But for custom projectiles, absolutely.
Edit: http://zdoom.org/wiki/Damage_types
I guess you can make Pain states for Falling and Slime and the like.
Re: Different sounds for different pain types?
Awesome. Thanks, I greatly appreciate itSeekay wrote:Sure, you can make multiple Pain states, in them you can just put A_PlaySound("yourcool/newpainsounds").
Some examples are shown here:
http://zdoom.org/wiki/Custom_damage_types
Not entirely sure about environmental damage like lava or falling damage though, I never really worked with this stuff. But for custom projectiles, absolutely.
Edit: http://zdoom.org/wiki/Damage_types
I guess you can make Pain states for Falling and Slime and the like.

Re: Different sounds for different pain types?
Pain sounds can be specialized for specific damage types by appending -damagetype to the end of the normal pain sound. e.g.
- *pain25 becomes *pain25-Lava
- *pain50 becomes *pain50-Lava
- *pain75 becomes *pain75-Lava
- *pain100 becomes *pain100-Lava
- *pain becomes *pain-Lava (which is probably enough for you, since hardly anybody bothers with health-based pain sounds)
Re: Different sounds for different pain types?
I didn't know you could do thatrandi wrote:Pain sounds can be specialized for specific damage types by appending -damagetype to the end of the normal pain sound. e.g.Define the sounds in SNDINFO, and they will be used when damaged by Lava.
- *pain25 becomes *pain25-Lava
- *pain50 becomes *pain50-Lava
- *pain75 becomes *pain75-Lava
- *pain100 becomes *pain100-Lava
- *pain becomes *pain-Lava (which is probably enough for you, since hardly anybody bothers with health-based pain sounds)
