Files
d4rk_divegear/locales/en.json
T
D4rkst3randClaude Opus 5 d9643620ff
Lint / Lint Resource (push) Has been cancelled
feat(light): gesyncte Tauchlampe
Licht ist in GTA nie synchronisiert - DrawSpotLight zeichnet nur lokal fuer den
aktuellen Frame. "Gesynct" heisst deshalb: der Zustand wird als Statebag
repliziert und jeder Client zeichnet die Lampen aller Taucher in seiner Naehe
selbst. Muster uebernommen aus d4rk_phone (Statebag, adaptives Polling,
Distanzfilter).

client/light.lua ist ein reiner Renderer ohne gemeinsamen Zustand mit main.lua -
er kommt mit dem Statebag allein aus und kennt weder Ausruestung noch Flasche.

- Richtung ueber zwei bone-relative Punkte am Kopf-Bone statt ueber
  GetEntityForwardVector: beim Tauchen liegt der Ped waagerecht im Wasser, der
  Entity-Forward wuerde stur horizontal leuchten. Die Offsets von
  GetPedBoneCoords sind laut Native-Doku "relative to the bone's rotation",
  die Differenz zweier solcher Punkte enthaelt also den Pitch
- Toggle per lib.addKeybind, Standard L, vom Spieler umlegbar
- Distanzfilter und Limit auf die naechsten N Lampen, Schatten abschaltbar
- Prop-Model wird vorher mit IsModelValid geprueft: lib.requestModel wirft bei
  ungueltigen Models einen Error, der sonst die ganze Ausruestung lahmlegt
- Lampen-Status im HUD

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 23:56:40 +02:00

34 lines
1.1 KiB
JSON

{
"error": {
"not_standing_up": "You need to be on solid ground to put this on...",
"need_otube": "You don't have an air tank with you!",
"underwater": "You cannot do this underwater...",
"no_tank": "You don't have an air tank to refill!",
"tank_empty": "This air tank is empty!",
"tank_already_full": "This air tank is already full!",
"out_of_air": "You're out of air! Surface now!"
},
"success": {
"took_out": "You've taken your gear off!",
"tube_filled": "You've successfully refilled your air tank!"
},
"info": {
"put_suit": "Putting on your diving suit...",
"pullout_suit": "Taking off your diving suit...",
"filling_air": "Filling air...",
"oxygen_low": "Only %s of air left!",
"tank_remaining": "%s remaining (%d%%)"
},
"menu": {
"choose_tank": "Choose an air tank"
},
"hud": {
"air": "Air",
"depth": "Depth",
"lamp": "Lamp"
},
"keybind": {
"toggle_lamp": "Toggle dive lamp"
}
}