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

WAD crashing on gzdoom (3000 enemies in 1 second)

Recommended Posts

example, when i made an enemy that shouts allahu akbar and shoots missiles which bounce, when that enemy is killed, it clones into 6 mini versions of him. which when touched exploded. when i was in map02 (average enemies = 250) the enemies in 1 second went to 3855 by no reason. any one guys know why this happens? and when the enemy that duplicates dies, explodes. making its 6 parts sometimes explode making the game crash.

im sorry if you didnt understand

tl;dr = an enemy that explodes duplicates into 6 mini versions of him, when the enemy explodes, sometimes the mini versions explode making the game crash.

actor johnromero 12803
{
  health 50
  mass 9999999999
  height 40
  radius 20
  scale 0.7
  painchance 255
  painsound "fuck"
  deathsound "fuck"
  meleedamage 1
  seesound "fuck"
  activesound "no"
  obituary "a john romero got mad at %o and killed him!"
  speed 7
  MONSTER
  +SOLID
  +SHOOTABLE
  +NOICEDEATH
  states
  {
  Spawn:
    BBRN A 5 a_look
    loop
  See:
    BBRN A 1 A_Chase
    loop
  Melee:
    BBRN A 5 A_MeleeAttack
    goto See
  Missile:
    BBRN B 8 A_CustomMissile("Rocket",48,0)
  Pain:
    BBRN B 8 A_pain
    goto See
  Death:
    MISL B 8 Bright A_Explode
    MISL C 6 Bright
    MISL D 1 Bright
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    MISL D 1 A_CustomMissile("miniromero",48,0)
    stop
  }
}

actor miniromero 12856
{
  health 1
  mass 9999999999
  height 5
  radius 3
  scale 0.1
  painchance 255
  painsound "fuck"
  deathsound "fuck"
  meleedamage 1
  MeleeSound "ohshit"
  seesound "gorgiass"
  activesound "gorgiass"
  obituary "allahu akbar!!"
  speed 28
  MONSTER
  +SOLID
  +SHOOTABLE
  +NOICEDEATH
  states
  {
  Spawn:
    BBRN A 5 a_look
    loop
  See:
    BBRN A 1 A_Chase
    loop
  Melee:
    BBRN A 400 A_MeleeAttack
    BBRN A 1 A_Explode
    goto See
  Pain:
    BBRN B 8 A_pain
    goto See
  Death:
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 0 A_CustomMissile("MyExplosion",0,0)
    MISL B 8 Bright A_Explode
    MISL C 6 Bright
    MISL D 4 Bright
    stop
  }
}

actor MyExplosion {
  +NOGRAVITY                                // uh whats this!! COOL
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_PlaySound("weapons/rocklx")
    MISL BC 10 Bright
    MISL D 10 Bright A_Explode              // k this is AN EXPLOSION!!
    Stop
  }
}
how to fix the crash???

Share this post


Link to post

First off, I'm not sure why you're using A_CustomMissile to spawn mini romeros that apparently are not intended to be projectiles. Secondly I count 9 mini romeros being spawned, and then each of those spawns 8 explosions, for a total of 72 new objects being spawned in a short time. Hmm I wonder how this could possibly add up??

Share this post


Link to post
Linguica said:

First off, I'm not sure why you're using A_CustomMissile to spawn mini romeros that apparently are not intended to be projectiles. Secondly I count 9 mini romeros being spawned, and then each of those spawns 8 explosions, for a total of 72 new objects being spawned in a short time. Hmm I wonder how this could possibly add up??

A_CustomMissile, what should i replace it with?. Oh, i putted 3 romeros now and there's no crash, What do i replace that with?

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
×