effect

🚧 This article is a stub. You can help expand it by submitting content in pull requests or issues in this wiki's source repo.

...

Structure and fields #

Field Type Comments
flags bitfield(32)
Flag Mask Comments
deleted when attachment deactivates 0x1
required for gameplay cannot optimize out 0x2
do not cull 0x4
loop start event Index (events)
loop stop event Index (events)
pad(32)
locations Block?
Field Type Comments
marker name char[32]
events Block?
Field Type Comments
pad(4)
skip fraction Fraction: f32
delay bounds f32 (seconds) (min & max)
duration bounds f32 (seconds) (min & max)
pad(20)
parts Block?
Field Type Comments
create in 1 enum
Option Value Comments
any environment 0x0
air only 0x1
water only 0x2
space only 0x3
create in 2 enum
Option Value Comments
either mode 0x0
violent mode only 0x1
nonviolent mode only 0x2
location Index (locations)
flags bitfield(16)
Flag Mask Comments
face down regardless of location decals 0x1
unused 0x2
make effect work 0x4
pad(12)
type class u32
  • Only set when the tag is compiled into a map cache.
pad(24)
velocity bounds f32 (world units per second) (min & max)
velocity cone angle Angle: f32
angular velocity bounds Angle: f32 (degrees per second) (min & max)
radius modifier bounds f32 (min & max)
pad(4)
a scales values bitfield(32)
Flag Mask Comments
velocity 0x1
velocity delta 0x2
velocity cone angle 0x4
angular velocity 0x8
angular velocity delta 0x10
type specific scale 0x20
b scales values bitfield(32)
Flag Mask Comments
velocity 0x1
velocity delta 0x2
velocity cone angle 0x4
angular velocity 0x8
angular velocity delta 0x10
type specific scale 0x20
particles Block?
Field Type Comments
create in 1 enum
Option Value Comments
any environment 0x0
air only 0x1
water only 0x2
space only 0x3
create in 2 enum
Option Value Comments
either mode 0x0
violent mode only 0x1
nonviolent mode only 0x2
create enum
Option Value Comments
independent of camera mode 0x0
only in first person 0x1
only in third person 0x2
in first person if possible 0x3
pad(2)
location Index (locations)
pad(2)
relative direction
Euler2D
  • yaw: f32
  • pitch: f32
relative offset
Vector3D
  • i: f32
  • j: f32
  • k: f32
relative direction vector
Vector3D (little endian?)
  • i: f32
  • j: f32
  • k: f32
  • Only set when the tag is compiled into a map cache.
pad(40)
flags bitfield(32)
Flag Mask Comments
stay attached to marker 0x1
random initial angle 0x2
tint from object color 0x4
interpolate tint as hsv 0x8
across the long hue path 0x10
distribution function enum
Option Value Comments
start 0x0
end 0x1
constant 0x2
buildup 0x3
falloff 0x4
buildup and falloff 0x5
pad(2)
count u16 (min & max)
distribution radius f32 (world units) (min & max)
pad(12)
velocity f32 (world units per second) (min & max)
velocity cone angle Angle: f32
angular velocity Angle: f32 (degrees per second) (min & max)
pad(8)
radius f32 (world units) (min & max)
pad(8)
tint lower bound
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
tint upper bound
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
pad(16)
a scales values bitfield(32)
Flag Mask Comments
velocity 0x1
velocity delta 0x2
velocity cone angle 0x4
angular velocity 0x8
angular velocity delta 0x10
count 0x20
count delta 0x40
distribution radius 0x80
distribution radius delta 0x100
particle radius 0x200
particle radius delta 0x400
tint 0x800
b scales values bitfield(32)
Flag Mask Comments
velocity 0x1
velocity delta 0x2
velocity cone angle 0x4
angular velocity 0x8
angular velocity delta 0x10
count 0x20
count delta 0x40
distribution radius 0x80
distribution radius delta 0x100
particle radius 0x200
particle radius delta 0x400
tint 0x800

This information was partially generated using Invader tag definitions.

Acknowledgements

Thanks to the following individuals for their research or contributions to this topic:

  • Kavawuvi (Invader tag definitions)
  • MosesOfEgypt (Tag structure research)