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 = {}
|
||||
|
||||
-- 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
|
||||
|
||||
|
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