153 lines
3.7 KiB
XML
153 lines
3.7 KiB
XML
<Entity name="$animal_failed_alchemist">
|
|
|
|
<Base file="data/entities/base_enemy_basic.xml" >
|
|
<AnimalAIComponent
|
|
escape_if_damaged_probability="0"
|
|
hide_from_prey="1"
|
|
hide_from_prey_target_distance="200"
|
|
hide_from_prey_time="480"
|
|
attack_melee_damage_min="2.0"
|
|
attack_melee_damage_max="3.6"
|
|
attack_melee_max_distance="20"
|
|
needs_food="0"
|
|
can_fly="0"
|
|
aggressiveness_min="1"
|
|
aggressiveness_max="80"
|
|
attack_melee_action_frame="6"
|
|
attack_melee_finish_enabled="1"
|
|
attack_melee_finish_action_frame="6"
|
|
>
|
|
<attack_melee_finish_config_explosion
|
|
camera_shake="2"
|
|
explosion_radius="4"
|
|
explosion_sprite="data/particles/explosion_016_plasma_pink.xml"
|
|
explosion_sprite_lifetime="1"
|
|
create_cell_probability="0"
|
|
hole_destroy_liquid="0"
|
|
hole_enabled="1"
|
|
particle_effect="0"
|
|
damage="1.0"
|
|
damage_mortals="1"
|
|
physics_explosion_power.min="0.2"
|
|
physics_explosion_power.max="0.6"
|
|
physics_throw_enabled="1"
|
|
shake_vegetation="1"
|
|
sparks_enabled="1"
|
|
spark_material="spark_purple_bright"
|
|
sparks_count_min="10"
|
|
sparks_count_max="20"
|
|
stains_radius="2"
|
|
stains_enabled="1" >
|
|
</attack_melee_finish_config_explosion>
|
|
</AnimalAIComponent>
|
|
|
|
<SpriteComponent
|
|
image_file="data/enemies_gfx/failed_alchemist.xml"
|
|
offset_x="0"
|
|
offset_y="0" >
|
|
</SpriteComponent>
|
|
|
|
<DamageModelComponent
|
|
hp="4"
|
|
ragdoll_material="bone_box2d"
|
|
ragdoll_filenames_file="data/ragdolls/failed_alchemist/filenames.txt"
|
|
blood_material="bone"
|
|
blood_spray_material="bone"
|
|
fire_probability_of_ignition="0"
|
|
ragdoll_offset_y="-10"
|
|
fire_probability_of_ignition="0"
|
|
air_needed="0"
|
|
>
|
|
<damage_multipliers
|
|
projectile="0.6"
|
|
fire="0.2"
|
|
electricity="0.6"
|
|
slice="1.2"
|
|
>
|
|
</damage_multipliers>
|
|
</DamageModelComponent>
|
|
|
|
<PathFindingComponent
|
|
can_jump="1"
|
|
can_fly="0"
|
|
frames_to_get_stuck="20" >
|
|
</PathFindingComponent>
|
|
|
|
<PathFindingGridMarkerComponent
|
|
marker_work_flag="24" >
|
|
</PathFindingGridMarkerComponent>
|
|
|
|
<HitboxComponent
|
|
_enabled="1"
|
|
aabb_max_x="8"
|
|
aabb_max_y="2"
|
|
aabb_min_x="-8"
|
|
aabb_min_y="-24" >
|
|
</HitboxComponent>
|
|
|
|
<CharacterPlatformingComponent
|
|
jump_velocity_y="-240"
|
|
run_velocity="12"
|
|
swim_idle_buoyancy_coeff="0.8" >
|
|
</CharacterPlatformingComponent>
|
|
|
|
<GenomeDataComponent
|
|
herd_id="mage"
|
|
food_chain_rank="5"
|
|
is_predator="1" >
|
|
</GenomeDataComponent>
|
|
|
|
<CharacterDataComponent
|
|
collision_aabb_min_x="-3.0"
|
|
collision_aabb_max_x="3.0"
|
|
collision_aabb_min_y="-20"
|
|
collision_aabb_max_y="3"
|
|
mass="1.8" >
|
|
</CharacterDataComponent>
|
|
</Base>
|
|
|
|
<AudioComponent
|
|
file="data/audio/Desktop/animals.bank"
|
|
event_root="animals/failed_alchemist" >
|
|
</AudioComponent>
|
|
|
|
<ItemPickUpperComponent
|
|
is_in_npc="1">
|
|
</ItemPickUpperComponent>
|
|
|
|
<ParticleEmitterComponent
|
|
emitted_material_name="spark_purple_bright"
|
|
gravity.y="0.0"
|
|
lifetime_min="0.4"
|
|
lifetime_max="0.7"
|
|
count_min="20"
|
|
count_max="30"
|
|
render_on_grid="1"
|
|
fade_based_on_lifetime="1"
|
|
area_circle_radius.min="32"
|
|
area_circle_radius.max="72"
|
|
cosmetic_force_create="0"
|
|
airflow_force="1.5"
|
|
airflow_time="1.9"
|
|
airflow_scale="0.15"
|
|
emission_interval_min_frames="1"
|
|
emission_interval_max_frames="1"
|
|
emit_cosmetic_particles="1"
|
|
draw_as_long="1"
|
|
x_vel_min="-1"
|
|
x_vel_max="1"
|
|
y_vel_min="-1"
|
|
y_vel_max="1"
|
|
is_emitting="1"
|
|
velocity_always_away_from_center="200"
|
|
>
|
|
</ParticleEmitterComponent>
|
|
|
|
<LuaComponent
|
|
script_source_file="data/scripts/animals/failed_alchemist_aura.lua"
|
|
execute_every_n_frame="101"
|
|
>
|
|
</LuaComponent>
|
|
|
|
</Entity>
|