Working Feet amputation

This commit is contained in:
Pao
2023-02-06 23:51:31 +01:00
parent 1117268b3f
commit 2f797990a9
14 changed files with 47 additions and 37 deletions

View File

@@ -2,7 +2,7 @@
<clothingItem> <clothingItem>
<m_MaleModel>Amputation\Amputation_GenericModel</m_MaleModel> <m_MaleModel>Amputation\Amputation_GenericModel</m_MaleModel>
<m_FemaleModel>Amputation\Amputation_GenericModel</m_FemaleModel> <m_FemaleModel>Amputation\Amputation_GenericModel</m_FemaleModel>
<m_GUID>45c0b872-bdf1-466f-b810-c7783171bda1</m_GUID> <m_GUID>506c0fc0-b50c-4667-bafa-ae22e3c2c0dc</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>
<m_AllowRandomTint>false</m_AllowRandomTint> <m_AllowRandomTint>false</m_AllowRandomTint>

View File

@@ -2,7 +2,7 @@
<clothingItem> <clothingItem>
<m_MaleModel>Amputation\Amputation_GenericModel</m_MaleModel> <m_MaleModel>Amputation\Amputation_GenericModel</m_MaleModel>
<m_FemaleModel>Amputation\Amputation_GenericModel</m_FemaleModel> <m_FemaleModel>Amputation\Amputation_GenericModel</m_FemaleModel>
<m_GUID>d6576bb2-f5f1-4cb6-a17e-aab131214e4b</m_GUID> <m_GUID>2600c2ab-bfeb-49c3-b0b5-e21c6d83d5c2</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>
<m_AllowRandomTint>false</m_AllowRandomTint> <m_AllowRandomTint>false</m_AllowRandomTint>

View File

@@ -88,12 +88,12 @@
<files> <files>
<path>media/clothing/clothingItems/Amputation_Left_Foot.xml</path> <path>media/clothing/clothingItems/Amputation_Left_Foot.xml</path>
<guid>45c0b872-bdf1-466f-b810-c7783171bda1</guid> <guid>506c0fc0-b50c-4667-bafa-ae22e3c2c0dc</guid>
</files> </files>
<files> <files>
<path>media/clothing/clothingItems/Amputation_Left_Foot.xml</path> <path>media/clothing/clothingItems/Amputation_Right_Foot.xml</path>
<guid>d6576bb2-f5f1-4cb6-a17e-aab131214e4b</guid> <guid>2600c2ab-bfeb-49c3-b0b5-e21c6d83d5c2</guid>
</files> </files>
</fileGuidTable> </fileGuidTable>

View File

@@ -243,7 +243,6 @@ function TocCutLimb(part_name, surgeon_factor, bandage_table, painkiller_table)
local amputation_clothing_item_name = TocFindAmputatedClothingFromPartName(part_name) local amputation_clothing_item_name = TocFindAmputatedClothingFromPartName(part_name)
print(amputation_clothing_item_name) print(amputation_clothing_item_name)
local amputation_clothing_item = player:getInventory():AddItem(amputation_clothing_item_name) local amputation_clothing_item = player:getInventory():AddItem(amputation_clothing_item_name)
TocSetCorrectTextureForAmputation(amputation_clothing_item, player, false) TocSetCorrectTextureForAmputation(amputation_clothing_item, player, false)
player:setWornItem(amputation_clothing_item:getBodyLocation(), amputation_clothing_item) 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 -- Set blood on the amputated limb
TocSetBloodOnAmputation(getPlayer(), adiacent_body_part) TocSetBloodOnAmputation(getPlayer(), adiacent_body_part)
if part_name == "Left_Foot" or part_name == "Right_Foot" then
SetMissingFootAnimation(true)
end
end end
end end

View File

@@ -74,6 +74,11 @@ function TocResetEverything()
end end
end end
-- Reset special flag for legs amputations
SetMissingFootAnimation(false)
end end

View File

@@ -480,40 +480,42 @@ item Surgery_Right_Tourniquet
} }
item Amputation_Left_Foot item Amputation_Left_Foot
{ {
Type = Clothing, Type = Clothing,
DisplayName = Amputated Left Foot, 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,
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 item Amputation_Right_Foot
{ {
Type = Clothing, Type = Clothing,
DisplayName = Amputated Right Foot, 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,
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,
}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 981 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 B

After

Width:  |  Height:  |  Size: 680 B