Difference between revisions of "Hud:meter:unit"

From Battlepedia
Jump to navigationJump to search
m (Dark moved page Unit (HUD) to Hud:meter:unit over redirect: revert)
Line 6: Line 6:
 
! Offset !! Type !! Description
 
! Offset !! Type !! Description
 
|-
 
|-
| 0x10 || [[Vector3]] || '''Position'''
+
| 0x4C || [[AssetID]] ([[MODL|Model]]) || '''model[0].id''' - Empty model ID. Needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
 
|-
 
|-
| 0x1C || [[Vector3]] || '''Size''' - Only the X is used...?
+
| 0x50 || [[Vector3]] || '''model[0].loc''' - Offset position of the empty units.
 
|-
 
|-
| 0x28 || float[5] || '''Unknown'''
+
| 0x5C || [[Vector3]] || '''model[0].size''' - Scale of the empty units. (Multiplied by '''size''' in HUD header)
 
|-
 
|-
| 0x3C || [[AssetID]] || '''Unknown'''
+
| 0x68 || [[AssetID]] ([[MODL|Model]]) || '''model[1].id''' - Full model ID. Needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
 
|-
 
|-
| 0x40 || [[Vector3]] || '''Unknown'''
+
| 0x6C || [[Vector3]] || '''model[1].loc''' - Offset position of the full units.
 
|-
 
|-
| 0x4C || [[AssetID]] ([[MODL|Model]]) || '''Empty Model''' - It needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
+
| 0x78 || [[Vector3]] || '''model[1].size''' - Scale of the full units. (Multiplied by '''size''' in HUD header)
 
|-
 
|-
| 0x50 || [[Vector3]] || '''Empty Offset''' - Offset position of the empty units.
+
| 0x84 || [[Vector3]] || '''offset''' - How far away each unit is from each other.
 
|-
 
|-
| 0x5C || [[Vector3]] || '''Empty Scale''' - Scale of the empty units. (Multiplied by Size)
+
| 0x90 || uint || '''fill_forward''' - Whether to fill in the meter forwards or backwards.
|-
 
| 0x68 || [[AssetID]] ([[MODL|Model]]) || '''Full Model''' - It needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
 
|-
 
| 0x6C || [[Vector3]] || '''Full Offset''' - Offset position of the full units.
 
|-
 
| 0x78 || [[Vector3]] || '''Full Scale''' - Scale of the full units. (Multiplied by Size)
 
|-
 
| 0x84 || [[Vector3]] || '''Spacing''' - How far away each unit is from each other.
 
|-
 
| 0x90 || int || '''Direction''' - Which direction to fill in the meter.
 
 
* 0 - Right to Left
 
* 0 - Right to Left
 
* 1 - Left to Right (default)
 
* 1 - Left to Right (default)

Revision as of 06:07, 12 August 2019

Format

The X and Y coordinates of the Vector3s are measured in screen coordinates (0 to 1). The Z coordinate is distance from the camera which is only useful for Z-buffering (there is no visible size difference).

Offset Type Description
0x4C AssetID (Model) model[0].id - Empty model ID. Needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
0x50 Vector3 model[0].loc - Offset position of the empty units.
0x5C Vector3 model[0].size - Scale of the empty units. (Multiplied by size in HUD header)
0x68 AssetID (Model) model[1].id - Full model ID. Needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
0x6C Vector3 model[1].loc - Offset position of the full units.
0x78 Vector3 model[1].size - Scale of the full units. (Multiplied by size in HUD header)
0x84 Vector3 offset - How far away each unit is from each other.
0x90 uint fill_forward - Whether to fill in the meter forwards or backwards.
  • 0 - Right to Left
  • 1 - Left to Right (default)