Classes:LittleFly

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Fly
Actor type SFX Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 112 Class Name LittleFly


Classes: LittleFly

A fly from the retail beta of Hexen which buzzes around corpses. The sprites are included with ZDoom.

DECORATE definition

ACTOR LittleFly
{
  +NOBLOCKMAP
  +NOGRAVITY
  +CANPASS
  Speed 6
  Radius 5
  Height 5
  Mass 2
  ActiveSound "FlyBuzz"

  action native A_FlySearch();
  action native A_FlyBuzz();

  States
  {
  Spawn:
    TNT1 A 20 A_FlySearch // Invisible when not flying
    Loop
  Buzz:
    AFLY ABCD 3 A_FlyBuzz
    Loop
  }
}