Blueprint Name: W_PlayerHud
The W_PlayerHud
Blueprint is a User Interface widget designed to visually represent the player's health and radiation status in the game. It manages and updates progress bars corresponding to the player's health, character radiation levels, and environmental radiation levels. The Blueprint ensures smooth interpolation of radiation values to provide a visually appealing and responsive HUD experience.
Variable Name | Type | Purpose |
---|---|---|
HealthComp | Object | Holds a reference to the player's health component, used to retrieve current health data. |
RadComp | Object | Holds a reference to the player's radiation component, used to retrieve radiation data. |
CurrentRawCharRadVal | Float | Stores the raw (uninterpolated) character radiation value mapped to a normalized range. |
CurrentInterpCharRadVal | Float | Stores the interpolated character radiation value for smooth HUD updates. |
RadInterpTimer | TimerHandle | Intended to manage timing for character radiation interpolation updates. |
EnvRadInterpTimer | TimerHandle | Intended to manage timing for environmental radiation interpolation updates. |
CurrentRawEnvRadVal | Float | Stores the raw (uninterpolated) environmental radiation value mapped to a normalized range. |
CurrentInterpEnvRadVal | Float | Stores the interpolated environmental radiation value for smooth HUD updates. |
Get Component by Class
.HealthComp
variable.RadComp
) though this is implied from usage.New
(float): Current health value.Max
(float): Maximum health value.New
by Max
.