Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Sign in to follow this  
Uni

Creating A "Wimpy" Alternate Death Sound

Question

Hi, I was trying to look into creating a weak alternate death similar to Heretic but I couldn't find anything on the Zdoom Wiki. I was wondering if a feature like that could be possible to implement using DECORATE to add another variation of death sound, like from a hitscan shot or an Imp fireball.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

You can use Custom damagetypes to do this.

 

After you import your new sound variation, define it in SNDINFO

enemy/wkdeth DSWKDETH

For hitscans you can create a new BulletPuff and give it a new damagetype (eg: Weak) (in DECORATE)

ACTOR WeakPuff : BulletPuff
{ 
DamageType "Weak"
}

Then make your weapon use this new BulletPuff

ACTOR Pistol2: Pistol Replaces Pistol
{
 States
 {
  Fire:
    PISG A 4
    PISG B 6 A_FireBullets (5.6, 0, 1, 5, "WeakPuff")
    PISG C 4
    PISG B 5 A_ReFire
    Goto Ready
 }
}

Same thing for projectiles

ACTOR DoomImpBall2 : DoomImpBall Replaces DoomImpBall
{
DamageType "Weak"
}

Then you can make the other actors react to this new type of damage

ACTOR ZombieMan2 : ZombieMan Replaces ZombieMan 
{
States
  {
  Death.Weak:
   POSS H 5 
   POSS I 5 A_PlaySound("enemy/wkdeth", CHAN_BODY)
   POSS J 5 A_NoBlocking 
   POSS K 5 
   POSS L -1 
   Stop
  }
}

https://zdoom.org/wiki/Custom_damage_types

Edited by tempdecal.wad

Share this post


Link to post
  • 0
On lundi 2 septembre 2019 at 7:30 PM, Uni said:

Hi, I was trying to look into creating a weak alternate death similar to Heretic but I couldn't find anything on the Zdoom Wiki. I was wondering if a feature like that could be possible to implement using DECORATE to add another variation of death sound, like from a hitscan shot or an Imp fireball.

Rule of thumb for ZDoom modding: if it's possible in a supported game (e.g., Heretic), it's possible in any other supported game (e.g., Doom).

 

In this case, it's in SNDINFO you have to look. Heretic's SNDINFO contains these lines:

$playersound player male *wimpydeath plrwdth
$playersound player male *death plrdth
$playersound player male *crazydeath plrcdth
$playersound player male *gibbed gibdth

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×