Add more death messages
This commit is contained in:
parent
8970bd16ef
commit
95e8f80f2c
5 changed files with 9 additions and 23 deletions
|
@ -24,7 +24,8 @@ local function do_tnt_physics(tnt_np,tntr)
|
|||
if v ~= nil then
|
||||
obj:setvelocity({x=(p.x - tnt_np.x) + (tntr / 4) + v.x, y=(p.y - tnt_np.y) + (tntr / 2) + v.y, z=(p.z - tnt_np.z) + (tntr / 4) + v.z})
|
||||
else
|
||||
if obj:is_player() ~= nil then
|
||||
if obj:is_player() == true then
|
||||
mcl_death_messages.player_damage(obj, string.format("%s was caught in an explosion.", obj:get_player_name()))
|
||||
obj:set_hp(obj:get_hp() - 1)
|
||||
mcl_hunger.exhaust(obj:get_player_name(), mcl_hunger.EXHAUST_DAMAGE)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue