This page is incomplete! You can contribute information using 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

FieldTypeComments
flagsbitfield
FlagMaskComments
unused0x1
trailing edge shapeenum
OptionValueComments
flat0x0
concave triangular0x1
convex triangular0x2
trapezoid short top0x3
trapezoid short bottom0x4
trailing edge shape offsetint16
  • Unit: vertices
attached edge shapeenum
OptionValueComments
flat0x0
concave triangular0x1
widthint16
  • Unit: vertices
heightint16
  • Unit: vertices
cell widthfloat
  • Unit: world units
cell heightfloat
  • Unit: world units
red flag shaderTagDependency: shader
physicsTagDependency: point_physics
wind noisefloat
  • Unit: world units per second
blue flag shaderTagDependency: shader
attachment pointsBlock
  • HEK max count: 4
FieldTypeComments
height to next attachmentint16
  • Unit: vertices
marker nameTagString

Acknowledgements

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

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