feat: variable decay time oxygen timer (#17)
This commit is contained in:
+2
-2
@@ -115,7 +115,7 @@ local function startOxygenLevelDecrementerThread()
|
||||
CreateThread(function()
|
||||
while currentGear.enabled do
|
||||
if IsPedSwimmingUnderWater(cache.ped) and oxygenLevel > 0 then
|
||||
oxygenLevel -= 1
|
||||
oxygenLevel -= config.decayRate
|
||||
if oxygenLevel % 10 == 0 and oxygenLevel ~= config.startingOxygenLevel then
|
||||
-- Initiate breathing suit audio
|
||||
end
|
||||
@@ -167,4 +167,4 @@ RegisterNetEvent('qbx_divegear:client:useGear', function()
|
||||
else
|
||||
putOnSuit()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user