Changed all the names

This commit is contained in:
Pao
2023-01-18 01:33:06 +01:00
parent e6313cbfb9
commit 13010b7b2a
21 changed files with 110 additions and 98 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_noHand</m_MaleModel> <m_MaleModel>Amputation_Left_Hand_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_noHand</m_FemaleModel> <m_FemaleModel>Amputation_Left_Hand_Female</m_FemaleModel>
<m_GUID>2de93af2-b7a8-4c04-84d1-28d92cce8a0f</m_GUID> <m_GUID>2de93af2-b7a8-4c04-84d1-28d92cce8a0f</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_noForeArm</m_MaleModel> <m_MaleModel>Amputation_Left_LowerArm_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_noForeArm</m_FemaleModel> <m_FemaleModel>Amputation_Left_LowerArm_Female</m_FemaleModel>
<m_GUID>d3816fe0-48e1-4cf5-a8e4-48c72595edb4</m_GUID> <m_GUID>d3816fe0-48e1-4cf5-a8e4-48c72595edb4</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_noArm</m_MaleModel> <m_MaleModel>Amputation_Left_UpperArm_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_noArm</m_FemaleModel> <m_FemaleModel>Amputation_Left_UpperArm_Female</m_FemaleModel>
<m_GUID>646cafa5-3fa1-41af-9ca0-aa57cca3b36d</m_GUID> <m_GUID>646cafa5-3fa1-41af-9ca0-aa57cca3b36d</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_noHand</m_MaleModel> <m_MaleModel>Amputation_Right_Hand_Male</m_MaleModel>
<m_FemaleModel>ArmRight_noHand</m_FemaleModel> <m_FemaleModel>Amputation_Right_Hand_Female</m_FemaleModel>
<m_GUID>f114e53a-b92e-4639-8d8c-2b43ab981885</m_GUID> <m_GUID>f114e53a-b92e-4639-8d8c-2b43ab981885</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_noForeArm</m_MaleModel> <m_MaleModel>Amputation_Right_LowerArm_Male</m_MaleModel>
<m_FemaleModel>ArmRight_noForeArm</m_FemaleModel> <m_FemaleModel>Amputation_Right_LowerArm_Female</m_FemaleModel>
<m_GUID>e6f80efd-22e5-49e0-8b24-537519d42b37</m_GUID> <m_GUID>e6f80efd-22e5-49e0-8b24-537519d42b37</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_noArm</m_MaleModel> <m_MaleModel>Amputation_Right_UpperArm_Male</m_MaleModel>
<m_FemaleModel>ArmRight_noArm</m_FemaleModel> <m_FemaleModel>Amputation_Right_UpperArm_Female</m_FemaleModel>
<m_GUID>db8ccad2-b76f-44bd-93ab-1eefa25beade</m_GUID> <m_GUID>db8ccad2-b76f-44bd-93ab-1eefa25beade</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<clothingItem>
<m_MaleModel>ArmRight_MetalHand_fore</m_MaleModel>
<m_FemaleModel>ArmRight_MetalHand_fore</m_FemaleModel>
<m_GUID>27758f1e-6298-42eb-b027-b9be31465c11</m_GUID>
<m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue>
<m_AllowRandomTint>false</m_AllowRandomTint>
<textureChoices>Clothes\metal</textureChoices>
</clothingItem>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_MetalHand_hand</m_MaleModel> <m_MaleModel>Prost_Left_Hand_MetalHand_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_MetalHand_hand</m_FemaleModel> <m_FemaleModel>Prost_Left_Hand_MetalHand_Female</m_FemaleModel>
<m_GUID>2101af26-54b9-455b-abc0-7533ce37f84b</m_GUID> <m_GUID>2101af26-54b9-455b-abc0-7533ce37f84b</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_Hook_hand</m_MaleModel> <m_MaleModel>Prost_Left_Hand_MetalHook_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_Hook_hand</m_FemaleModel> <m_FemaleModel>Prost_Left_Hand_MetalHook_Female</m_FemaleModel>
<m_GUID>6b4f4e13-d51f-48ab-80b0-6e0923650fc4</m_GUID> <m_GUID>6b4f4e13-d51f-48ab-80b0-6e0923650fc4</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_Hook_hand</m_MaleModel> <m_MaleModel>Prost_Left_Hand_WoodenHook_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_Hook_hand</m_FemaleModel> <m_FemaleModel>Prost_Left_Hand_WoodenHook_Female</m_FemaleModel>
<m_GUID>0def629e-fe4f-4485-bdae-2d6032e150be</m_GUID> <m_GUID>0def629e-fe4f-4485-bdae-2d6032e150be</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_MetalHand_fore</m_MaleModel> <m_MaleModel>Prost_Left_LowerArm_MetalHand_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_MetalHand_fore</m_FemaleModel> <m_FemaleModel>Prost_Left_LowerArm_MetalHand_Female</m_FemaleModel>
<m_GUID>0405a4c0-f71b-45a8-9edc-489fc81dca39</m_GUID> <m_GUID>0405a4c0-f71b-45a8-9edc-489fc81dca39</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_Hook_fore</m_MaleModel> <m_MaleModel>Prost_Left_LowerArm_MetalHook_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_Hook_fore</m_FemaleModel> <m_FemaleModel>Prost_Left_LowerArm_MetalHook_Female</m_FemaleModel>
<m_GUID>129ee688-d4bb-4297-8eb2-f88974001217</m_GUID> <m_GUID>129ee688-d4bb-4297-8eb2-f88974001217</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmLeft_Hook_fore</m_MaleModel> <m_MaleModel>Prost_Left_LowerArm_WoodenHook_Male</m_MaleModel>
<m_FemaleModel>ArmLeft_Hook_fore</m_FemaleModel> <m_FemaleModel>Prost_Left_LowerArm_WoodenHook_Female</m_FemaleModel>
<m_GUID>aea8e02a-cba0-48d0-9eb0-7087651306b0</m_GUID> <m_GUID>aea8e02a-cba0-48d0-9eb0-7087651306b0</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_MetalHand_hand</m_MaleModel> <m_MaleModel>Prost_Right_Hand_MetalHand_Male</m_MaleModel>
<m_FemaleModel>ArmRight_MetalHand_hand</m_FemaleModel> <m_FemaleModel>Prost_Right_Hand_MetalHand_Female</m_FemaleModel>
<m_GUID>731c280a-9682-4e2e-84cf-470bf00dd02f</m_GUID> <m_GUID>731c280a-9682-4e2e-84cf-470bf00dd02f</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_Hook_hand</m_MaleModel> <m_MaleModel>Prost_Right_Hand_MetalHook_Male</m_MaleModel>
<m_FemaleModel>ArmRight_Hook_hand</m_FemaleModel> <m_FemaleModel>Prost_Right_Hand_MetalHook_Female</m_FemaleModel>
<m_GUID>dd7b749b-7e81-4547-91b0-81b1a1e9f7b8</m_GUID> <m_GUID>dd7b749b-7e81-4547-91b0-81b1a1e9f7b8</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_Hook_hand</m_MaleModel> <m_MaleModel>Prost_Right_Hand_WoodenHook_Male</m_MaleModel>
<m_FemaleModel>ArmRight_Hook_hand</m_FemaleModel> <m_FemaleModel>Prost_Right_Hand_WoodenHook_Female</m_FemaleModel>
<m_GUID>1fcc7523-d577-4cb0-a019-f077ef281d3a</m_GUID> <m_GUID>1fcc7523-d577-4cb0-a019-f077ef281d3a</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_Hook_forearm</m_MaleModel> <m_MaleModel>Prost_Right_LowerArm_MetalHand_Male</m_MaleModel>
<m_FemaleModel>ArmRight_Hook_forearm</m_FemaleModel> <m_FemaleModel>Prost_Right_LowerArm_MetalHand_Female</m_FemaleModel>
<m_GUID>1eb56768-d7ef-46e4-ac07-91d0e43d15fb</m_GUID> <m_GUID>1eb56768-d7ef-46e4-ac07-91d0e43d15fb</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<clothingItem> <clothingItem>
<m_MaleModel>ArmRight_Hook_forearm</m_MaleModel> <m_MaleModel>Prost_Right_LowerArm_WoodenHook_Male</m_MaleModel>
<m_FemaleModel>ArmRight_Hook_forearm</m_FemaleModel> <m_FemaleModel>Prost_Right_LowerArm_WoodenHook_Female</m_FemaleModel>
<m_GUID>714b78a7-8895-4f48-a29d-b6f12909db0e</m_GUID> <m_GUID>714b78a7-8895-4f48-a29d-b6f12909db0e</m_GUID>
<m_Static>false</m_Static> <m_Static>false</m_Static>
<m_AllowRandomHue>false</m_AllowRandomHue> <m_AllowRandomHue>false</m_AllowRandomHue>

View File

@@ -37,71 +37,94 @@ function TestStuffToc()
local limbs = {"Hand", "LowerArm", "UpperArm"} -- Let's follow their naming local limbs = {"Hand", "LowerArm", "UpperArm"} -- Let's follow their naming
local prosthesis_list = {"WoodenHook", "MetalHook", "MetalHand"}
local accepted_prosthesis_hand = {"WoodenHook", "MetalHook", "MetalHand"}
local accepted_prosthesis_lowerarm = {"WoodenHook", "MetalHook", "MetalHand"}
local accepted_prosthesis_upperarm = {} -- For future stuff
for _, side in ipairs(sides) do
for _, limb in ipairs(limbs) do
local part_name = side .. "_" .. limb
mod_data.TOC.Limbs[part_name].is_cut = false
mod_data.TOC.Limbs[part_name].is_infected = false
mod_data.TOC.Limbs[part_name].is_operated = false
mod_data.TOC.Limbs[part_name].is_cicatrized = false
mod_data.TOC.Limbs[part_name].is_cauterized = false
mod_data.TOC.Limbs[part_name].is_amputation_shown = false
mod_data.TOC.Limbs[part_name].cicatrization_time = 0
mod_data.TOC.Limbs[part_name].is_prosthesis_equipped = false
mod_data.TOC.Limbs[part_name].prosthesis_factor = 1.0
mod_data.TOC.Limbs[part_name].prosthesis_material_id = nil
-- Even if there are some duplicates, this is just easier in the end since we're gonna get fairly easily part_name
if limb == "Hand" then
mod_data.TOC.Prosthesis.AcceptedProsthesis[part_name] = accepted_prosthesis_hand
elseif limb == "LowerArm" then
mod_data.TOC.Prosthesis.AcceptedProsthesis[part_name] = accepted_prosthesis_lowerarm
elseif limb == "UpperArm" then
mod_data.TOC.Prosthesis.AcceptedProsthesis[part_name] = accepted_prosthesis_upperarm
end
-- Setup prosthesis table end
end
local prosthesis_table = { for _, v in ipairs(prosthesis_list) do
}
mod_data.TOC.Prosthesis[v].prosthesis_factor = 1.0 -- Default
mod_data.TOC.Limbs[v].prosthesis_material_id = nil -- Set texture?
-- TODO Something else?
end
for _ ,v in pairs(GetBodyParts()) do
mod_data.TOC.Limbs[v].is_cut = false
mod_data.TOC.Limbs[v].is_infected = false
mod_data.TOC.Limbs[v].is_operated = false
mod_data.TOC.Limbs[v].is_cicatrized = false
mod_data.TOC.Limbs[v].is_cauterized = false
mod_data.TOC.Limbs[v].is_amputation_shown = false
mod_data.TOC.Limbs[v].cicatrization_time = 0
mod_data.TOC.Limbs[v].is_prosthesis_equipped = false
mod_data.TOC.Limbs[v].prosthesis_factor = 1.0
mod_data.TOC.Limbs[v].prosthesis_material_id = nil
-- Prosthesis part
mod_data.TOC.Prosthesis[v].accepted_prosthesis = {}
mod_data.TOC.Prosthesis
end end
mod_data.TOC.Prosthesis.list = GetProsthesisList() function Test2Toc(part_name, prosthetic_name)
for _,v in ipairs(GetProsthesisLisHumanReadable()) do --------
mod_data.TOC.Prosthesis[v]. -- NEW NAMING SCHEME
---- Amputations
end -- Amputation_Left_Hand
-- Amputation_Right_UpperArm
---- Prosthesis to equip
RightHand = {}, -- Prost_Left_Hand_MetalHook
RightForearm = {}, -- Prost_Right_Forearm_WoodenHook
RightArm = {},
--- Objects
LeftHand = {}, -- Prost_Object_WoddenHook
LeftForearm = {},
LeftArm = {},
-- First value side, second value limb
is_other_bodypart_infected = false local part_name_table = {}
}
for v in part_name:gmatch("([^_]+)") do
table.insert(part_name_table, v)
end
-- TODO Probably add TOC. before prost_
local prost_to_equip_name = "Prost_" .. part_name_table[1] .. "_" .. part_name_table[2] .. "_" .. prosthetic_name
return prost_to_equip_name
end end