Call sound groups directly
This commit is contained in:
parent
b6561dc8f4
commit
0536311f0e
@ -197,7 +197,7 @@ end
|
|||||||
local function expand(self)
|
local function expand(self)
|
||||||
if self.expanding and self.visualx < 2 then
|
if self.expanding and self.visualx < 2 then
|
||||||
if self.hiss == false and sounds then
|
if self.hiss == false and sounds then
|
||||||
sounds.fuse:play(1, {object=self.object, gain=1.5, max_hear_distance=2*64})
|
sounds.fuse(1, {object=self.object, gain=1.5, max_hear_distance=2*64})
|
||||||
end
|
end
|
||||||
self.visualx = self.visualx+0.05
|
self.visualx = self.visualx+0.05
|
||||||
self.object:set_properties({
|
self.object:set_properties({
|
||||||
|
@ -308,7 +308,7 @@ function sneeker.boom(pos, large)
|
|||||||
radius = large_radius
|
radius = large_radius
|
||||||
end
|
end
|
||||||
if sounds then
|
if sounds then
|
||||||
sounds.explosion:play(1, {pos=pos, gain=sneeker.boom_gain, max_hear_distance=2*64})
|
sounds.explosion(1, {pos=pos, gain=sneeker.boom_gain, max_hear_distance=2*64})
|
||||||
end
|
end
|
||||||
core.set_node(pos, {name="tnt:boom"})
|
core.set_node(pos, {name="tnt:boom"})
|
||||||
core.get_node_timer(pos):start(0.5)
|
core.get_node_timer(pos):start(0.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user