Add setting to adjust loudness of explostion

This commit is contained in:
Jordan Irwin
2021-05-08 16:58:10 -07:00
parent 1aff8fee5b
commit 969cac3860
3 changed files with 12 additions and 1 deletions

View File

@@ -266,7 +266,8 @@ def.on_step = function(self, dtime)
if self.visualx >= 2 then
self.object:remove()
sneeker.boom(pos, self.powered)
core.sound_play("sneeker_explode", {pos=pos, gain=1.5, max_hear_distance=2*64})
core.sound_play("sneeker_explode", {pos=pos, gain=sneeker.boom_gain, max_hear_distance=2*64})
return true
end
end
end