feat(hud): Anzeige schon an Land, Tiefenverbrauch per Default aus
Lint / Lint Resource (push) Has been cancelled

- hudOnlyUnderwater = false: das HUD ist sichtbar sobald die Ausruestung
  angelegt ist, nicht erst unter Wasser. Damit laesst sich der Flaschendruck
  am Finimeter ablesen, ohne das Inventar zu oeffnen
- depthDecayEnabled = false: die angegebenen 5/10/15/20 Minuten stimmen damit
  exakt und bleiben fuer Spieler berechenbar

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 09:02:37 +02:00
co-authored by Claude Opus 5
parent da0e43a1fd
commit d296aca2f8
3 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -376,7 +376,9 @@ local function startHudThread()
local visible = config.hudEnabled
and not hudHidden
and activeTank ~= nil
and IsPedSwimmingUnderWater(cache.ped)
-- Standardmäßig schon an Land sichtbar, damit sich der
-- Flaschendruck ohne Inventar ablesen lässt.
and (not config.hudOnlyUnderwater or IsPedSwimmingUnderWater(cache.ped))
-- Folgt dem Spiel-HUD: alles was DisplayHud(false) setzt, blendet
-- damit auch das Tauch-HUD aus.
and not (config.hudFollowGameHud and IsHudHidden())