Readding amputation models
37
media/clothing/clothingItems/Amputation_ForeArm_L.xml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Amputation_Left_LowerArm_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Amputation_Left_LowerArm_Female</m_FemaleModel>
|
||||||
|
<m_GUID>d3816fe0-48e1-4cf5-a8e4-48c72595edb4</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<m_Masks>3</m_Masks>
|
||||||
|
<m_Masks>4</m_Masks>
|
||||||
|
<m_MasksFolder>none</m_MasksFolder>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_hairy_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05a</textureChoices>
|
||||||
|
|
||||||
|
</clothingItem>
|
||||||
35
media/clothing/clothingItems/Amputation_ForeArm_R.xml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Amputation_Right_LowerArm_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Amputation_Right_LowerArm_Female</m_FemaleModel>
|
||||||
|
<m_GUID>e6f80efd-22e5-49e0-8b24-537519d42b37</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<m_Masks>5</m_Masks>
|
||||||
|
<m_Masks>6</m_Masks>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_hairy_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05a</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
35
media/clothing/clothingItems/Amputation_Hand_L.xml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Amputation_Left_Hand_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Amputation_Left_Hand_Female</m_FemaleModel>
|
||||||
|
<m_GUID>2de93af2-b7a8-4c04-84d1-28d92cce8a0f</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<m_Masks>4</m_Masks>
|
||||||
|
<m_MasksFolder>none</m_MasksFolder>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_hairy_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05a</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
34
media/clothing/clothingItems/Amputation_Hand_R.xml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Amputation_Right_Hand_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Amputation_Right_Hand_Female</m_FemaleModel>
|
||||||
|
<m_GUID>f114e53a-b92e-4639-8d8c-2b43ab981885</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<m_Masks>6</m_Masks>
|
||||||
|
<m_MasksFolder>none</m_MasksFolder>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Forearm\skin01_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin02_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin03_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin04_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Forearm\skin05_hairy_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05a</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
36
media/clothing/clothingItems/Amputation_UpperArm_L.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Amputation_Left_UpperArm_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Amputation_Left_UpperArm_Female</m_FemaleModel>
|
||||||
|
<m_GUID>646cafa5-3fa1-41af-9ca0-aa57cca3b36d</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<m_Masks>3</m_Masks>
|
||||||
|
<m_Masks>4</m_Masks>
|
||||||
|
<m_MasksFolder>none</m_MasksFolder>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Upperarm\skin01_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin02_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin03_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin04_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin05_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Upperarm\skin01_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin02_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin03_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin04_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin05_hairy_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05a</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
36
media/clothing/clothingItems/Amputation_UpperArm_R.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Amputation_Right_UpperArm_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Amputation_Right_UpperArm_Female</m_FemaleModel>
|
||||||
|
<m_GUID>db8ccad2-b76f-44bd-93ab-1eefa25beade</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<m_Masks>5</m_Masks>
|
||||||
|
<m_Masks>6</m_Masks>
|
||||||
|
<m_MasksFolder>none</m_MasksFolder>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Upperarm\skin01_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin02_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin03_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin04_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin05_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Amputations\Upperarm\skin01_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin02_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin03_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin04_hairy_b</textureChoices>
|
||||||
|
<textureChoices>Amputations\Upperarm\skin05_hairy_b</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05</textureChoices>
|
||||||
|
|
||||||
|
<textureChoices>Body\MaleBody01a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody02a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody03a</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody04</textureChoices>
|
||||||
|
<textureChoices>Body\MaleBody05a</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Prost_Left_LowerArm_Base_Hook_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Prost_Left_LowerArm_Base_Hook_Female</m_FemaleModel>
|
||||||
|
<m_GUID>129ee688-d4bb-4297-8eb2-f88974001217</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<textureChoices>Prosthesis\metal_hook_male</textureChoices>
|
||||||
|
<textureChoices>Prosthesis\metal_hook_female</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Prost_Right_LowerArm_Base_Hook_Male</m_MaleModel>
|
||||||
|
<m_FemaleModel>Prost_Right_LowerArm_Base_Hook_Female</m_FemaleModel>
|
||||||
|
<m_GUID>1eb56768-d7ef-46e4-ac07-91d0e43d15fb</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<textureChoices>Prosthesis\metal_hook_male</textureChoices>
|
||||||
|
<textureChoices>Prosthesis\metal_hook_female</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
10
media/clothing/clothingItems/Surgery_Left_Tourniquet.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Surgery\Tourniquet_Left</m_MaleModel>
|
||||||
|
<m_FemaleModel>Surgery\Tourniquet_Left</m_FemaleModel>
|
||||||
|
<m_GUID>afbab35d-8bd4-4d61-87c7-054651ead1bd</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<textureChoices>Surgery\tourniquet</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
10
media/clothing/clothingItems/Surgery_Right_Tourniquet.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<clothingItem>
|
||||||
|
<m_MaleModel>Surgery\Tourniquet_Right</m_MaleModel>
|
||||||
|
<m_FemaleModel>Surgery\Tourniquet_Right</m_FemaleModel>
|
||||||
|
<m_GUID>9a5fe063-63c7-4e6f-81ca-ee77c6678e0d</m_GUID>
|
||||||
|
<m_Static>false</m_Static>
|
||||||
|
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||||
|
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||||
|
<textureChoices>Surgery\tourniquet</textureChoices>
|
||||||
|
</clothingItem>
|
||||||
29
media/fileGuidTable.xml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<fileGuidTable>
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Amputation_Hand_R.xml</path>
|
||||||
|
<guid>f114e53a-b92e-4639-8d8c-2b43ab981885</guid>
|
||||||
|
</files>
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Amputation_ForeArm_R.xml</path>
|
||||||
|
<guid>e6f80efd-22e5-49e0-8b24-537519d42b37</guid>
|
||||||
|
</files>
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Amputation_UpperArm_R.xml</path>
|
||||||
|
<guid>db8ccad2-b76f-44bd-93ab-1eefa25beade</guid>
|
||||||
|
</files>
|
||||||
|
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Amputation_Hand_L.xml</path>
|
||||||
|
<guid>2de93af2-b7a8-4c04-84d1-28d92cce8a0f</guid>
|
||||||
|
</files>
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Amputation_ForeArm_L.xml</path>
|
||||||
|
<guid>d3816fe0-48e1-4cf5-a8e4-48c72595edb4</guid>
|
||||||
|
</files>
|
||||||
|
<files>
|
||||||
|
<path>media/clothing/clothingItems/Amputation_UpperArm_L.xml</path>
|
||||||
|
<guid>646cafa5-3fa1-41af-9ca0-aa57cca3b36d</guid>
|
||||||
|
</files>
|
||||||
|
|
||||||
|
</fileGuidTable>
|
||||||
@@ -75,6 +75,8 @@ function AmputationHandler:execute()
|
|||||||
ModDataHandler.GetInstance():setCutLimb(self.limbName, false, false, false, surgeonFactor)
|
ModDataHandler.GetInstance():setCutLimb(self.limbName, false, false, false, surgeonFactor)
|
||||||
|
|
||||||
-- Give the player the correct amputation item
|
-- Give the player the correct amputation item
|
||||||
|
self:deleteOldAmputationItem()
|
||||||
|
self:spawnAmputationItem()
|
||||||
end
|
end
|
||||||
|
|
||||||
---Force the execution of the amputation for a trait
|
---Force the execution of the amputation for a trait
|
||||||
@@ -136,11 +138,10 @@ function AmputationHandler:getAmputationTexturesIndex(isCicatrized)
|
|||||||
return matchedIndex - 1
|
return matchedIndex - 1
|
||||||
end
|
end
|
||||||
|
|
||||||
---Spawns and equips the correct amputation item to the player. In case there was another amputation on the same side, it's gonna get deleted
|
---Spawns and equips the correct amputation item to the player.
|
||||||
---@private
|
---@private
|
||||||
function AmputationHandler:spawnAmputationItem()
|
function AmputationHandler:spawnAmputationItem()
|
||||||
-- TODO Check if there are previous amputation clothing items on that side and deletes them
|
print("Clothing name " .. StaticData.AMPUTATION_CLOTHING_ITEM_BASE .. self.limbName)
|
||||||
|
|
||||||
local clothingItem = self.patient:getInventory():AddItem(StaticData.AMPUTATION_CLOTHING_ITEM_BASE .. self.limbName)
|
local clothingItem = self.patient:getInventory():AddItem(StaticData.AMPUTATION_CLOTHING_ITEM_BASE .. self.limbName)
|
||||||
local texId = self:getAmputationTexturesIndex(false)
|
local texId = self:getAmputationTexturesIndex(false)
|
||||||
|
|
||||||
|
|||||||
16
media/lua/shared/NPCs/TOC_BodyLocations.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-- TODO This part is still one of the weakest and we don't have a better solution yet
|
||||||
|
|
||||||
|
local function AddBodyLocationBefore(newLocation, moveToLocation)
|
||||||
|
local group = BodyLocations.getGroup("Human")
|
||||||
|
local list = getClassFieldVal(group, getClassField(group, 1))
|
||||||
|
group:getOrCreateLocation(newLocation)
|
||||||
|
local newItem = list:get(list:size()-1)
|
||||||
|
print("TOC: Created new body location" .. newItem:getId())
|
||||||
|
list:remove(newItem) -- We can't use the Index, it works if we pass the item though!
|
||||||
|
local i = group:indexOf(moveToLocation)
|
||||||
|
list:add(i, newItem)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
AddBodyLocationBefore("TOC_ArmRight", "Shoes")
|
||||||
|
AddBodyLocationBefore("TOC_ArmLeft", "Shoes")
|
||||||
BIN
media/models_X/Amputation/Amputation_GenericModel.fbx
Normal file
BIN
media/models_X/Amputation_Left_Hand_Female.fbx
Normal file
BIN
media/models_X/Amputation_Left_Hand_Male.fbx
Normal file
BIN
media/models_X/Amputation_Left_LowerArm_Female.fbx
Normal file
BIN
media/models_X/Amputation_Left_LowerArm_Male.fbx
Normal file
BIN
media/models_X/Amputation_Left_UpperArm_Female.fbx
Normal file
BIN
media/models_X/Amputation_Left_UpperArm_Male.fbx
Normal file
BIN
media/models_X/Amputation_Right_Hand_Female.fbx
Normal file
BIN
media/models_X/Amputation_Right_Hand_Male.fbx
Normal file
BIN
media/models_X/Amputation_Right_LowerArm_Female.fbx
Normal file
BIN
media/models_X/Amputation_Right_LowerArm_Male.fbx
Normal file
BIN
media/models_X/Amputation_Right_UpperArm_Female.fbx
Normal file
BIN
media/models_X/Amputation_Right_UpperArm_Male.fbx
Normal file
116
media/scripts/TOC_items.txt
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
module TOC
|
||||||
|
{
|
||||||
|
imports
|
||||||
|
{
|
||||||
|
Base
|
||||||
|
}
|
||||||
|
/****************** Clothing that look like a cut limb ******************/
|
||||||
|
item Amputation_Hand_R
|
||||||
|
{
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayName = Amputated right hand,
|
||||||
|
|
||||||
|
ClothingItem = Amputation_Hand_R,
|
||||||
|
BodyLocation = TOC_ArmRight,
|
||||||
|
|
||||||
|
Weight = 0,
|
||||||
|
CombatSpeedModifier = 0.9,
|
||||||
|
BloodLocation = Hands;LowerArms,
|
||||||
|
|
||||||
|
Insulation = 1.0,
|
||||||
|
WindResistance = 1.0,
|
||||||
|
WaterResistance = 1.0,
|
||||||
|
Icon = genericAmputation,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
item Amputation_ForeArm_R
|
||||||
|
{
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayName = Amputated right forearm,
|
||||||
|
|
||||||
|
ClothingItem = Amputation_ForeArm_R,
|
||||||
|
BodyLocation = TOC_ArmRight,
|
||||||
|
|
||||||
|
Weight = 0,
|
||||||
|
CombatSpeedModifier = 0.8,
|
||||||
|
BloodLocation = UpperArms;LowerArms,
|
||||||
|
Insulation = 1.0,
|
||||||
|
WindResistance = 1.0,
|
||||||
|
WaterResistance = 1.0,
|
||||||
|
Icon = genericAmputation,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
item Amputation_UpperArm_R
|
||||||
|
{
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayName = Amputated entire right arm,
|
||||||
|
|
||||||
|
ClothingItem = Amputation_UpperArm_R,
|
||||||
|
BodyLocation = TOC_ArmRight,
|
||||||
|
BloodLocation = UpperArms;UpperBody,
|
||||||
|
Weight = 0,
|
||||||
|
CombatSpeedModifier = 0.7,
|
||||||
|
Insulation = 1.0,
|
||||||
|
WindResistance = 1.0,
|
||||||
|
WaterResistance = 1.0,
|
||||||
|
Icon = genericAmputation,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
item Amputation_Hand_L
|
||||||
|
{
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayName = Amputated left hand,
|
||||||
|
|
||||||
|
ClothingItem = Amputation_Hand_L,
|
||||||
|
BodyLocation = TOC_ArmLeft,
|
||||||
|
|
||||||
|
Weight = 0,
|
||||||
|
CombatSpeedModifier = 0.9,
|
||||||
|
BloodLocation = Hands;LowerArms,
|
||||||
|
Insulation = 1.0,
|
||||||
|
|
||||||
|
WindResistance = 1.0,
|
||||||
|
WaterResistance = 1.0,
|
||||||
|
Icon = genericAmputation,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
item Amputation_ForeArm_L
|
||||||
|
{
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayCategory = Amputation,
|
||||||
|
DisplayName = Amputated left forearm,
|
||||||
|
ClothingItem = Amputation_ForeArm_L,
|
||||||
|
BodyLocation = TOC_ArmLeft,
|
||||||
|
|
||||||
|
Weight = 0,
|
||||||
|
CombatSpeedModifier = 0.8,
|
||||||
|
BloodLocation = UpperArms;LowerArms,
|
||||||
|
Insulation = 1.0,
|
||||||
|
WindResistance = 1.0,
|
||||||
|
WaterResistance = 1.0,
|
||||||
|
Icon = genericAmputation,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
item Amputation_UpperArm_L
|
||||||
|
{
|
||||||
|
Type = Clothing,
|
||||||
|
DisplayName = Amputated entire left arm,
|
||||||
|
ClothingItem = Amputation_UpperArm_L,
|
||||||
|
BodyLocation = TOC_ArmLeft,
|
||||||
|
|
||||||
|
Weight = 0,
|
||||||
|
CombatSpeedModifier = 0.7,
|
||||||
|
BloodLocation = UpperArms;UpperBody,
|
||||||
|
Insulation = 1.0,
|
||||||
|
WindResistance = 1.0,
|
||||||
|
WaterResistance = 1.0,
|
||||||
|
Icon = genericAmputation,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
}
|
||||||
|
}
|
||||||
4
media/scripts/TOC_models.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module TOC
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
BIN
media/textures/Amputations/Forearm/skin01_b.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
media/textures/Amputations/Forearm/skin01_hairy_b.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
media/textures/Amputations/Forearm/skin02_b.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
media/textures/Amputations/Forearm/skin02_hairy_b.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
media/textures/Amputations/Forearm/skin03_b.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
media/textures/Amputations/Forearm/skin03_hairy_b.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
media/textures/Amputations/Forearm/skin04_b.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
media/textures/Amputations/Forearm/skin04_hairy_b.png
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
media/textures/Amputations/Forearm/skin05_b.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
media/textures/Amputations/Forearm/skin05_hairy_b.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
media/textures/Amputations/Masks/LeftArm.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
media/textures/Amputations/Masks/LeftHand.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
media/textures/Amputations/Masks/Mask.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
media/textures/Amputations/Masks/RightArm.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
media/textures/Amputations/Masks/RightHand.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
media/textures/Amputations/Upperarm/skin01_b.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
media/textures/Amputations/Upperarm/skin01_hairy_b.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
media/textures/Amputations/Upperarm/skin02_b.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
media/textures/Amputations/Upperarm/skin02_hairy_b.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
media/textures/Amputations/Upperarm/skin03_b.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
media/textures/Amputations/Upperarm/skin03_hairy_b.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
media/textures/Amputations/Upperarm/skin04_b.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
media/textures/Amputations/Upperarm/skin04_hairy_b.png
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
media/textures/Amputations/Upperarm/skin05_b.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
media/textures/Amputations/Upperarm/skin05_hairy_b.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
media/textures/Surgery/tourniquet.png
Normal file
|
After Width: | Height: | Size: 16 KiB |