86 lines
2.1 KiB
XML
86 lines
2.1 KiB
XML
|
<Entity name="shield_entity" tags="energy_shield">
|
||
|
<InheritTransformComponent>
|
||
|
</InheritTransformComponent>
|
||
|
<SpriteComponent
|
||
|
_tags="shield,disabled_at_start"
|
||
|
_enabled="0"
|
||
|
image_file="data/entities/animals/boss_centipede/boss_centipede_shield.png"
|
||
|
alpha="1"
|
||
|
emissive="1"
|
||
|
offset_x="50"
|
||
|
offset_y="50"
|
||
|
update_transform_rotation="0"
|
||
|
>
|
||
|
</SpriteComponent>
|
||
|
<LightComponent
|
||
|
_tags="shield,disabled_at_start"
|
||
|
_enabled="0"
|
||
|
radius="150"
|
||
|
r="255"
|
||
|
g="35"
|
||
|
b="255">
|
||
|
</LightComponent>
|
||
|
<!-- projectile attraction & conversion -->
|
||
|
<LuaComponent
|
||
|
_tags="shield,disabled_at_start"
|
||
|
_enabled="0"
|
||
|
script_source_file="data/entities/animals/boss_centipede/boss_centipede_shield.lua"
|
||
|
execute_every_n_frame="1"
|
||
|
>
|
||
|
</LuaComponent>
|
||
|
<!-- FX -->
|
||
|
<!-- attracted particles -->
|
||
|
<ParticleEmitterComponent
|
||
|
_tags="shield,disabled_at_start"
|
||
|
_enabled="0"
|
||
|
emitted_material_name="plasma_fading_pink"
|
||
|
gravity.y="0.0"
|
||
|
lifetime_min="0.5"
|
||
|
lifetime_max="1.0"
|
||
|
count_min="2"
|
||
|
count_max="4"
|
||
|
render_on_grid="1"
|
||
|
fade_based_on_lifetime="1"
|
||
|
area_circle_radius.max="50"
|
||
|
cosmetic_force_create="0"
|
||
|
airflow_force="0.5"
|
||
|
airflow_time="0.01"
|
||
|
airflow_scale="0.05"
|
||
|
emission_interval_min_frames="1"
|
||
|
emission_interval_max_frames="1"
|
||
|
emit_cosmetic_particles="1"
|
||
|
is_emitting="1"
|
||
|
draw_as_long="1"
|
||
|
attractor_force="12"
|
||
|
>
|
||
|
</ParticleEmitterComponent>
|
||
|
<!-- outer ring -->
|
||
|
<ParticleEmitterComponent
|
||
|
_tags="shield,disabled_at_start"
|
||
|
_enabled="0"
|
||
|
emitted_material_name="plasma_fading_pink"
|
||
|
gravity.y="0.0"
|
||
|
lifetime_min="0.05"
|
||
|
lifetime_max="0.2"
|
||
|
count_min="10"
|
||
|
count_max="30"
|
||
|
render_on_grid="1"
|
||
|
fade_based_on_lifetime="1"
|
||
|
area_circle_radius.min="50"
|
||
|
area_circle_radius.max="50"
|
||
|
cosmetic_force_create="0"
|
||
|
airflow_force="0.3"
|
||
|
airflow_time="0.01"
|
||
|
airflow_scale="0.05"
|
||
|
emission_interval_min_frames="1"
|
||
|
emission_interval_max_frames="1"
|
||
|
emit_cosmetic_particles="1"
|
||
|
is_emitting="1" >
|
||
|
</ParticleEmitterComponent>
|
||
|
|
||
|
<AudioComponent
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_root="animals/boss_centipede/shield" >
|
||
|
</AudioComponent>
|
||
|
|
||
|
</Entity>
|