mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
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:
parent
bd06b0f1ab
commit
a9449a276f
@ -0,0 +1 @@
|
|||||||
|
soundset
|
@ -10,6 +10,11 @@ dofile(minetest.get_modpath("death_messages").."/settings.txt")
|
|||||||
|
|
||||||
local messages = {}
|
local messages = {}
|
||||||
|
|
||||||
|
-- Fill this table with sounds
|
||||||
|
local sounds = {
|
||||||
|
[1] = "death_messages_death_1.ogg",
|
||||||
|
}
|
||||||
|
|
||||||
-- Lava death messages
|
-- Lava death messages
|
||||||
messages.lava = {
|
messages.lava = {
|
||||||
" pensait que la lave etait cool.",
|
" pensait que la lave etait cool.",
|
||||||
@ -78,7 +83,7 @@ if RANDOM_MESSAGES == true then
|
|||||||
else
|
else
|
||||||
minetest.chat_send_all(player_name .. messages.other[math.random(1,#messages.other)] )
|
minetest.chat_send_all(player_name .. messages.other[math.random(1,#messages.other)] )
|
||||||
end
|
end
|
||||||
|
minetest.sound_play({name = sounds[math.random(1,#messages.other)],gain=0.5*sounds.get_gain(player:get_player_name(),"other")})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -101,7 +106,7 @@ else
|
|||||||
else
|
else
|
||||||
minetest.chat_send_all(player_name .. " died.")
|
minetest.chat_send_all(player_name .. " died.")
|
||||||
end
|
end
|
||||||
|
minetest.sound_play({name = sounds[math.random(1,#messages.other)],gain=0.5*sounds.get_gain(player:get_player_name(),"other")})
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
BIN
mods/death_messages/sounds/death_messages_death_1.ogg
Normal file
BIN
mods/death_messages/sounds/death_messages_death_1.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user