HUD Message

From Burnout Wiki
HudMessage
aka GuiHudMessage


Various HUD messages.
Resource names HUDMESSAGES.HM
Type ID 0x2C
Category Generic
Memory
distribution
Main Memory only
Imports Unknown
Imported by Unknown
Editor
available?
No

HUD messages appear when triggered by in-game actions, such as getting taken down or smashing a billboard. Their style varies depending on whether the action that triggered the message was positive or negative. They can also be displayed above the boost bar if in an event.

The only HUD message resource is found in HUDMESSAGES.HM.

Structures

CgsGui::GuiHudMessageResource

32-bit

Offset Length Type Name Description Comments
0x0 0x4 GuiHudMessageData** mppHudMessageData HUD messages
0x4 0x4 int32_t miSizeOfHudMessageResource Resource size
0x8 0x4 int32_t miHudMessageCount Number of HUD messages

64-bit

Offset Length Type Name Description Comments
0x0 0x8 GuiHudMessageData** mppHudMessageData HUD messages
0x8 0x4 int32_t miSizeOfHudMessageResource Resource size
0xC 0x4 int32_t miHudMessageCount Number of HUD messages

CgsGui::GuiHudMessageData

Offset Length Type Name Description Comments
0x0 0xC0 char[3][64] maacStringId
0xC0 0x20 char[32] macMessageStyle
0xE0 0x20 char[32] macDefaultIcon
0x100 0xD char[13] macMessageId
0x10D 0x3 Padding
0x110 0x8 CgsID mMessageIdHash
0x118 0x4 uint32_t muAvailabilityBitSet See availability flags
0x11C 0x4 float32_t mfDuration Time the message displays In seconds
0x120 0x4 float32_t mfTimeToWait Wait before displaying message
0x124 0x4 int32_t miPriority Percent priority (0-100)
0x128 0x4 int32_t miForceRemoveThreshold Priority-related? (0-100)
0x12C 0x4 HudMessageGroup meMessageGroup
0x130 0xC int32_t[3] maiParamCount Num params used
0x13C 0x30 HudMessageParamTypes[3][4] maaeParams
0x16C 0x4 Padding

Enumerations

CgsGui::HudMessageAvailableFields

Name Value Comments
E_HUDMESSAGEAVAILABLEFIELDS_RACE 0x1 Available in Race events
E_HUDMESSAGEAVAILABLEFIELDS_ROADRAGE 0x2 Available in Road Rage events
E_HUDMESSAGEAVAILABLEFIELDS_SHOWTIME 0x4 Available in Showtime
E_HUDMESSAGEAVAILABLEFIELDS_OFFLINE 0x8 Available offline
E_HUDMESSAGEAVAILABLEFIELDS_ONLINE 0x10 Available online
E_HUDMESSAGEAVAILABLEFIELDS_INCRASH 0x20 Available while crashed

CgsGui::HudMessageGroup

Name Value Comments
E_HUDMESSAGEGROUP_ALL 0
E_HUDMESSAGEGROUP_ONLINE_LIVEREVENGE 1
E_HUDMESSAGEGROUP_ONLINE_DIRTY_TRICKS 2
E_HUDMESSAGEGROUP_INGAMEMESSAGES 3
E_HUDMESSAGEGROUP_COUNT 4

CgsGui::HudMessageParamTypes

Name Value Comments
E_HUDMESSAGEPARAMTYPES_UNUSED 0
E_HUDMESSAGEPARAMTYPES_STRING 1
E_HUDMESSAGEPARAMTYPES_INT 2
E_HUDMESSAGEPARAMTYPES_FLOAT 3
E_HUDMESSAGEPARAMTYPES_MONEY 4
E_HUDMESSAGEPARAMTYPES_TIME 5
E_HUDMESSAGEPARAMTYPES_STRINGID 6
E_HUDMESSAGEPARAMTYPES_COUNT 7