fix some fuel management

This commit is contained in:
Alexsandro Percy 2024-01-28 18:42:17 -03:00
parent 55d2266724
commit 394e9a08ba
2 changed files with 9 additions and 2 deletions

View file

@ -321,7 +321,7 @@ function airutils.logic_heli(self)
if self._engine_running == false then fixed_power = 0 end
local power_indicator_angle = airutils.get_gauge_angle(fixed_power/10) + 90
local fuel_in_percent = (self._energy * 1)/self._max_fuel
local energy_indicator_angle = (180*fuel_in_percent)-180 --(airutils.get_gauge_angle((self._max_fuel - self._energy)*2)) - 90
local energy_indicator_angle = (180*fuel_in_percent)-180
if is_attached then
if self._show_hud then