From 78d65dd847fe5ccfd52f916d1af0bdc4df4f2575 Mon Sep 17 00:00:00 2001 From: IQuant Date: Mon, 16 Sep 2024 18:42:20 +0300 Subject: [PATCH] Make respawn effect circle green to make things a bit easier to see. --- .../entities/magical_symbol_player.xml | 32 +++++++++++++++++++ .../system/local_health/local_health.lua | 10 ++++-- 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 quant.ew/files/system/local_health/entities/magical_symbol_player.xml diff --git a/quant.ew/files/system/local_health/entities/magical_symbol_player.xml b/quant.ew/files/system/local_health/entities/magical_symbol_player.xml new file mode 100644 index 00000000..fe5ed20b --- /dev/null +++ b/quant.ew/files/system/local_health/entities/magical_symbol_player.xml @@ -0,0 +1,32 @@ + + + + + + + + + + diff --git a/quant.ew/files/system/local_health/local_health.lua b/quant.ew/files/system/local_health/local_health.lua index 1386d8b4..9901f5d4 100644 --- a/quant.ew/files/system/local_health/local_health.lua +++ b/quant.ew/files/system/local_health/local_health.lua @@ -25,7 +25,7 @@ local function do_switch_effect(short) return end local x, y = EntityGetTransform(ctx.my_player.entity) - rpc.switch_effect(x, y) + rpc.switch_effect(x, y, short) if short then LoadGameEffectEntityTo(ctx.my_player.entity, "mods/quant.ew/files/system/local_health/notplayer/safe_effect2.xml") else @@ -315,8 +315,12 @@ function rpc.send_status(status) end rpc.opts_everywhere() -function rpc.switch_effect(x, y) - EntityLoad("data/entities/particles/image_emitters/magical_symbol_fast.xml", x, y) +function rpc.switch_effect(x, y, to_normal_player) + if to_normal_player then + EntityLoad("mods/quant.ew/files/system/local_health/entities/magical_symbol_player.xml", x, y) + else + EntityLoad("data/entities/particles/image_emitters/magical_symbol_fast.xml", x, y) + end end return module \ No newline at end of file