grenade_hud_interface

🚧 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
anchor enum
Option Value Comments
top left 0x0
top right 0x1
bottom left 0x2
bottom right 0x3
center 0x4
pad(2)
pad(32)
background anchor offset
Point2DInt
  • x: i16
  • y: i16
background width scale f32
  • Default value: 1.
background height scale f32
  • Default value: 1.
background scaling flags bitfield(16)
Flag Mask Comments
don't scale offset 0x1
don't scale size 0x2
use high res scale 0x4
pad(2)
pad(20)
background default color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
background flashing color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
background flash period f32
background flash delay f32
background number of flashes u16
background flash flags bitfield(16)
Flag Mask Comments
reverse default flashing colors 0x1
background flash length f32
background disabled color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
pad(4)
background sequence index Index: u16
pad(2)
background multitex overlay Block?
Field Type Comments
pad(2)
type i16
framebuffer blend function enum
Option Value Comments
alpha blend 0x0
multiply 0x1
double multiply 0x2
add 0x3
subtract 0x4
component min 0x5
component max 0x6
alpha multiply add 0x7
pad(2)
pad(32)
primary anchor enum
Option Value Comments
top left 0x0
top right 0x1
bottom left 0x2
bottom right 0x3
center 0x4
secondary anchor enum
Option Value Comments
texture 0x0
screen 0x1
tertiary anchor enum
Option Value Comments
texture 0x0
screen 0x1
zero to one blend function enum
Option Value Comments
add 0x0
subtract 0x1
multiply 0x2
multiply2x 0x3
dot 0x4
one to two blend function enum
Option Value Comments
add 0x0
subtract 0x1
multiply 0x2
multiply2x 0x3
dot 0x4
pad(2)
primary scale
Point2D
  • x: f32
  • y: f32
secondary scale
Point2D
  • x: f32
  • y: f32
tertiary scale
Point2D
  • x: f32
  • y: f32
primary offset
Point2D
  • x: f32
  • y: f32
secondary offset
Point2D
  • x: f32
  • y: f32
tertiary offset
Point2D
  • x: f32
  • y: f32
primary wrap mode enum
Option Value Comments
clamp 0x0
wrap 0x1
secondary wrap mode enum
Option Value Comments
clamp 0x0
wrap 0x1
tertiary wrap mode enum
Option Value Comments
clamp 0x0
wrap 0x1
pad(2)
pad(184)
effectors Block?
Field Type Comments
pad(64)
destination type enum
Option Value Comments
tint 0 1 0x0
horizontal offset 0x1
vertical offset 0x2
fade 0 1 0x3
destination enum
Option Value Comments
geometry offset 0x0
primary map 0x1
secondary map 0x2
tertiary map 0x3
source enum
Option Value Comments
player pitch 0x0
player pitch tangent 0x1
player yaw 0x2
weapon ammo total 0x3
weapon ammo loaded 0x4
weapon heat 0x5
explicit uses low bound 0x6
weapon zoom level 0x7
pad(2)
in bounds f32 (source units) (min & max)
out bounds f32 (pixels) (min & max)
pad(64)
tint color lower bound
ColorRGB
  • red: f32
  • green: f32
  • blue: f32
tint color upper bound
ColorRGB
  • red: f32
  • green: f32
  • blue: f32
periodic function enum
Option Value Comments
one 0x0
zero 0x1
cosine 0x2
cosine variable period 0x3
diagonal wave 0x4
diagonal wave variable period 0x5
slide 0x6
slide variable period 0x7
noise 0x8
jitter 0x9
wander 0xa
spark 0xb
pad(2)
function period f32 (seconds)
function phase f32 (seconds)
pad(32)
pad(128)
pad(4)
total grenades background anchor offset
Point2DInt
  • x: i16
  • y: i16
total grenades background width scale f32
  • Default value: 1.
total grenades background height scale f32
  • Default value: 1.
total grenades background scaling flags bitfield(16)
Flag Mask Comments
don't scale offset 0x1
don't scale size 0x2
use high res scale 0x4
pad(2)
pad(20)
total grenades background default color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
total grenades background flashing color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
total grenades background flash period f32
total grenades background flash delay f32
total grenades background number of flashes u16
total grenades background flash flags bitfield(16)
Flag Mask Comments
reverse default flashing colors 0x1
total grenades background flash length f32
total grenades background disabled color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
pad(4)
total grenades background sequence index Index: u16
pad(2)
total grenades background multitex overlay Block?
Field Type Comments
pad(2)
type i16
framebuffer blend function enum
Option Value Comments
alpha blend 0x0
multiply 0x1
double multiply 0x2
add 0x3
subtract 0x4
component min 0x5
component max 0x6
alpha multiply add 0x7
pad(2)
pad(32)
primary anchor enum
Option Value Comments
top left 0x0
top right 0x1
bottom left 0x2
bottom right 0x3
center 0x4
secondary anchor enum
Option Value Comments
texture 0x0
screen 0x1
tertiary anchor enum
Option Value Comments
texture 0x0
screen 0x1
zero to one blend function enum
Option Value Comments
add 0x0
subtract 0x1
multiply 0x2
multiply2x 0x3
dot 0x4
one to two blend function enum
Option Value Comments
add 0x0
subtract 0x1
multiply 0x2
multiply2x 0x3
dot 0x4
pad(2)
primary scale
Point2D
  • x: f32
  • y: f32
secondary scale
Point2D
  • x: f32
  • y: f32
tertiary scale
Point2D
  • x: f32
  • y: f32
primary offset
Point2D
  • x: f32
  • y: f32
secondary offset
Point2D
  • x: f32
  • y: f32
tertiary offset
Point2D
  • x: f32
  • y: f32
primary wrap mode enum
Option Value Comments
clamp 0x0
wrap 0x1
secondary wrap mode enum
Option Value Comments
clamp 0x0
wrap 0x1
tertiary wrap mode enum
Option Value Comments
clamp 0x0
wrap 0x1
pad(2)
pad(184)
effectors Block?
Field Type Comments
pad(64)
destination type enum
Option Value Comments
tint 0 1 0x0
horizontal offset 0x1
vertical offset 0x2
fade 0 1 0x3
destination enum
Option Value Comments
geometry offset 0x0
primary map 0x1
secondary map 0x2
tertiary map 0x3
source enum
Option Value Comments
player pitch 0x0
player pitch tangent 0x1
player yaw 0x2
weapon ammo total 0x3
weapon ammo loaded 0x4
weapon heat 0x5
explicit uses low bound 0x6
weapon zoom level 0x7
pad(2)
in bounds f32 (source units) (min & max)
out bounds f32 (pixels) (min & max)
pad(64)
tint color lower bound
ColorRGB
  • red: f32
  • green: f32
  • blue: f32
tint color upper bound
ColorRGB
  • red: f32
  • green: f32
  • blue: f32
periodic function enum
Option Value Comments
one 0x0
zero 0x1
cosine 0x2
cosine variable period 0x3
diagonal wave 0x4
diagonal wave variable period 0x5
slide 0x6
slide variable period 0x7
noise 0x8
jitter 0x9
wander 0xa
spark 0xb
pad(2)
function period f32 (seconds)
function phase f32 (seconds)
pad(32)
pad(128)
pad(4)
total grenades numbers anchor offset
Point2DInt
  • x: i16
  • y: i16
total grenades numbers width scale f32
  • Default value: 1.
total grenades numbers height scale f32
  • Default value: 1.
total grenades numbers scaling flags bitfield(16)
Flag Mask Comments
don't scale offset 0x1
don't scale size 0x2
use high res scale 0x4
pad(2)
pad(20)
total grenades numbers default color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
total grenades numbers flashing color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
total grenades numbers flash period f32
total grenades numbers flash delay f32
total grenades numbers number of flashes u16
total grenades numbers flash flags bitfield(16)
Flag Mask Comments
reverse default flashing colors 0x1
total grenades numbers flash length f32
total grenades numbers disabled color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
pad(4)
total grenades numbers maximum number of digits i8
total grenades numbers flags bitfield(8)
Flag Mask Comments
show leading zeros 0x1
only show when zoomed 0x2
draw a trailing m 0x4
total grenades numbers number of fractional digits i8
pad(1)
pad(12)
flash cutoff u16
pad(2)
total grenades overlays Block?
Field Type Comments
anchor offset
Point2DInt
  • x: i16
  • y: i16
width scale f32
  • Default value: 1.
height scale f32
  • Default value: 1.
scaling flags bitfield(16)
Flag Mask Comments
don't scale offset 0x1
don't scale size 0x2
use high res scale 0x4
pad(2)
pad(20)
default color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
flashing color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
flash period f32
flash delay f32
number of flashes u16
flash flags bitfield(16)
Flag Mask Comments
reverse default flashing colors 0x1
flash length f32
disabled color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
pad(4)
frame rate f32
sequence index Index: u16
type bitfield(16)
Flag Mask Comments
show on flashing 0x1
show on empty 0x2
show on default 0x4
show always 0x8
flags bitfield(32)
Flag Mask Comments
flashes when active 0x1
pad(16)
pad(40)
total grenades warning sounds Block?
Field Type Comments
latched to bitfield(32)
Flag Mask Comments
low grenade count 0x1
no grenades left 0x2
throw on no grenades 0x4
scale f32
pad(32)
pad(68)
messaging information sequence index Index: u16
messaging information width offset i16
messaging information offset from reference corner
Point2DInt
  • x: i16
  • y: i16
messaging information override icon color
ColorARGBInt
  • alpha: u8
  • red: u8
  • green: u8
  • blue: u8
messaging information frame rate i8
messaging information flags bitfield(8)
Flag Mask Comments
use text from string list instead 0x1
override default color 0x2
width offset is absolute icon width 0x4
messaging information text index Index: u16
pad(48)

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)