Jump to content
  • 0

doom demon wad, how do get it ot summon another demon


curtiscat2001

Question

hello, im trying to figure out a way to make a demon wich summons other demons, does anyone know what decorate code i could use to make it work? thankyou

 

edit: got it to work!

Edited by curtiscat2001

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 0

You can go to the simplest, using the Pain Elemental code is easy and simple, but if you want something more complex, you can do a projectile who spawns a monster, this is for example a plasma ball that stops after a few moments and spawn a Imp:

Spoiler

ACTOR PlasmaBall
{
  Radius 13
  Height 8
  Speed 25
  Damage 5
  Projectile
  +RANDOMIZE
  RenderStyle Add
  Alpha 0.75
  SeeSound "weapons/plasmaf"
  DeathSound "weapons/plasmax"
  Obituary "%o was melted by %k's plasma gun."
  States
  {
  Spawn:
    PLSS ABABABABAB 6 Bright //After a while, it stops and move to the death state

    PLSS A 0 A_Stop
  Death:

    PLSE A 0 Bright A_SpawnItem("DoomImp",0,0)
    PLSE ABCDE 4 Bright
    Stop
  }
}

 

Share this post


Link to post
  • 0
6 hours ago, Gaia74 said:

You can go to the simplest, using the Pain Elemental code is easy and simple

 


Curious,

Can you copy out pieces of the Pain Elemental code and adapt them into an existing thing's DECORATE or do you need to make a completely new DECORATE and then inherit from the Pain Elemental?

Share this post


Link to post
  • 0
2 hours ago, Doom-X-Machina said:


Curious,

Can you copy out pieces of the Pain Elemental code and adapt them into an existing thing's DECORATE or do you need to make a completely new DECORATE and then inherit from the Pain Elemental?

im not particularly sure how the pain elemental does it, theres an A_PAINATTACK actor, though it seems to only spawn lost souls, but mabie im missing something? ill have to experiment

Share this post


Link to post
  • 0
8 hours ago, Gaia74 said:

You can go to the simplest, using the Pain Elemental code is easy and simple, but if you want something more complex, you can do a projectile who spawns a monster, this is for example a plasma ball that stops after a few moments and spawn a Imp:

  Hide contents

ACTOR PlasmaBall
{
  Radius 13
  Height 8
  Speed 25
  Damage 5
  Projectile
  +RANDOMIZE
  RenderStyle Add
  Alpha 0.75
  SeeSound "weapons/plasmaf"
  DeathSound "weapons/plasmax"
  Obituary "%o was melted by %k's plasma gun."
  States
  {
  Spawn:
    PLSS ABABABABAB 6 Bright //After a while, it stops and move to the death state

    PLSS A 0 A_Stop
  Death:

    PLSE A 0 Bright A_SpawnItem("DoomImp",0,0)
    PLSE ABCDE 4 Bright
    Stop
  }
}

 

oh cool! ill test it out and see if i can make it work with the demon im creating

 

edit:doesent seem to do anything, the plasma spawns but no demon spawns after

Edited by curtiscat2001

Share this post


Link to post
  • 0
5 hours ago, Doom-X-Machina said:


Curious,

Can you copy out pieces of the Pain Elemental code and adapt them into an existing thing's DECORATE or do you need to make a completely new DECORATE and then inherit from the Pain Elemental?

 You can edit the A_PainAttack https://zdoom.org/wiki/A_PainAttack, so yeah, you can copy out the action just like this:

 

A_PainAttack("Nameofyourcustommonster")

 

3 hours ago, curtiscat2001 said:

oh cool! ill test it out and see if i can make it work with the demon im creating

 

edit:doesent seem to do anything, the plasma spawns but no demon spawns after

Make sure the projectile when disappear has room to spawn the monster

 

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
Answer this question...

×   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...