18 protected ref WidgetFadeTimer
m_FadeTimer =
new WidgetFadeTimer();
22 super.Init(vehicleHudPanels);
127 float min, max, current;
BoatFluid
Type of vehicle's fluid. (native, do not change or extend)
void UpdateEngineBlink(float timeSlice)
override void RefreshVehicleHud(float timeslice)
override void HideVehicleInfo()
float m_TimeSinceEngineHit
const float ENGINE_BLINK_DURATION
void UpdateSpeedPointer()
void UpdateFuelIcon(float level)
ref WidgetFadeTimer m_FadeTimer
BoatScript m_CurrentVehicle
override void ShowVehicleInfo(PlayerBase player)
ImageWidget m_EngineLight
float m_TimeSinceEngineBlink
override void Init(Widget vehicleHudPanels)
void UpdateEngineIcon(int level)
ImageWidget m_SpeedPointer
proto native WorkspaceWidget GetWorkspace()
const int COLOR_BADLY_DAMAGED
proto native Transport GetTransport()
static int GetItemHealthColor(int pHealthLevel)
TextWidget m_VehiclePrevGearValue
TextWidget m_VehicleNextGearValue
TextWidget m_VehicleCurrentGearValue
ref map< int, string > m_VehicleGearTable
proto vector InvMultiply3(vector mat[3])
Invert-transforms vector.
proto native CGame GetGame()
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float AbsFloat(float f)
Returns absolute value.
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.