Jump to content

Need help with Imp AltDeath!


Honsolo56

Recommended Posts

I am trying to add an AltDeath for the imp but don't know how. Any help is appreciated, thanks! 

The second death state specifically.

 

ACTOR DoomImpII replaces DoomImp
{
  Health 60
  Radius 20
  Height 56
  Mass 100
  Speed 8
  PainChance 200
  Monster
  +FLOORCLIP
  SeeSound "imp/sight"
  PainSound "imp/pain"
  DeathSound "imp/death"
  ActiveSound "imp/active"
  HitObituary "$OB_IMPHIT"
  Obituary "$OB_IMP"
  States
  {
  Spawn:
    TROO AB 10 A_Look
    Loop
  See:
    TROO AABBCCDD 3 A_Chase
    Loop
  Melee:
  Missile:
    TROO EF 8 A_FaceTarget
    TROO G 6 A_TroopAttack
    Goto See
  Pain:
    TROO H 2
    TROO H 2 A_Pain
    Goto See
  Death:
    TROO I 8
    TROO J 8 A_Scream
    TROO K 6
    TROO L 6 A_NoBlocking
    TROO M -1
    Stop
  Death:
    TRO2 G 8
    TRO2 H 8 A_Scream
    TRO2 IJ 8
    TRO2 K 5 A_Fall
    TRO2 L 10
    TRO2 M -1
    Stop
  XDeath:
    TROO N 5
    TROO O 5 A_XScream
    TROO P 5
    TROO Q 5 A_NoBlocking
    TROO RST 5
    TROO U -1
    Stop
  Raise:
    TROO ML 8
    TROO KJI 6
    Goto See
  }
}
 

Share this post


Link to post

If I were you, I would add an A_RandomJump or A_Jump state in the first death state to give the actor a probability of making a random alternative Death animation.

 

I see you're using Decorate, so try with A_Jump, it is even better because you can choose how likely is the monster to show that alt death animation, avoiding ambiguous issues with the animation, so it just feels natural, and random.

Share this post


Link to post
Just now, SynarchyBattleDoge said:

If I were you, I would add an A_RandomJump or A_Jump state in the first death state to give the actor a probability of making a random alternative Death animation.

 

I see you're using Decorate, so try with A_Jump, it is even better because you can choose how likely is the monster to show that alt death animation, avoiding ambiguous issues with the animation, so it just feels natural, and random.

How do I do that? Like as in where do I put it?

Share this post


Link to post
Just now, Honsolo56 said:

How do I do that? Like as in where do I put it?

As I've said, in the first death state.

 

First, change second death state into death2 at least, that will make this easier.

 

Then, before the state TROO I 8, add another one exactly the same, but with 0 ticks. Then add A_RandomJump, or A_Jump.

 

Personally, I have never used A_Jump, but the A_RandomJump have some parameters that allow me to put Death2 state as the state to jump, and then, the probability.

 

I recommend you using A_Jump, so that's your job, as I don't understand how Jump works.

Share this post


Link to post
14 minutes ago, SynarchyBattleDoge said:

As I've said, in the first death state.

 

First, change second death state into death2 at least, that will make this easier.

 

Then, before the state TROO I 8, add another one exactly the same, but with 0 ticks. Then add A_RandomJump, or A_Jump.

 

Personally, I have never used A_Jump, but the A_RandomJump have some parameters that allow me to put Death2 state as the state to jump, and then, the probability.

 

I recommend you using A_Jump, so that's your job, as I don't understand how Jump works.

That worked! Thanks for the help!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...