On setting up a model to replace an actor that I had forgotten was translucent, I got a crash.
Spoiler: ActorCode: Select all
ACTOR Landmine 21016 { Health 200 Radius 20 Height 8 Speed 0 PainChance 0 Mass 1000 RENDERSTYLE TRANSLUCENT ALPHA 0.50 +FLOORCLIP +NOBLOOD +NORADIUSDMG +SHOOTABLE +SOLID DeathSound "wep/rckt" Obituary "%o stood on a mine." States { Spawn: MINE A 2 A_Look Loop See: MINE A 2 A_Chase Loop Melee: MINE A 10 A_FaceTarget MINE A 15 A_PlaySound ("beach/minefire") Death: MINE B 2 BRIGHT A_SetTranslucent(0.5, 1) MINE B 0 A_CustomMissile("Shrapnel3",17,0,15+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,35+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,55+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,75+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,95+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,115+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,135+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,155+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,175+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,195+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,215+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,235+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-15+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-35+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-55+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-75+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-95+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-115+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-135+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-155+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-175+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-195+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-215+Random(-10,10), 2, random(40, 85)) MINE B 0 A_CustomMissile("Shrapnel3",17,0,-235+Random(-10,10), 2, random(40, 85)) MINE B 3 BRIGHT A_Scream MINE C 5 BRIGHT A_Explode MINE D 5 BRIGHT MINE E 5 BRIGHT A_Fall MINE F 5 BRIGHT MINE G 3 BRIGHT A_SetTranslucent(0.5, 0) MINE G 2 A_CustomMissile ("Smokey2", 8, 0, 0) MINE H 5 MINE I 5 Stop } }
Spoiler: MODELDEFCommenting out the translucancy properties for the actor allows the model to work without a crash.Code: Select all
Model Landmine { Path "Models" Model 0 "mine.md2" Skin 0 "mine.png" Scale 1.0 1.0 1.0 Frame MINE A 0 "frame01" }