Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtadayz committed Mar 10, 2017
1 parent ed82418 commit 3b3981e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DayZ/handlers/players/client/status_player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function setVolume()
end
setElementData(localPlayer,"volume",value)
end
setTimer(setVolume,100,0)
--setTimer(setVolume,100,0)

--[[
Visibility:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion DayZ/handlers/world/server/weather.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b3981e

Please sign in to comment.