Code:
actor DestroySpear
{
PROJECTILE
Radius 6
Height 6
DamageType "Destroy"
scale 2.5
damage (18)
speed 100
States
{
Spawn:
DSPR A 1
loop
Death:
DSPR B 2 A_PlaySound("weapon/crashland")
TNT1 A 2
TNT1 A 0 A_PlaySound("misc/metdie")
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,-2,0,0,0,0,0,SXF_NOCHECKPOSITION)
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,2,0,0,0,0,0,SXF_NOCHECKPOSITION)
DSPR GHI 2
TNT1 A 0 A_PlaySound("misc/metdie")
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,-5,0,0,0,0,0,SXF_NOCHECKPOSITION)
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,5,0,0,0,0,0,SXF_NOCHECKPOSITION)
DSPR JKL 2
TNT1 A 0 A_PlaySound("misc/metdie")
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,-8,0,0,0,0,0,SXF_NOCHECKPOSITION)
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,8,0,0,0,0,0,SXF_NOCHECKPOSITION)
DSPR MNO 2
TNT1 A 0 A_PlaySound("misc/metdie")
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,-11,0,0,0,0,0,SXF_NOCHECKPOSITION)
TNT1 A 0 A_SpawnItemEx("DSpearExplosion",0,11,0,0,0,0,0,SXF_NOCHECKPOSITION)
DSPR PQRS 2
XDeath:
TNT1 A 1
stop
}
}
actor DSpearExplosion
{
PROJECTILE
+DONTBLAST
+DONTSPLASH
+NOINTERACTION
Radius 1
Height 1
DamageType "Destroy"
scale 2.5
damage (1)
speed 0
States
{
Spawn:
TNT1 A 0 A_Explode(15,96,0)
TNT1 A 1
stop
}
}