Jump to content
  • 0

Making an enemy summon more enemies?


Gianluco

Question

I want an enemy to summon 3 random enemies (possibly from a list or something like that) around it. Basically like D'sparil's second form in Heretic, but with random enemies

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

You can make the enemy shoot cubes like the ones the Icon of Sin shoots using DECORATE:

example:

Actor CubeSpawner (or any name you want)
{
  Radius 5
  Height 5
  Speed 12
  Projectile
  +ThruGhost
  -NoGravity
  +TELESTOMP
  +LowGravity
  Seesound "weapons/smlbrn"
  DeathSound "vile/firecrkl"   
  States
  {
  Spawn:
    BOSF AABBCCDD 1 Bright A_SpawnItemEx("BarbTrail",0,0,0,0,0,0,0,128)
    Loop
  Death:
    TNT1 A 0 A_jump (128,"Death2")
    TNT1 A 0 A_jump (128,"Death3")
    TNT1 A 0 A_jump (128,"Death4")
    TNT1 A 0 A_jump (128,"Death5")
   Death2:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("DoomImp",0,0)
    FIRE CDEFGH 3 Bright
    Stop
    Death3:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("Demon",0,0)
    FIRE CDEFGH 3 Bright
    Stop
    Death4:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("Hellknight",0,0)
    FIRE CDEFGH 3 Bright
    Stop
    Death5:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("Cacodemon",0,0)
    FIRE CDEFGH 3 Bright
    Stop

  }
}

 

Also if you want to make the enemy only shoot 3 cubes you can do this:

 

    MissileX:
            XXXX A 5 A_FaceTarget
            XXXX A 0 A_CustomMissile("CubeSpawner",65, 10, 0)
            XXXX A 5 A_FaceTarget
            XXXX A 0 A_Custommissile("CubeSpawner",65, 10, 20)
            XXXX A 5 A_FaceTarget
            XXXX A 0 A_CustomMissile("CubeSpawner",65, 10, -20)

 

(change the values to fit the enemy you are editing)

Share this post


Link to post
  • 0
7 hours ago, Gaargod said:

You can make the enemy shoot cubes like the ones the Icon of Sin shoots using DECORATE:

example:

Actor CubeSpawner (or any name you want)
{
  Radius 5
  Height 5
  Speed 12
  Projectile
  +ThruGhost
  -NoGravity
  +TELESTOMP
  +LowGravity
  Seesound "weapons/smlbrn"
  DeathSound "vile/firecrkl"   
  States
  {
  Spawn:
    BOSF AABBCCDD 1 Bright A_SpawnItemEx("BarbTrail",0,0,0,0,0,0,0,128)
    Loop
  Death:
    TNT1 A 0 A_jump (128,"Death2")
    TNT1 A 0 A_jump (128,"Death3")
    TNT1 A 0 A_jump (128,"Death4")
    TNT1 A 0 A_jump (128,"Death5")
   Death2:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("DoomImp",0,0)
    FIRE CDEFGH 3 Bright
    Stop
    Death3:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("Demon",0,0)
    FIRE CDEFGH 3 Bright
    Stop
    Death4:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("Hellknight",0,0)
    FIRE CDEFGH 3 Bright
    Stop
    Death5:
    FIRE A 3 Bright
    FIRE B 3 Bright A_SpawnItem("Cacodemon",0,0)
    FIRE CDEFGH 3 Bright
    Stop

  }
}

 

Also if you want to make the enemy only shoot 3 cubes you can do this:

 

    MissileX:
            XXXX A 5 A_FaceTarget
            XXXX A 0 A_CustomMissile("CubeSpawner",65, 10, 0)
            XXXX A 5 A_FaceTarget
            XXXX A 0 A_Custommissile("CubeSpawner",65, 10, 20)
            XXXX A 5 A_FaceTarget
            XXXX A 0 A_CustomMissile("CubeSpawner",65, 10, -20)

 

(change the values to fit the enemy you are editing)

It works and it's cool

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