flag

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

A 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. As they make use of point_physics, flags are affected by wind.

Structure and fields #

Field Type Comments
flags bitfield(32)
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 i16 (vertices)
attached edge shape enum
Option Value Comments
flat 0x0
concave triangular 0x1
pad(2)
width i16 (vertices)
height i16 (vertices)
cell width f32 (world units)
cell height f32 (world units)
wind noise f32 (world units per second)
pad(8)
attachment points Block?
Field Type Comments
height to next attachment i16 (vertices)
pad(2)
pad(16)
marker name char[32]

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)