From 164721f6da953e2a98bfd5e49a90e8ae8828f69c Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sat, 16 Nov 2024 11:26:26 -0500 Subject: [PATCH] display poly death messages better --- quant.ew/files/system/polymorph/polymorph.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quant.ew/files/system/polymorph/polymorph.lua b/quant.ew/files/system/polymorph/polymorph.lua index 000de873..3032a5ec 100644 --- a/quant.ew/files/system/polymorph/polymorph.lua +++ b/quant.ew/files/system/polymorph/polymorph.lua @@ -89,6 +89,11 @@ function module.on_world_update_post() local ent = np.GetPlayerEntity() if ent ~= nil and ent ~= ctx.my_player.entity then 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