mirror of
https://github.com/APercy/airutils.git
synced 2025-03-21 18:41:21 +00:00
hud fuel gauge fixed
This commit is contained in:
parent
2b7d590c71
commit
8abf5d082d
1 changed files with 2 additions and 1 deletions
|
@ -468,7 +468,8 @@ function airutils.logic(self)
|
||||||
|
|
||||||
--adjust power indicator
|
--adjust power indicator
|
||||||
local power_indicator_angle = airutils.get_gauge_angle(self._power_lever/10) + 90
|
local power_indicator_angle = airutils.get_gauge_angle(self._power_lever/10) + 90
|
||||||
local energy_indicator_angle = (airutils.get_gauge_angle((self._max_fuel - self._energy)*2)) - 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
|
||||||
|
|
||||||
if is_attached then
|
if is_attached then
|
||||||
if self._show_hud then
|
if self._show_hud then
|
||||||
|
|
Loading…
Add table
Reference in a new issue