Add simple parachute sounds

This commit is contained in:
Wuzzy 2021-08-08 13:42:27 +02:00
parent 74d31d9213
commit d5cf3dda79
4 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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

Binary file not shown.

Binary file not shown.