Play damage sound when player dies

Wuzzy 2017-11-21 23:38:20 +01:00
parent eed223b3fe
commit ae8b7550ac

@ -134,3 +134,10 @@ function mcl_sounds.node_sound_water_defaults(table)
mcl_sounds.node_sound_defaults(table)
return table
end
-- Player death sound
minetest.register_on_dieplayer(function(player)
-- TODO: Add separate death sound
minetest.sound_play({name="player_damage", gain = 1.0}, {pos=player:get_pos(), max_hear_distance=16})
end)