Consistency/data/entities/animals/boss_centipede/orb_homing.xml

219 lines
4.9 KiB
XML

<Entity
tags="hittable"
name="$projectile_default"
>
<Base file="data/entities/base_projectile.xml" >
<VelocityComponent
gravity_y="0"
air_friction="0"
mass="0.8"
>
</VelocityComponent>
</Base>
<HomingComponent
target_tag="prey"
homing_targeting_coeff="3"
detect_distance="350"
homing_velocity_multiplier="0.99"
>
</HomingComponent>
<!-- NOTE: muzzle_flash_file did not seem to work... Used lua component instead. -->
<ProjectileComponent
_enabled="1"
lob_min="0.8"
lob_max="1.0"
speed_min="100"
speed_max="120"
die_on_low_velocity="0"
on_death_explode="1"
on_death_gfx_leave_sprite="0"
on_lifetime_out_explode="1"
explosion_dont_damage_shooter="1"
damage="0"
on_collision_die="1"
bounce_always="1"
bounces_left="20"
lifetime="400"
knockback_force="1.5"
velocity_sets_rotation="1"
shoot_light_flash_r="50"
shoot_light_flash_g="50"
shoot_light_flash_b="255"
shoot_light_flash_radius="175"
>
<damage_by_type electricity="0.15" >
</damage_by_type>
<config_explosion
never_cache="1"
camera_shake="4.0"
explosion_radius="15"
explosion_sprite="data/particles/explosion_032_plasma.xml"
explosion_sprite_lifetime="0.0"
create_cell_probability="1"
create_cell_material="plasma_fading"
ray_energy="1000"
hole_destroy_liquid="1"
hole_enabled="1"
damage = "0.2"
hole_image="data/temp/explosion_hole.png"
explosion_sprite_emissive="0"
explosion_sprite_additive="1"
particle_effect="0"
damage_mortals="1"
physics_explosion_power.min="0.1"
physics_explosion_power.max="0.2"
physics_throw_enabled="0"
shake_vegetation="1"
sparks_enabled="1"
sparks_count_max="8"
sparks_count_min="4"
spark_material="plasma_fading"
light_fade_time="1.2"
light_r="155"
light_g="15"
light_b="140"
stains_enabled="1"
stains_image="data/temp/explosion_stain.png"
audio_enabled="0" >
</config_explosion>
</ProjectileComponent>
<!--
<RotateTowardsComponent />
-->
<SpriteComponent
_enabled="1"
alpha="1"
image_file="data/entities/animals/boss_centipede/bug_blue.xml"
next_rect_animation=""
rect_animation="fireball"
emissive="1"
update_transform_rotation="1"
>
</SpriteComponent>
<SpriteParticleEmitterComponent
sprite_file="data/particles/spark_electric.xml"
delay="0"
lifetime="0"
color.r="0.8" color.g="1" color.b="1" color.a="1"
color_change.r="0" color_change.g="0" color_change.b="0" color_change.a="0"
velocity.x="0" velocity.y="0"
gravity.x="0" gravity.y="10"
velocity_slowdown="0"
rotation="0"
angular_velocity="0"
entity_velocity_multiplier="0.85"
use_velocity_as_rotation="0"
scale.x="1" scale.y="1"
emission_interval_min_frames="4"
emission_interval_max_frames="12"
count_min="1" count_max="1"
randomize_rotation.min="-3.1415"
randomize_rotation.max="3.1415"
randomize_position.min_x="-3"
randomize_position.max_x="3"
randomize_position.min_y="-3"
randomize_position.max_y="3"
>
</SpriteParticleEmitterComponent>
<ParticleEmitterComponent
emitted_material_name="spark_blue"
offset.x="0"
offset.y="0"
gravity.y="20"
x_pos_offset_min="-3"
x_pos_offset_max="3"
y_pos_offset_min="-3"
y_pos_offset_max="-3"
x_vel_min="-10"
x_vel_max="10"
y_vel_min="-80"
y_vel_max="-10"
count_min="1"
count_max="1"
lifetime_min="0.4"
lifetime_max="3.8"
create_real_particles="0"
emit_cosmetic_particles="1"
emission_interval_min_frames="1"
emission_interval_max_frames="5"
is_emitting="1" >
</ParticleEmitterComponent>
<LightComponent
_enabled="1"
radius="150"
r="150"
g="35"
b="120">
</LightComponent>
<AudioComponent
file="data/audio/Desktop/projectiles.bank"
event_root="projectiles/orb_b" >
</AudioComponent>
<AudioLoopComponent
file="data/audio/Desktop/projectiles.bank"
event_name="projectiles/electric/loop"
auto_play="1">
</AudioLoopComponent>
<LuaComponent
script_source_file="data/entities/animals/boss_centipede/orb_homing.lua"
execute_on_removed="1"
execute_every_n_frame="-1"
>
</LuaComponent>
<LuaComponent
script_damage_received="data/entities/animals/boss_centipede/orb_homing_onhit.lua"
execute_every_n_frame="-1"
>
</LuaComponent>
<LuaComponent
script_source_file="data/entities/animals/boss_centipede/orb_homing_spawn.lua"
execute_on_added="1"
execute_every_n_frame="-1"
remove_after_executed="1"
>
</LuaComponent>
<HitboxComponent
_enabled="1"
aabb_min_x="-5"
aabb_max_x="5"
aabb_min_y="-5"
aabb_max_y="5" >
</HitboxComponent>
<DamageModelComponent
_enabled="1"
hp="1.5"
fire_probability_of_ignition="0"
falling_damages="0"
air_needed="0"
materials_damage="0"
ragdoll_filenames_file=""
blood_material="spark"
blood_multiplier="0"
create_ragdoll="0"
minimum_knockback_force="0"
>
</DamageModelComponent>
<VariableStorageComponent
name="projectile_file"
value_string="data/entities/animals/boss_centipede/orb_homing.xml"
>
</VariableStorageComponent>
</Entity>