diff --git a/DayZ/handlers/players/client/status_player.lua b/DayZ/handlers/players/client/status_player.lua index bfaec95..f1383f9 100644 --- a/DayZ/handlers/players/client/status_player.lua +++ b/DayZ/handlers/players/client/status_player.lua @@ -192,7 +192,7 @@ function setVolume() end setElementData(localPlayer,"volume",value) end -setTimer(setVolume,100,0) +--setTimer(setVolume,100,0) --[[ Visibility: @@ -242,7 +242,7 @@ function setVisibility() end setElementData(localPlayer,"visibly",value) end -setTimer(setVisibility,100,0) +--setTimer(setVisibility,100,0) function debugJump() if getControlState("jump") then @@ -689,7 +689,7 @@ function getPlayerLoad() local actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) mps = actualspeed * 50 else - playerSpeed = 20 + mps = 20 end playerSpeed = math.floor(mps*3.5) -- Final calculation for hunger based on blood, speed and weight of all items combined diff --git a/DayZ/handlers/world/server/weather.lua b/DayZ/handlers/world/server/weather.lua index a40a582..bf9b3e4 100644 --- a/DayZ/handlers/world/server/weather.lua +++ b/DayZ/handlers/world/server/weather.lua @@ -96,9 +96,13 @@ setTimer(setTheWeather,weatherRandomizer,0) function setRainOnCloudyWeather() local weather = getWeather() if weather == 4 or weather == 7 or weather == 12 or weather == 15 then - local shouldItRain = math.random(0,99) + local shouldItRain = math.random(0,100) if shouldItRain > 74 then setRainLevel(math.random()) + else + if getRainLevel() > 0 then + setRainLevel(0) + end end end end