Now, I have two problems...
1) I'm not getting a satisfying full-on explosion sound. Merely something that sounds like puffing air into the mic. It's not blowing up like my missile explosions can.
2) I'm showering the grenade I threw with tracer shots, and it absolutely will not blow up.
Here's the code. What did I do wrong?
Code: Select all
// Projectile
actor grenade_frag_p {
Tag "grenade_frag_p"
Damage 0
Health 1
Height 4
Radius 2
Speed 35
Mass 5
BounceFactor 0.3
WallBounceFactor 0.25
BounceCount 3
+SHOOTABLE
+NOBLOOD
+DONTGIB
+NOICEDEATH
+FORCEXYBILLBOARD
+VULNERABLE
-NOGRAVITY
-NOBLOCKMAP
States {
Spawn:
BON2 A 175
Goto Death
Death:
TNT1 A 0 A_Quake(5, 25, 0, 400)
TNT1 A 1 Bright A_SpawnItemEx("GrenadeExplosion")
Stop
}
}
Code: Select all
/*
Effect - Grenade Explosion
The effect that happens when a grenade explodes.
*/
actor GrenadeExplosion {
+NOBLOCKMAP
+ALLOWPARTICLES
+RANDOMIZE
+NOBLOOD
+NOGRAVITY
RenderStyle Translucent
Alpha 0.5
VSpeed 15
Mass 3
States {
Spawn:
BEXP A 2 Bright A_PlaySound("weapons/pistol")
BEXP B 2 Bright A_SetScale(1.2, 1.2)
BEXP C 4 Bright
BEXP D 1 Bright A_SetScale(1.2, 1.2)
BEXP D 1 Bright
BEXP D 1 Bright
BEXP D 1 Bright A_SetScale(1.4, 1.4)
BEXP D 1 Bright
BEXP D 1 Bright A_FadeOut(0.25)
BEXP D 1 Bright A_SetScale(1.6, 1.6)
BEXP D 1 Bright
BEXP E 1 Bright A_FadeOut(0.05)
BEXP E 1 Bright A_SetScale(1.8, 1.8)
BEXP E 1 Bright
BEXP E 1 Bright A_FadeOut(0.05)
BEXP E 1 Bright A_SetScale(2.0, 2.0)
BEXP E 1 Bright
BEXP E 1 Bright A_FadeOut(0.05)
BEXP E 1 Bright A_FadeOut(0.05)
BEXP E 1 Bright A_FadeOut(0.05)
Stop
}
}