display poly death messages better

This commit is contained in:
bgkillas 2024-11-16 11:26:26 -05:00
parent fc9ba4ee06
commit 164721f6da

View file

@ -89,6 +89,11 @@ function module.on_world_update_post()
local ent = np.GetPlayerEntity() local ent = np.GetPlayerEntity()
if ent ~= nil and ent ~= ctx.my_player.entity then if ent ~= nil and ent ~= ctx.my_player.entity then
module.switch_entity(ent) module.switch_entity(ent)
if ctx.proxy_opt.game_mode == "local_health" then
util.ensure_component_present(ent, "LuaComponent", "ew_player_damage", {
script_damage_received = "mods/quant.ew/files/system/local_health/grab_damage_message.lua"
})
end
end end
end end