102 lines
2.5 KiB
XML
102 lines
2.5 KiB
XML
<Entity name="$animal_ant">
|
|
|
|
<Base file="data/entities/base_enemy_basic.xml" >
|
|
<AnimalAIComponent
|
|
_enabled="1"
|
|
preferred_job="JobDefault"
|
|
escape_if_damaged_probability="50"
|
|
attack_melee_damage_min="0.6"
|
|
attack_melee_damage_max="1.0"
|
|
attack_melee_max_distance="15"
|
|
attack_ranged_min_distance="20"
|
|
attack_ranged_max_distance="50"
|
|
creature_detection_range_x="300"
|
|
creature_detection_range_y="300"
|
|
attack_melee_action_frame="3"
|
|
attack_ranged_action_frame="2"
|
|
food_material="blood"
|
|
needs_food="1"
|
|
sense_creatures="1"
|
|
attack_ranged_enabled="1"
|
|
attack_melee_enabled="1"
|
|
can_fly="0"
|
|
attack_ranged_entity_file="data/entities/projectiles/acidburst.xml"
|
|
attack_ranged_frames_between="90" >
|
|
</AnimalAIComponent>
|
|
|
|
<DamageModelComponent
|
|
hp="2.5"
|
|
ragdoll_material="meat_slime"
|
|
ragdoll_filenames_file="data/ragdolls/ant/filenames.txt"
|
|
blood_material="slime"
|
|
blood_spray_material="slime"
|
|
fire_probability_of_ignition="5"
|
|
materials_that_damage="lava,poison,blood_cold,blood_cold_vapour"
|
|
materials_how_much_damage="0.08,0.02,0.016,0.014"
|
|
air_lack_of_damage="0.2"
|
|
air_needed="1"
|
|
blood_sprite_directional="data/particles/bloodsplatters/bloodsplatter_directional_purple_$[1-3].xml"
|
|
blood_sprite_large="data/particles/bloodsplatters/bloodsplatter_purple_$[1-3].xml"
|
|
>
|
|
</DamageModelComponent>
|
|
|
|
<SpriteComponent
|
|
image_file="data/enemies_gfx/ant.xml"
|
|
offset_x="0"
|
|
offset_y="0">
|
|
</SpriteComponent>
|
|
|
|
<PathFindingGridMarkerComponent
|
|
marker_work_flag="16" >
|
|
</PathFindingGridMarkerComponent>
|
|
|
|
<PathFindingComponent
|
|
distance_to_reach_node_x="20"
|
|
distance_to_reach_node_y="20"
|
|
frames_to_get_stuck="120"
|
|
can_jump="1"
|
|
jump_speed="140"
|
|
initial_jump_lob="1"
|
|
initial_jump_max_distance_x="80"
|
|
initial_jump_max_distance_y="60" >
|
|
</PathFindingComponent>
|
|
|
|
<GenomeDataComponent
|
|
herd_id="ant"
|
|
food_chain_rank="7"
|
|
is_predator="1" >
|
|
</GenomeDataComponent>
|
|
|
|
<CharacterPlatformingComponent
|
|
jump_velocity_y="-12"
|
|
run_velocity="12" >
|
|
</CharacterPlatformingComponent>
|
|
|
|
<HitboxComponent
|
|
_enabled="1"
|
|
aabb_max_x="6.5"
|
|
aabb_max_y="4"
|
|
aabb_min_x="-6.5"
|
|
aabb_min_y="-10"
|
|
>
|
|
</HitboxComponent>
|
|
|
|
<CameraBoundComponent
|
|
max_count="30"
|
|
distance="160000">
|
|
</CameraBoundComponent>
|
|
|
|
<CharacterDataComponent
|
|
collision_aabb_min_x="-4.0"
|
|
collision_aabb_max_x="4.0"
|
|
collision_aabb_min_y="-5"
|
|
collision_aabb_max_y="3"
|
|
mass="2.0"
|
|
>
|
|
</CharacterDataComponent>
|
|
</Base>
|
|
|
|
|
|
|
|
</Entity>
|