Fixed some sound related stuff
This commit is contained in:
@@ -24,30 +24,18 @@ function JCIO_CutLimbAction:update()
|
|||||||
self.surgeon:faceThisObject(self.patient)
|
self.surgeon:faceThisObject(self.patient)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local worldSoundRadius = 3
|
|
||||||
|
|
||||||
local soundDelay = 6
|
|
||||||
|
|
||||||
-- Sound handling
|
-- Sound handling
|
||||||
if self.soundTime + soundDelay < getTimestamp() then
|
if self.soundTime < getTimestamp() then
|
||||||
|
|
||||||
self.soundTime = getTimestamp()
|
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")
|
self.sawSound = self.character:getEmitter():playSound("Amputation_Sound")
|
||||||
|
addSound(self.surgeon, self.surgeon:getX(), self.surgeon:getY(), self.surgeon:getZ(), 3, 3)
|
||||||
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
function JCIO_CutLimbAction:stop()
|
function JCIO_CutLimbAction:stop()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Sandbox_EN = {
|
Sandbox_EN = {
|
||||||
Sandbox_JCIO = "JUST CUT IT OFF",
|
Sandbox_JCIO = "Just Cut It Off",
|
||||||
|
|
||||||
Sandbox_JCIO_RollUpSleeves = "Roll up sleeves",
|
Sandbox_JCIO_RollUpSleeves = "Roll up sleeves",
|
||||||
Sandbox_JCIO_RollUpSleeves_tooltip = "Currently broken, will not do anything",
|
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_CicatrizationSpeedMultiplier_tooltip = "Customize this to make the cicatrization process faster",
|
||||||
|
|
||||||
Sandbox_JCIO_AmputationTimeMultiplier = "Amputation Time Scaler",
|
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",
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user