This page needs help! Please submit any missing information via GitHub issues or pull requests.

The flag tag describes the behaviour and appearance of a cloth-like material. As a type of widget, flags can be attached to objects like weapons using markers. Because they make use of point_physics, flags are affected by wind.

Structure and fields

Field Type Comments
flags bitfield
Flag Mask Comments
unused 0x1
trailing edge shape enum
Option Value Comments
flat 0x0
concave triangular 0x1
convex triangular 0x2
trapezoid short top 0x3
trapezoid short bottom 0x4
trailing edge shape offset int16
  • Unit: vertices
attached edge shape enum
Option Value Comments
flat 0x0
concave triangular 0x1
width int16
  • Unit: vertices
height int16
  • Unit: vertices
cell width float
  • Unit: world units
cell height float
  • Unit: world units
red flag shader

TagDependency: shader

physics

TagDependency: point_physics

wind noise float
  • Unit: world units per second
blue flag shader

TagDependency: shader

attachment points Block
  • HEK max count: 4
Field Type Comments
height to next attachment int16
  • Unit: vertices
marker name TagString
Field Type Comments
buffer char[32]

Null-terminated string in 32-char buffer.

Acknowledgements

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

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