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()
|
||||
|
||||
Reference in New Issue
Block a user