Classes:Leaf1

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.
Leaf1
Actor type SFX Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name Leaf1


Classes: ActorLeaf1
 →Leaf2
This actor needs a description.

DECORATE definition

ACTOR Leaf1
{
  Radius 2
  Height 4
  Gravity 0.125
  +NOBLOCKMAP
  +MISSILE
  +NOTELEPORT
  +DONTSPLASH
  +NOICEDEATH

  action native A_LeafThrust();
  action native A_LeafCheck();

  States
  {
  Spawn:
    LEF1 ABC 4
    LEF1 D 4 A_LeafThrust
    LEF1 EFG 4
    LEF1 H 4 A_LeafThrust
    LEF1 IAB 4
    LEF1 C 4 A_LeafThrust
    LEF1 DEF 4
    LEF1 G 4 A_LeafThrust
    LEF1 HI 4
    Stop
  Death:
    LEF3 D 10 A_LeafCheck
    Wait
  }
}