stuff for prosthesis models
This commit is contained in:
@@ -354,6 +354,7 @@ function TheOnlyCure.EquipProsthesis(part_name, prosthesis_base_name)
|
||||
player:setWornItem(added_prosthesis:getBodyLocation(), added_prosthesis)
|
||||
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ function ISInstallProsthesis:start()
|
||||
self.item:setJobDelta(0.0)
|
||||
|
||||
|
||||
|
||||
self:setActionAnim("WearClothing")
|
||||
self:setAnimVariable("WearClothingLocation", "Jacket")
|
||||
|
||||
|
||||
@@ -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.
Binary file not shown.
BIN
media/models_X/WorldItems/hook.fbx
Normal file
BIN
media/models_X/WorldItems/hook.fbx
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
16
media/scripts/TOC_models_item.txt
Normal file
16
media/scripts/TOC_models_item.txt
Normal 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,
|
||||
}
|
||||
}
|
||||
BIN
media/textures/WorldItems/metal.png
Normal file
BIN
media/textures/WorldItems/metal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
BIN
media/textures/WorldItems/wood.png
Normal file
BIN
media/textures/WorldItems/wood.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
Reference in New Issue
Block a user