Various stuff
- Changed how we apply damage to limbs after cutting one - Added some new textures for hooks - Fixed UVs - Some corrections like bandages not applying after cutting a limb
This commit is contained in:
@@ -84,7 +84,9 @@ function TocGetPartNameFromBodyPartType(body_part)
|
||||
|
||||
end
|
||||
|
||||
function TocGetBodyPartTypeFromPartName(part_name)
|
||||
|
||||
-- 1:1 map of part_name to BodyPartType
|
||||
function TocGetBodyPartFromPartName(part_name)
|
||||
if part_name == "Right_Hand" then return BodyPartType.Hand_R end
|
||||
if part_name == "Right_LowerArm" then return BodyPartType.ForeArm_R end
|
||||
if part_name == "Right_UpperArm" then return BodyPartType.UpperArm_R end
|
||||
@@ -93,6 +95,17 @@ function TocGetBodyPartTypeFromPartName(part_name)
|
||||
if part_name == "Left_UpperArm" then return BodyPartType.UpperArm_L end
|
||||
end
|
||||
|
||||
-- Custom mapping to make more sense when cutting a limb
|
||||
function TocGetAdiacentBodyPartFromPartName(part_name)
|
||||
|
||||
if part_name == "Right_Hand" then return BodyPartType.ForeArm_R end
|
||||
if part_name == "Right_LowerArm" then return BodyPartType.UpperArm_R end
|
||||
if part_name == "Right_UpperArm" then return BodyPartType.Torso_Upper end
|
||||
if part_name == "Left_Hand" then return BodyPartType.ForeArm_L end
|
||||
if part_name == "Left_LowerArm" then return BodyPartType.UpperArm_R end
|
||||
if part_name == "Left_UpperArm" then return BodyPartType.Torso_Upper end
|
||||
end
|
||||
|
||||
function TocFindCorrectClothingProsthesis(item_name, part_name)
|
||||
|
||||
local correct_name = "TOC.Prost_" .. part_name .. "_" .. item_name
|
||||
|
||||
Reference in New Issue
Block a user