riki2321 Posted December 11, 2015 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??? 0 Share this post Link to post
Linguica Posted December 11, 2015 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?? 0 Share this post Link to post
riki2321 Posted December 11, 2015 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? 0 Share this post Link to post
Linguica Posted December 11, 2015 I'm not much of a ZDoom scripter but approx. 10 seconds of searching got me to http://zdoom.org/wiki/A_SpawnItem or http://zdoom.org/wiki/A_SpawnItemEx which looks like the right one maybe? 0 Share this post Link to post
riki2321 Posted December 11, 2015 Linguica said:I'm not much of a ZDoom scripter but approx. 10 seconds of searching got me to http://zdoom.org/wiki/A_SpawnItem which looks like the right one maybe? thanks linguica that works you're awesome 0 Share this post Link to post