Lint / Lint Resource (push) Has been cancelled
GTA bringt seit v1493 eine eigene Lampe an der Tauchausruestung mit:
SetEnableScubaGearLight(ped, toggle) 0xEE2476B9EE4A094F
IsScubaGearLightEnabled(ped) 0x88274C11CF0D866D
Die sitzt an der richtigen Stelle, leuchtet in Blickrichtung und braucht weder
Prop noch Offsets noch einen Draw-Thread. Damit faellt der komplette
DrawSpotLight-Aufbau weg: Kegelwerte, Farbe, Schatten, Distanzfilter,
Lichter-Limit, die bone-relative Richtungsrechnung und das Sortieren der
Kandidaten pro Frame. client/light.lua schrumpft von ~110 auf ~55 Zeilen.
Gefunden ueber wobozkyng/esx_scuba.
- Der Flag ist ein lokaler Ped-Zustand, der Statebag bleibt also. Gesetzt wird
er per AddStateBagChangeHandler und zusaetzlich alle 500ms nachgezogen, weil
Peds beim Streaming, Respawn und Model-Wechsel neu erzeugt werden
- Die Lampe haengt an der Scuba-Kleidung (Component 8). Das Outfit wird bewusst
nicht angefasst; wer sie nicht traegt, bekommt beim Einschalten eine Meldung
statt stiller Wirkungslosigkeit
- /divelampcheck sagt, ob das aktuelle Outfit eine Lampe hat
- Prop ist jetzt optional und per Default aus
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
37 lines
1.2 KiB
JSON
37 lines
1.2 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!",
|
|
"no_lamp_on_outfit": "Your diving suit doesn't have a lamp."
|
|
},
|
|
"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",
|
|
"pressure": "Pressure",
|
|
"lamp": "Lamp"
|
|
},
|
|
"keybind": {
|
|
"toggle_lamp": "Toggle dive lamp",
|
|
"toggle_hud": "Toggle dive HUD"
|
|
}
|
|
}
|