Example
Code: Select all
actor W_Drop
{
height 4
radius 2
mass 1
+MISSILE
renderstyle Translucent
alpha 0.75
states
{
Spawn:
DROP A 1
loop
Death:
DROP A 1 A_FadeOut(0.1)
loop
}
}
actor W_Fountain : SwitchableDecoration 20000
{
+NOGRAVITY +NOCLIP +NOBLOCKMAP +NOSECTOR
states
{
Spawn:
Active:
TNT1 A 0
TNT1 A 1 SpawnProjectile(0, "W_Drop", random(0, 255), random(0, 50), random(0, 25), 1, 0)
loop
Inactive:
TNT1 A 1
loop
}
}
Code: Select all
actor W_Drop1
{
height 4
radius 2
mass 1
speed 12
+MISSILE
renderstyle Translucent
alpha 0.75
states
{
Spawn:
DROP A 1
loop
Death:
DROP A 1 A_FadeOut(0.1)
loop
}
}
actor W_Drop2: W_Drop1
{
speed 11
}
actor W_Drop3: W_Drop1
{
speed 10
}
actor W_Drop4: W_Drop1
{
speed 9
}
actor W_Fountain : SwitchableDecoration 20000
{
+NOGRAVITY +NOCLIP +NOBLOCKMAP +NOSECTOR
states
{
Spawn:
Active:
TNT1 A 0
TNT1 A 0 A_Jump(192, 2)
TNT1 A 1 A_CustomMissile("W_Drop1", 0, 0, random(0, 359), 2, random(65, 115)
loop
TNT1 A 0 A_Jump(128, 2)
TNT1 A 1 A_CustomMissile("W_Drop2", 0, 0, random(0, 359), 2, random(65, 115)
loop
TNT1 A 0 A_Jump(128, 2)
TNT1 A 1 A_CustomMissile("W_Drop3", 0, 0, random(0, 359), 2, random(65, 115)
loop
TNT1 A 1 A_CustomMissile("W_Drop4", 0, 0, random(0, 359), 2, random(65, 115)
loop
Inactive:
TNT1 A 1
loop
}
}
[edit]Argh1! Spelling...