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