Working Feet amputation
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -74,6 +74,11 @@ function TocResetEverything()
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- Reset special flag for legs amputations
|
||||||
|
SetMissingFootAnimation(false)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
ClothingItem = Amputation_Left_Foot,
|
||||||
Weight = 0,
|
BodyLocation = TOC_LegLeft,
|
||||||
CombatSpeedModifier = 0.9,
|
|
||||||
BloodLocation = Feet,
|
Weight = 0,
|
||||||
Insulation = 1.0,
|
CombatSpeedModifier = 0.9,
|
||||||
WindResistance = 1.0,
|
BloodLocation = Hands;LowerArms,
|
||||||
WaterResistance = 1.0,
|
|
||||||
Icon = genericAmputation,
|
Insulation = 1.0,
|
||||||
CanHaveHoles = false,
|
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,
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 981 B After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 381 B |
|
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 843 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 981 B |
|
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 282 B |
|
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 680 B |