Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
curtiscat2001

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

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

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
×