diff --git a/media/lua/client/TimedActions/JCIO_CutLimbAction.lua b/media/lua/client/TimedActions/JCIO_CutLimbAction.lua index 6214ac9..cbe44c4 100644 --- a/media/lua/client/TimedActions/JCIO_CutLimbAction.lua +++ b/media/lua/client/TimedActions/JCIO_CutLimbAction.lua @@ -24,30 +24,18 @@ function JCIO_CutLimbAction:update() self.surgeon:faceThisObject(self.patient) end - - local worldSoundRadius = 3 - - local soundDelay = 6 - -- Sound handling - if self.soundTime + soundDelay < getTimestamp() then - + if self.soundTime < getTimestamp() then self.soundTime = getTimestamp() - if not self.chatacter:getEmitter():isPlaying(self.sawSound) then + if not self.character:getEmitter():isPlaying(self.sawSound) then + print("JCIO: Running sound again") self.sawSound = self.character:getEmitter():playSound("Amputation_Sound") - + addSound(self.surgeon, self.surgeon:getX(), self.surgeon:getY(), self.surgeon:getZ(), 3, 3) end - - - end - -- TODO This is to handle MP I guess? - if worldSoundRadius > 0 then - self.worldSoundTime = getTimestamp() - addSound(self.surgeon, self.surgeon:getX(), self.surgeon:getY(), self.surgeon:getZ(), worldSoundRadius, worldSoundRadius) - end + end function JCIO_CutLimbAction:stop() diff --git a/media/lua/shared/translate/EN/Sandbox_EN.txt b/media/lua/shared/translate/EN/Sandbox_EN.txt index ef71892..096aae4 100644 --- a/media/lua/shared/translate/EN/Sandbox_EN.txt +++ b/media/lua/shared/translate/EN/Sandbox_EN.txt @@ -1,5 +1,5 @@ Sandbox_EN = { - Sandbox_JCIO = "JUST CUT IT OFF", + Sandbox_JCIO = "Just Cut It Off", Sandbox_JCIO_RollUpSleeves = "Roll up sleeves", Sandbox_JCIO_RollUpSleeves_tooltip = "Currently broken, will not do anything", @@ -8,7 +8,7 @@ Sandbox_EN = { Sandbox_JCIO_CicatrizationSpeedMultiplier_tooltip = "Customize this to make the cicatrization process faster", Sandbox_JCIO_AmputationTimeMultiplier = "Amputation Time Scaler", - Sandbox_JCIO_AmputationTimeMultiplier_tooltip = "Scales the amount of time multplying added after amputation" + Sandbox_JCIO_AmputationTimeMultiplier_tooltip = "Scales the amount of time multplying added after amputation", } \ No newline at end of file