Classes:HornRodFX2

From ZDoom Wiki

Jump to: navigation, search
Hellstaff projectile
Actor type Explosive Game
DoomEd Number None Class Name HornRodFX2

Classes: HornRodFX2

The large, rain-creating projectile from the powered-up hellstaff. On a direct impact, D'Sparil has a 37.5% chance of avoiding any damage and attempting teleportation; the damage is avoided even if the attempted teleportation fails. The native action A_AddPlayerRain uses one RainTracker item to keep track of previous rains created by the same player; the item contains two pointers to rains and will terminate the oldest of the two whenever a third is created. The native action A_SkullRodStorm decreases its health by one every time it is called and removes the projectile if its health reaches 0 or if the player who fird it left the game. As long as it is not destroyed, it randomly spawns a RainPillar which deals damage.

DECORATE definition

ACTOR HornRodFX2 native
{
  Health 140
  Radius 12
  Height 8
  Speed 22
  Damage 3
  Projectile
  RenderStyle Add
  SeeSound "weapons/hornrodpowshoot"
  DeathSound "weapons/hornrodpowhit"
  
  action native A_AddPlayerRain();
  action native A_HideInCeiling();
  action native A_SkullRodStorm();
  
  States
  {
  Spawn:
    FX00 C 3 BRIGHT
    FX00 D 3 BRIGHT A_SeekerMissile(10, 30)
    FX00 E 3 BRIGHT
    FX00 F 3 BRIGHT A_SeekerMissile(10, 30)
    Loop
  Death:
    FX00 H 5 BRIGHT A_AddPlayerRain
    FX00 I 5 BRIGHT
    FX00 J 4 BRIGHT
    FX00 KLM 3 BRIGHT
    FX00 G 1 A_HideInCeiling
    FX00 G 1 A_SkullRodStorm
    Wait
  }
}
Personal tools