Consistency/data/entities/animals/ghoul.xml

94 lines
2.3 KiB
XML

<Entity name="$animal_ghoul" >
<Base file="data/entities/base_enemy_basic.xml" >
<AnimalAIComponent
_enabled="1"
preferred_job="JobDefault"
escape_if_damaged_probability="70"
attack_melee_damage_min="0.6"
attack_melee_damage_max="1.0"
attack_melee_max_distance="0"
attack_ranged_min_distance="0"
attack_ranged_max_distance="40"
creature_detection_range_x="300"
creature_detection_range_y="300"
attack_melee_action_frame="4"
attack_ranged_action_frame="3"
food_material="blood"
needs_food="0"
sense_creatures="1"
attack_ranged_enabled="1"
attack_melee_enabled="0"
can_fly="0"
attack_ranged_entity_file="data/entities/projectiles/acidshot_slow.xml"
attack_ranged_frames_between="5"
attack_ranged_offset_y="-4"
>
</AnimalAIComponent>
<DamageModelComponent
hp="1.5"
ragdoll_material="meat"
ragdoll_filenames_file="data/ragdolls/ghoul/filenames.txt"
blood_material="slime"
blood_spray_material="slime"
fire_probability_of_ignition="5"
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/ghoul.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="100"
initial_jump_lob="1"
initial_jump_max_distance_x="80"
initial_jump_max_distance_y="60" >
</PathFindingComponent>
<GenomeDataComponent
herd_id="ghost"
food_chain_rank="8"
is_predator="1" >
</GenomeDataComponent>
<CharacterPlatformingComponent
jump_velocity_y="-12"
run_velocity="12" >
</CharacterPlatformingComponent>
<HitboxComponent
_enabled="1"
aabb_max_x="4"
aabb_max_y="4"
aabb_min_x="-4"
aabb_min_y="-12"
>
</HitboxComponent>
<CameraBoundComponent
max_count="30"
distance="160000">
</CameraBoundComponent>
<CharacterDataComponent
mass="1.5"
>
</CharacterDataComponent>
</Base>
</Entity>