diff --git a/media/clothing/clothingItems/Amputation_Left_Foot.xml b/media/clothing/clothingItems/Amputation_Left_Foot.xml index e17173a..a1d237b 100644 --- a/media/clothing/clothingItems/Amputation_Left_Foot.xml +++ b/media/clothing/clothingItems/Amputation_Left_Foot.xml @@ -2,7 +2,7 @@ Amputation\Amputation_GenericModel Amputation\Amputation_GenericModel - 45c0b872-bdf1-466f-b810-c7783171bda1 + 506c0fc0-b50c-4667-bafa-ae22e3c2c0dc false false false diff --git a/media/clothing/clothingItems/Amputation_Right_Foot.xml b/media/clothing/clothingItems/Amputation_Right_Foot.xml index 20f2145..af3f9dc 100644 --- a/media/clothing/clothingItems/Amputation_Right_Foot.xml +++ b/media/clothing/clothingItems/Amputation_Right_Foot.xml @@ -2,7 +2,7 @@ Amputation\Amputation_GenericModel Amputation\Amputation_GenericModel - d6576bb2-f5f1-4cb6-a17e-aab131214e4b + 2600c2ab-bfeb-49c3-b0b5-e21c6d83d5c2 false false false diff --git a/media/fileGuidTable.xml b/media/fileGuidTable.xml index 22cccb7..a829229 100644 --- a/media/fileGuidTable.xml +++ b/media/fileGuidTable.xml @@ -88,12 +88,12 @@ media/clothing/clothingItems/Amputation_Left_Foot.xml - 45c0b872-bdf1-466f-b810-c7783171bda1 + 506c0fc0-b50c-4667-bafa-ae22e3c2c0dc - media/clothing/clothingItems/Amputation_Left_Foot.xml - d6576bb2-f5f1-4cb6-a17e-aab131214e4b + media/clothing/clothingItems/Amputation_Right_Foot.xml + 2600c2ab-bfeb-49c3-b0b5-e21c6d83d5c2 \ No newline at end of file diff --git a/media/lua/client/ActionsMethods/TOC_CutLimb.lua b/media/lua/client/ActionsMethods/TOC_CutLimb.lua index ebf67ec..8eb95b4 100644 --- a/media/lua/client/ActionsMethods/TOC_CutLimb.lua +++ b/media/lua/client/ActionsMethods/TOC_CutLimb.lua @@ -243,7 +243,6 @@ function TocCutLimb(part_name, surgeon_factor, bandage_table, painkiller_table) local amputation_clothing_item_name = TocFindAmputatedClothingFromPartName(part_name) print(amputation_clothing_item_name) - local amputation_clothing_item = player:getInventory():AddItem(amputation_clothing_item_name) TocSetCorrectTextureForAmputation(amputation_clothing_item, player, false) player:setWornItem(amputation_clothing_item:getBodyLocation(), amputation_clothing_item) @@ -251,6 +250,10 @@ function TocCutLimb(part_name, surgeon_factor, bandage_table, painkiller_table) -- Set blood on the amputated limb TocSetBloodOnAmputation(getPlayer(), adiacent_body_part) + + if part_name == "Left_Foot" or part_name == "Right_Foot" then + SetMissingFootAnimation(true) + end end end diff --git a/media/lua/client/TOC_Debug.lua b/media/lua/client/TOC_Debug.lua index 49f3c23..3979a77 100644 --- a/media/lua/client/TOC_Debug.lua +++ b/media/lua/client/TOC_Debug.lua @@ -74,6 +74,11 @@ function TocResetEverything() end end + + + -- Reset special flag for legs amputations + SetMissingFootAnimation(false) + end diff --git a/media/scripts/TOC_items.txt b/media/scripts/TOC_items.txt index 50e0cbe..cbc76e9 100644 --- a/media/scripts/TOC_items.txt +++ b/media/scripts/TOC_items.txt @@ -480,40 +480,42 @@ item Surgery_Right_Tourniquet } item Amputation_Left_Foot - { - Type = Clothing, - DisplayName = Amputated Left Foot, - ClothingItem = Amputation_Left_Foot, - BodyLocation = TOC_LegLeft, - Weight = 0, - CombatSpeedModifier = 0.9, - BloodLocation = Feet, - Insulation = 1.0, - WindResistance = 1.0, - WaterResistance = 1.0, - Icon = genericAmputation, - CanHaveHoles = false, + { + Type = Clothing, + DisplayName = Amputated Left Foot, + + ClothingItem = Amputation_Left_Foot, + BodyLocation = TOC_LegLeft, + + Weight = 0, + CombatSpeedModifier = 0.9, + BloodLocation = Hands;LowerArms, + + Insulation = 1.0, + WindResistance = 1.0, + WaterResistance = 1.0, + Icon = genericAmputation, + CanHaveHoles = false, + } - - } - item Amputation_Right_Foot - { - Type = Clothing, - DisplayName = Amputated Right Foot, - ClothingItem = Amputation_Right_Foot, - BodyLocation = TOC_LegRight, - Weight = 0, - CombatSpeedModifier = 0.9, - BloodLocation = Feet, - Insulation = 1.0, - WindResistance = 1.0, - WaterResistance = 1.0, - Icon = genericAmputation, - CanHaveHoles = false, + { + Type = Clothing, + DisplayName = Amputated Right Foot, - - } + ClothingItem = Amputation_Right_Foot, + BodyLocation = TOC_LegRight, + + Weight = 0, + CombatSpeedModifier = 0.9, + BloodLocation = Hands;LowerArms, + + Insulation = 1.0, + WindResistance = 1.0, + WaterResistance = 1.0, + Icon = genericAmputation, + CanHaveHoles = false, + } } diff --git a/media/ui/TOC/Left_Foot/Base.png b/media/ui/TOC/Left_Foot/Base.png index b89e95b..373ca17 100644 Binary files a/media/ui/TOC/Left_Foot/Base.png and b/media/ui/TOC/Left_Foot/Base.png differ diff --git a/media/ui/TOC/Left_Foot/Bleed.png b/media/ui/TOC/Left_Foot/Bleed.png index 2961263..639d9b7 100644 Binary files a/media/ui/TOC/Left_Foot/Bleed.png and b/media/ui/TOC/Left_Foot/Bleed.png differ diff --git a/media/ui/TOC/Left_Foot/Cut.png b/media/ui/TOC/Left_Foot/Cut.png index 9240f93..0d0ad48 100644 Binary files a/media/ui/TOC/Left_Foot/Cut.png and b/media/ui/TOC/Left_Foot/Cut.png differ diff --git a/media/ui/TOC/Left_Foot/Operate.png b/media/ui/TOC/Left_Foot/Operate.png index 6f3eead..e6209ad 100644 Binary files a/media/ui/TOC/Left_Foot/Operate.png and b/media/ui/TOC/Left_Foot/Operate.png differ diff --git a/media/ui/TOC/Right_Foot/Base.png b/media/ui/TOC/Right_Foot/Base.png index 373ca17..b89e95b 100644 Binary files a/media/ui/TOC/Right_Foot/Base.png and b/media/ui/TOC/Right_Foot/Base.png differ diff --git a/media/ui/TOC/Right_Foot/Bleed.png b/media/ui/TOC/Right_Foot/Bleed.png index 639d9b7..2961263 100644 Binary files a/media/ui/TOC/Right_Foot/Bleed.png and b/media/ui/TOC/Right_Foot/Bleed.png differ diff --git a/media/ui/TOC/Right_Foot/Cut.png b/media/ui/TOC/Right_Foot/Cut.png index 0d0ad48..9240f93 100644 Binary files a/media/ui/TOC/Right_Foot/Cut.png and b/media/ui/TOC/Right_Foot/Cut.png differ diff --git a/media/ui/TOC/Right_Foot/Operate.png b/media/ui/TOC/Right_Foot/Operate.png index e6209ad..6f3eead 100644 Binary files a/media/ui/TOC/Right_Foot/Operate.png and b/media/ui/TOC/Right_Foot/Operate.png differ