fixed amputation sound

This commit is contained in:
Pao
2023-01-28 19:40:39 +01:00
parent 70e431beef
commit 38489a3194
5 changed files with 24 additions and 13 deletions

View File

@@ -22,11 +22,22 @@ function ISCutLimb:update()
end
end
function ISCutLimb:stop()
self.character:getEmitter():stopSoundByName("Amputation_Sound")
end
function ISCutLimb:start()
self:setActionAnim("SawLog")
local saw_item = TocGetSawInInventory(self.surgeon)
self.sound = self.character:getEmitter():playSound("Amputation_Sound")
-- Return whatever object we've got in the inventory
if self.surgeon:getPrimaryHandItem() then

View File

@@ -21,10 +21,10 @@ function ISOperateLimb:update()
end
function ISOperateLimb:start()
self:setActionAnim("MedicalCheck");
self:setActionAnim("MedicalCheck")
if self.use_oven then
self.sound = self.patient:getEmitter():playSound("Burn_sound")
self:forceComplete();
self.sound = self.patient:getEmitter():playSound("Burn_sound") -- TODO currently broken, but maybe that's good
self:forceComplete()
end
end