mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Moved, renamed sounds, and added code for them
- Added code pieces for handling sounds - Moved sounds and renamed them using the naming convention - Added soundset as dependency for returnmirror and awards
This commit is contained in:
parent
9bb085c05f
commit
35c8c024fe
@ -310,6 +310,7 @@ function awards.give_achievement(name, award)
|
||||
|
||||
-- save playertable
|
||||
awards.save()
|
||||
minetest.sound_play("award_award_won", {to_player = name, gain = 0.5*soundset.get_gain(name,"other")})
|
||||
end
|
||||
end
|
||||
|
||||
|
1
mods/awards/depends.txt
Normal file
1
mods/awards/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
soundset
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
soundset
|
||||
mana?
|
||||
|
@ -39,7 +39,7 @@ minetest.register_tool("returnmirror:mirror_inactive", {
|
||||
local pos = placer:getpos()
|
||||
local newitem = ItemStack("returnmirror:mirror_active")
|
||||
newitem:set_metadata(minetest.pos_to_string(pos))
|
||||
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12})
|
||||
minetest.sound_play({name="returnmirror_set", gain=1*soundset.get_gain(placer:get_player_name(),"other")}, {pos=pos, max_hear_distance=12})
|
||||
return newitem
|
||||
end
|
||||
end,
|
||||
|
BIN
mods/returnmirror/sounds/olds/returnmirror_teleport.ogg
Normal file
BIN
mods/returnmirror/sounds/olds/returnmirror_teleport.ogg
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user