clean crap up
This commit is contained in:
@@ -21,20 +21,11 @@ if ModOptions and ModOptions.getInstance then
|
|||||||
|
|
||||||
local roll_up_sleeves = settings:getData("roll_up_sleeves_on_amputated_limbs")
|
local roll_up_sleeves = settings:getData("roll_up_sleeves_on_amputated_limbs")
|
||||||
|
|
||||||
if roll_up_sleeves == nil then
|
print("TOC: Rolling up sleeves => " .. tostring(options.roll_up_sleeves_on_amputated_limbs))
|
||||||
print("TOC: SOmething is very wrong with mod options")
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- Run it now since we're in the menu, presumably
|
-- Run it now since we're in the menu, presumably
|
||||||
TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs)
|
TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function roll_up_sleeves:OnApply(val)
|
function roll_up_sleeves:OnApply(val)
|
||||||
self:resetLua()
|
self:resetLua()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
local options = TOC_Options
|
|
||||||
|
|
||||||
-- TODO Can't trigger OnGameBoot from here since it's client only
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Check actual options at game loading.
|
|
||||||
Events.OnGameStart.Add(function()
|
|
||||||
if not isClient() then -- only host may take these options
|
|
||||||
print("Roll up sleeves for amputated limbs = ", options.rollUpSleeveForAmputatedLimbs)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ imports
|
|||||||
|
|
||||||
ClothingItem = Amputation_Right_UpperArm,
|
ClothingItem = Amputation_Right_UpperArm,
|
||||||
BodyLocation = ArmRight,
|
BodyLocation = ArmRight,
|
||||||
BloodLocation = UpperArms,
|
BloodLocation = UpperArms;UpperBody,
|
||||||
Weight = 0,
|
Weight = 0,
|
||||||
CombatSpeedModifier = 0.7,
|
CombatSpeedModifier = 0.7,
|
||||||
Insulation = 1.0,
|
Insulation = 1.0,
|
||||||
@@ -106,7 +106,7 @@ imports
|
|||||||
|
|
||||||
Weight = 0,
|
Weight = 0,
|
||||||
CombatSpeedModifier = 0.7,
|
CombatSpeedModifier = 0.7,
|
||||||
BloodLocation = UpperArms,
|
BloodLocation = UpperArms;UpperBody,
|
||||||
Insulation = 1.0,
|
Insulation = 1.0,
|
||||||
WindResistance = 1.0,
|
WindResistance = 1.0,
|
||||||
WaterResistance = 1.0,
|
WaterResistance = 1.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user