Creating non-interactive decorations

From ZDoom Wiki

Jump to: navigation, search

Non-interactive decorations are the simplest form of actor that can be defined. They usually consist of a single sprite with one frame or a looping animation. Therefore they only define a Spawn state which defines the entire visual appearance.

You may set any property and flag as needed.

This is an example of a simple decoration:

actor CEye 10242
{
  height 40
  radius 20
  +SOLID
  states
  {
  Spawn:
    HAW6 A 10
    HAW6 B 10 bright
    HAW6 C 10
    loop
  }
}

Simple decorations can use code pointers just as any other actor. This is an example of a decoration that uses actions:

actor Pulsar 10239 
{
  painsound "pulsar/pulse"
  +NODAMAGETHRUST
  states
  {
  Spawn:
    HAX7 A 15 bright
    HAX7 B 15 bright A_Pain
    HAX7 C 20 bright A_Explode
    loop
  }
}
Personal tools