Use sounds mod for "hiss" & delete sounds from unknown source
This commit is contained in:
parent
0adc6635c4
commit
b6561dc8f4
@ -1,4 +1,9 @@
|
||||
|
||||
next
|
||||
----
|
||||
- uses "sounds" mod
|
||||
|
||||
|
||||
v1.1
|
||||
----
|
||||
- added sound when hit
|
||||
@ -7,6 +12,7 @@ v1.1
|
||||
- added setting to customize spawn nodes
|
||||
- added simple_protection support
|
||||
|
||||
|
||||
v1.0
|
||||
----
|
||||
- forked & renamed from Rui's original "creeper" mod
|
||||
|
@ -196,8 +196,8 @@ end
|
||||
|
||||
local function expand(self)
|
||||
if self.expanding and self.visualx < 2 then
|
||||
if self.hiss == false then
|
||||
core.sound_play("sneeker_hiss", {object=self.object, gain=1.5, max_hear_distance=2*64})
|
||||
if self.hiss == false and sounds then
|
||||
sounds.fuse:play(1, {object=self.object, gain=1.5, max_hear_distance=2*64})
|
||||
end
|
||||
self.visualx = self.visualx+0.05
|
||||
self.object:set_properties({
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user