1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00: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:
LeMagnesium 2015-04-04 15:24:20 +02:00
parent 9bb085c05f
commit 35c8c024fe
8 changed files with 4 additions and 1 deletions

View File

@ -310,6 +310,7 @@ function awards.give_achievement(name, award)
-- save playertable -- save playertable
awards.save() awards.save()
minetest.sound_play("award_award_won", {to_player = name, gain = 0.5*soundset.get_gain(name,"other")})
end end
end end

1
mods/awards/depends.txt Normal file
View File

@ -0,0 +1 @@
soundset

Binary file not shown.

View File

@ -1 +1,2 @@
soundset
mana? mana?

View File

@ -39,7 +39,7 @@ minetest.register_tool("returnmirror:mirror_inactive", {
local pos = placer:getpos() local pos = placer:getpos()
local newitem = ItemStack("returnmirror:mirror_active") local newitem = ItemStack("returnmirror:mirror_active")
newitem:set_metadata(minetest.pos_to_string(pos)) 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 return newitem
end end
end, end,