mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-04 16:53:46 +01:00
Play damage sound when player dies
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)
|
||||
|
Loading…
Reference in New Issue
Block a user