fixed amputation sound
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -23,4 +23,4 @@ local function AddProfession()
|
||||
end
|
||||
end
|
||||
|
||||
Events.OnGameBoot.Add(AddProfession);
|
||||
Events.OnGameBoot.Add(AddProfession)
|
||||
Reference in New Issue
Block a user