Add simple parachute sounds
This commit is contained in:
parent
74d31d9213
commit
d5cf3dda79
@ -1,8 +1,9 @@
|
|||||||
Parachute mod
|
Parachute mod
|
||||||
=============
|
=============
|
||||||
By webdesigner97
|
By webdesigner97
|
||||||
Tewaked by Kaadmy, for Pixture
|
Tweaked by Kaadmy and, for Pixture/Repixture
|
||||||
|
|
||||||
Model license: CC BY-SA 4.0
|
Model license: CC BY-SA 4.0
|
||||||
Texture license: CC BY-SA 4.0
|
Texture license: CC BY-SA 4.0
|
||||||
|
Sound license: CC BY-SA 4.0
|
||||||
Source license: LGPLv2.1
|
Source license: LGPLv2.1
|
||||||
|
@ -43,6 +43,7 @@ minetest.register_craftitem(
|
|||||||
pos.y = pos.y + 3
|
pos.y = pos.y + 3
|
||||||
|
|
||||||
local ent = minetest.add_entity(pos, "parachute:entity")
|
local ent = minetest.add_entity(pos, "parachute:entity")
|
||||||
|
minetest.sound_play({name="parachute_open", pos=pos}, {gain=0.5}, true)
|
||||||
|
|
||||||
ent:set_velocity(
|
ent:set_velocity(
|
||||||
{
|
{
|
||||||
@ -162,6 +163,7 @@ minetest.register_entity(
|
|||||||
self.object:set_detach()
|
self.object:set_detach()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.sound_play({name="parachute_close", pos=self.object:get_pos()}, {gain=0.5}, true)
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
BIN
mods/parachute/sounds/parachute_close.ogg
Normal file
BIN
mods/parachute/sounds/parachute_close.ogg
Normal file
Binary file not shown.
BIN
mods/parachute/sounds/parachute_open.ogg
Normal file
BIN
mods/parachute/sounds/parachute_open.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user