It seems that missiles with the CEILINGHUGGER flag will get stuck on floor slopes in general and never despawn.
Here's the DECORATE code:
Code: Select all
Actor Pistol_02 : Pistol
{
Weapon.SlotNumber 2
Weapon.AmmoUse 0
States
{
Fire:
PISG A 3 A_SpawnItemEx ("CeilingHugger", random(-64, 64), random(-64, 64), 0, 0, 0, 0, 0, 0, 0)
PISG A 0 A_ReFire
Goto Ready
AltFire:
PISG A 3 A_SpawnItemEx ("FloorHugger", 0, 0, 0, 1, 0, 1, 0, 0, 0)
PISG A 0 A_ReFire
Goto Ready
}
}
Actor CeilingHugger
{
Radius 6
Height 8
Speed 10
Damage 3
Mass 10
Gravity 12
+MISSILE
+CEILINGHUGGER
States
{
Spawn:
BAL1 AB 4 Bright
Loop
Death:
BAL1 CDE 6 Bright
Stop
}
}
Actor FloorHugger
{
Radius 6
Height 8
Speed 10
Damage 3
Mass 10
Gravity 12
+MISSILE
+FLOORHUGGER
States
{
Spawn:
BAL2 AB 4 Bright
Loop
Death:
BAL2 CDE 6 Bright
Stop
}
}
Load up the wad and run on the sloped floor and fire the pistol. The projectiles will fall on the floor and remain there.