mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-27 02:19:33 +01:00
Play damage sound when player dies
This commit is contained in:
parent
eed223b3fe
commit
ae8b7550ac
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue