Compare commits
No commits in common. "61bd9a30fb33efc3ea569dbbede81d6583db2f44" and "e5162146af60361d44a03612157da5a4e59c882a" have entirely different histories.
61bd9a30fb
...
e5162146af
17
script.lua
17
script.lua
@ -18,13 +18,6 @@ sharedstate=require("nulllib.sharedstate")
|
||||
sharedconfig=require("nulllib.sharedconfig")
|
||||
statemonitor=require("nulllib.statemonitor")
|
||||
|
||||
---Set optimal settings for random player sounds
|
||||
---@param sound Sound
|
||||
---@return Sound
|
||||
local function sound_settings(sound)
|
||||
return sound:volume(1):pitch(1):pos(player:getPos())
|
||||
end
|
||||
|
||||
-- shortcuts for /figura run so i don't have to type so much
|
||||
C={}
|
||||
|
||||
@ -369,12 +362,20 @@ function setArmor(state)
|
||||
end
|
||||
|
||||
local snore
|
||||
-- TODO re-enable snoring
|
||||
do
|
||||
local snores={sounds["sounds.snore-1"], sounds["sounds.snore-2"], sounds["sounds.snore-3"]}
|
||||
|
||||
local snore_index=1
|
||||
local is_snoring=false
|
||||
|
||||
---Set optimal settings for random player sounds
|
||||
---@param sound Sound
|
||||
---@return Sound
|
||||
local function sound_settings(sound)
|
||||
return sound:volume(1):pitch(1):pos(player:getPos())
|
||||
end
|
||||
|
||||
local function state_not_sleeping()
|
||||
-- return not player:getPose() ~= "SLEEPING"
|
||||
return player:getPose() ~= "SLEEPING"
|
||||
@ -633,7 +634,7 @@ function player_init()
|
||||
end
|
||||
|
||||
sharedstate.init("health", player:getHealth(), health_callback)
|
||||
-- TODO set part visibility in avatar.json
|
||||
-- TODO possibly reconsider if this should be redone
|
||||
-- actually it's probably fine, it's jsut here because i forget visibility settings
|
||||
-- local all_parts=util.recurseModelGroup(model)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user