diff --git a/media/lua/client/TOC_ClientOptions.lua b/media/lua/client/TOC_ClientOptions.lua index 3016806..a81443a 100644 --- a/media/lua/client/TOC_ClientOptions.lua +++ b/media/lua/client/TOC_ClientOptions.lua @@ -1,51 +1,55 @@ ---Default options. -local options = { - roll_up_sleeves_on_amputated_limbs = true, +-- --Default options. +-- local options = { +-- roll_up_sleeves_on_amputated_limbs = true, -} +-- } --https://steamcommunity.com/workshop/filedetails/discussion/2169435993/4260919351480715709/#c4260919351482087243 --- Connecting the options to the menu, so user can change them. -if ModOptions and ModOptions.getInstance then - print("TOC: Found ModOptions, loading it") - local settings = ModOptions:getInstance(options, "Amputation2", "The Only Cure but better") - ModOptions:loadFile() +-- -- Connecting the options to the menu, so user can change them. +-- if ModOptions and ModOptions.getInstance then +-- print("TOC: Found ModOptions, loading it") +-- local settings = ModOptions:getInstance(options, "Amputation2", "The Only Cure but better") - settings.names = { - roll_up_sleeves_on_amputated_limbs = "Roll up jacket sleeves for amputated limbs", - } + + +-- -- FIXME this stuff breaks everything, it's a no go for now + + +-- settings.names = { +-- roll_up_sleeves_on_amputated_limbs = "Roll up jacket sleeves for amputated limbs", +-- } - - local roll_up_sleeves = settings:getData("roll_up_sleeves_on_amputated_limbs") +-- ModOptions:loadFile() +-- local roll_up_sleeves = settings:getData("roll_up_sleeves_on_amputated_limbs") - print("TOC: Rolling up sleeves => " .. tostring(options.roll_up_sleeves_on_amputated_limbs)) +-- print("TOC: Rolling up sleeves => " .. tostring(options.roll_up_sleeves_on_amputated_limbs)) - -- Run it now since we're in the menu, presumably - TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs) +-- -- Run it now since we're in the menu, presumably +-- TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs) - function roll_up_sleeves:OnApply(val) - self:resetLua() - end +-- function roll_up_sleeves:OnApply(val) +-- self:resetLua() +-- end - local function TocOnResetLua(reason) - print("TOC: OnResetLua running TocSetSleeves") - TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs) +-- local function TocOnResetLua(reason) +-- print("TOC: OnResetLua running TocSetSleeves") +-- TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs) - end - Events.OnResetLua.Add(TocOnResetLua) -else - ------------------- - -- DEFAULT SETTINGS - ------------------ - -- TODO Test this when mod options is not installed - TocSetSleeves(false) +-- end +-- Events.OnResetLua.Add(TocOnResetLua) +-- else +-- ------------------- +-- -- DEFAULT SETTINGS +-- ------------------ +-- -- TODO Test this when mod options is not installed +-- -end +-- end ---Make a link -TOC_Options = {} -TOC_Options = options +-- --Make a link +-- TOC_Options = {} +-- TOC_Options = options diff --git a/media/lua/shared/NPCs/ExtraBodyLocations.lua b/media/lua/shared/NPCs/ExtraBodyLocations.lua index 5298ce4..bce8bf2 100644 --- a/media/lua/shared/NPCs/ExtraBodyLocations.lua +++ b/media/lua/shared/NPCs/ExtraBodyLocations.lua @@ -38,6 +38,7 @@ local function addBodyLocationBefore(newLocation, movetoLocation) function TocSetSleeves(check) + -- TODO this is stuck to true for now, it's just too broken to change it mid game local group = BodyLocations.getGroup("Human") if check then print("TOC: Rolling up sleeves") @@ -56,3 +57,4 @@ function TocSetSleeves(check) end end +TocSetSleeves(true) \ No newline at end of file