Added beginning of sounds in death_messages

- Added table containing sounds played when player dies, further adding of
  sounds will come from Obani/ObaniGemini
This commit is contained in:
LeMagnesium 2015-03-31 22:31:28 +02:00
parent bd06b0f1ab
commit a9449a276f
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1 @@
soundset

View File

@ -10,6 +10,11 @@ dofile(minetest.get_modpath("death_messages").."/settings.txt")
local messages = {}
-- Fill this table with sounds
local sounds = {
[1] = "death_messages_death_1.ogg",
}
-- Lava death messages
messages.lava = {
" pensait que la lave etait cool.",
@ -78,7 +83,7 @@ if RANDOM_MESSAGES == true then
else
minetest.chat_send_all(player_name .. messages.other[math.random(1,#messages.other)] )
end
minetest.sound_play({name = sounds[math.random(1,#messages.other)],gain=0.5*sounds.get_gain(player:get_player_name(),"other")})
end)
else
@ -101,7 +106,7 @@ else
else
minetest.chat_send_all(player_name .. " died.")
end
minetest.sound_play({name = sounds[math.random(1,#messages.other)],gain=0.5*sounds.get_gain(player:get_player_name(),"other")})
end)
end

Binary file not shown.