Consistency/data/entities/animals/zombie.xml

113 lines
2.7 KiB
XML

<Entity tags="zombie" name="$animal_zombie">
<Base file="data/entities/base_enemy_basic.xml" >
<ItemChestComponent level="1" > </ItemChestComponent>
<AnimalAIComponent
_enabled="1"
preferred_job="JobDefault"
escape_if_damaged_probability="35"
attack_melee_damage_min="0.2"
attack_melee_damage_max="0.4"
attack_dash_enabled="1"
creature_detection_range_x="250"
creature_detection_range_y="250"
food_material="meat"
needs_food="1"
sense_creatures="1"
attack_ranged_enabled="0"
can_fly="0"
defecates_and_pees="1"
>
</AnimalAIComponent>
<DamageModelComponent
hp="0.25"
materials_create_messages="1"
ragdoll_material="meat"
blood_material="blood_fading"
blood_spray_material="blood"
ragdoll_filenames_file="data/ragdolls/zombie/filenames.txt"
blood_sprite_directional="data/particles/bloodsplatters/bloodsplatter_directional_$[1-3].xml"
blood_sprite_large="data/particles/bloodsplatters/bloodsplatter_$[1-3].xml"
physics_objects_damage="1"
blood_spray_create_some_cosmetic="1"
>
</DamageModelComponent>
<SpriteComponent
image_file="data/enemies_gfx/zombie.xml"
offset_x="0"
offset_y="0">
</SpriteComponent>
<PathFindingComponent
distance_to_reach_node_x="20"
distance_to_reach_node_y="20"
can_swim_on_surface="1"
can_dive="1"
frames_to_get_stuck="20"
can_jump="1" >
</PathFindingComponent>
<PathFindingGridMarkerComponent
marker_work_flag="16" >
</PathFindingGridMarkerComponent>
<GenomeDataComponent
herd_id="zombie"
food_chain_rank="10"
is_predator="1" >
</GenomeDataComponent>
<CharacterDataComponent
buoyancy_check_offset_y="-4"
collision_aabb_min_x="-2.0"
collision_aabb_max_x="2.0"
collision_aabb_min_y="-5"
collision_aabb_max_y="3"
mass="1.0"
>
</CharacterDataComponent>
<CharacterPlatformingComponent
pixel_gravity="600"
jump_velocity_y="-12"
run_velocity="18"
run_animation_velocity_switching_enabled="1"
run_animation_velocity_switching_threshold="50" >
</CharacterPlatformingComponent>
<HitboxComponent
_enabled="1"
aabb_min_x="-4.5"
aabb_max_x="4.5"
aabb_min_y="-6.5"
aabb_max_y="3"
is_enemy="1"
is_item="0"
is_player="0" >
</HitboxComponent>
<CameraBoundComponent
max_count="20"
distance="160000">
</CameraBoundComponent>
</Base>
<AudioComponent
file="data/audio/Desktop/animals.bank"
event_root="animals/zombie" >
</AudioComponent>
<SpriteComponent
_tags="character"
alpha="1"
image_file="data/enemies_gfx/zombie_emissive.xml"
emissive="1"
additive="1"
rect_animation="walk" >
</SpriteComponent>
</Entity>