1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00

fix mores bug

fix wrong param
adapt to new soundset version due to conflict name with death_messages
This commit is contained in:
crabman77 2015-04-01 01:56:03 +02:00
parent 3618b1c014
commit 1bab0c5b74

View File

@ -12,7 +12,7 @@ local messages = {}
-- Fill this table with sounds -- Fill this table with sounds
local sounds = { local sounds = {
[1] = "death_messages_death_1.ogg", [1] = "death_messages_death_1",
} }
-- Lava death messages -- Lava death messages
@ -83,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")}) minetest.sound_play({name = sounds[math.random(1,#sounds)],gain=0.5*soundset.get_gain(player:get_player_name(),"other")})
end) end)
else else
@ -106,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")}) minetest.sound_play({name = sounds[math.random(1,#sounds)],gain=0.5*soundset.get_gain(player:get_player_name(),"other")})
end) end)
end end