forked from Mirrorlandia_minetest/mod-sneeker
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
|
v1.1
|
||||||
----
|
----
|
||||||
- added sound when hit
|
- added sound when hit
|
||||||
@ -7,6 +12,7 @@ v1.1
|
|||||||
- added setting to customize spawn nodes
|
- added setting to customize spawn nodes
|
||||||
- added simple_protection support
|
- added simple_protection support
|
||||||
|
|
||||||
|
|
||||||
v1.0
|
v1.0
|
||||||
----
|
----
|
||||||
- forked & renamed from Rui's original "creeper" mod
|
- forked & renamed from Rui's original "creeper" mod
|
||||||
|
@ -196,8 +196,8 @@ 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 then
|
if self.hiss == false and sounds then
|
||||||
core.sound_play("sneeker_hiss", {object=self.object, gain=1.5, max_hear_distance=2*64})
|
sounds.fuse:play(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({
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user