mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Make respawn effect circle green to make things a bit easier to see.
This commit is contained in:
parent
9d0837810c
commit
78d65dd847
2 changed files with 39 additions and 3 deletions
|
@ -0,0 +1,32 @@
|
|||
<Entity>
|
||||
|
||||
<ParticleEmitterComponent
|
||||
emitted_material_name="spark_green"
|
||||
gravity.y="0.0"
|
||||
lifetime_min="2"
|
||||
lifetime_max="5"
|
||||
count_min="4"
|
||||
count_max="4"
|
||||
render_on_grid="1"
|
||||
fade_based_on_lifetime="1"
|
||||
area_circle_radius.min="0"
|
||||
area_circle_radius.max="0"
|
||||
cosmetic_force_create="0"
|
||||
airflow_force="0.251"
|
||||
airflow_time="1.01"
|
||||
airflow_scale="0.05"
|
||||
emission_interval_min_frames="1"
|
||||
emission_interval_max_frames="1"
|
||||
emit_cosmetic_particles="1"
|
||||
image_animation_file="data/particles/image_emitters/animated_emitter_large.png"
|
||||
image_animation_speed="3"
|
||||
image_animation_loop="0"
|
||||
is_emitting="1" >
|
||||
</ParticleEmitterComponent>
|
||||
|
||||
<LifetimeComponent
|
||||
lifetime="260" >
|
||||
</LifetimeComponent>
|
||||
|
||||
</Entity>
|
||||
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue