Use lad-free player damage sound
This commit is contained in:
parent
8c851f07e4
commit
45295d6dc2
@ -17,15 +17,6 @@ local function step(dtime)
|
|||||||
|
|
||||||
player_lastpos[name] = player:get_pos()
|
player_lastpos[name] = player:get_pos()
|
||||||
|
|
||||||
if player:get_hp() < player_health[name] then
|
|
||||||
minetest.sound_play(
|
|
||||||
"default_hurt",
|
|
||||||
{
|
|
||||||
pos = player_pos,
|
|
||||||
max_hear_distance = 4,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
player_health[name] = player:get_hp()
|
player_health[name] = player:get_hp()
|
||||||
|
|
||||||
head_pos.x=math.floor(head_pos.x+0.5)
|
head_pos.x=math.floor(head_pos.x+0.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user