stuff for prosthesis models

This commit is contained in:
Pao
2023-01-26 00:56:23 +01:00
parent 49a1f478ac
commit 80070bf370
10 changed files with 24 additions and 1 deletions

View File

@@ -354,6 +354,7 @@ function TheOnlyCure.EquipProsthesis(part_name, prosthesis_base_name)
player:setWornItem(added_prosthesis:getBodyLocation(), added_prosthesis)
end
end

View File

@@ -15,6 +15,7 @@ function ISInstallProsthesis:start()
self.item:setJobDelta(0.0)
self:setActionAnim("WearClothing")
self:setAnimVariable("WearClothingLocation", "Jacket")

View File

@@ -28,6 +28,9 @@ function ISUninstallProsthesis:start()
elseif self.item:IsInventoryContainer() and self.item:canBeEquipped() ~= "" then
self:setAnimVariable("WearClothingLocation", "Jacket")
end
self.character:setPrimaryHandItem(nil)
self.character:setSecondaryHandItem(self.item)
end
function ISUninstallProsthesis:stop()

Binary file not shown.

View File

@@ -317,7 +317,6 @@ imports
/************************ Prothese items ************************/
/* TODO make it clothing same as amputations */
item WoodenHook
{
Weight = 1,
@@ -326,6 +325,7 @@ item WoodenHook
DisplayName = DisplayName_woodenHook,
Icon = woodenHook,
Tooltip = Tooltip_prosthesic_limb,
WorldStaticModel = TOC.WoodenHook,
}
item MetalHook
@@ -336,6 +336,8 @@ item MetalHook
DisplayName = DisplayName_metalHook,
Icon = metalHook,
Tooltip = Tooltip_prosthesic_limb,
WorldStaticModel = TOC.MetalHook,
}
item MetalHand

View File

@@ -0,0 +1,16 @@
module TOC
{
model WoodenHook
{
mesh = WorldItems/hook,
texture = WorldItems/metal,
scale = 0.15,
}
model WoodenHook
{
mesh = WorldItems/hook,
texture = WorldItems/wood,
scale = 0.15,
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB