Fuel Consumption HUD v1.1.0.0

DESCRIPTION

Displays fuel usage in l/h for combustion engine vehicles and instantaneous power in kW for electric vehicles. Anchored to the bottom-right HUD corner and scales with the UI. Hidden for other vehicle types.

Changelog Version 1.1.0.0:
Significant internal improvements
- Robust consumption estimator:
* Exponential Moving Average (EMA) smoothing and adaptive smoothing for ECU "lastFuel" readings and electric power estimates.
* Event-driven fill-level delta estimator with anti-spike measures (median + trimmed-mean + stability check).
* Plausibility filtering (ignores unreliable readings)

- Electric behaviour improvements:
* Shows instantaneous power (kW) while the electric motor is ON even when stationary.
* Shows 0.0 when the motor is OFF to avoid confusing residual values.
* Improved consumer-based fallback estimation for electric power usage.

- Faster, more responsive internal sampling while keeping the on-screen display stable.
- HUD appears instantly when you enter a vehicle (placeholder shown immediately; accurate values follow shortly).
- Smoother, more plausible readings with reduced spikes and erratic values.
- UI scaling fixes: HUD position and size stay consistent across UI scales (including small scales such as 50%).
- Respects in-game HUD visibility (won't show when the in‑game UI is hidden).
- Stability fixes: added runtime guards to avoid rare "attempt to call a nil value" crashes.

CREDITS

Jansgi

Similar modifications
ADS BLOCKED

Please disable your AdBlocker

We detected that you're using an ad blocking extension in your browser.
Ads help us maintain and improve Modhub.us.
Please disable your ad blocker and reload this page.

COMMENTS

There are no any comments

Write a comment