111 lines
3.0 KiB
XML
111 lines
3.0 KiB
XML
|
<Entity name="$animal_spitmonster" >
|
||
|
|
||
|
<Base file="data/entities/base_enemy_basic.xml" >
|
||
|
<ItemChestComponent level="4" > </ItemChestComponent>
|
||
|
<AnimalAIComponent
|
||
|
_enabled="1"
|
||
|
preferred_job="JobDefault"
|
||
|
attack_ranged_min_distance="0"
|
||
|
attack_ranged_max_distance="250"
|
||
|
creature_detection_range_x="300"
|
||
|
creature_detection_range_y="300"
|
||
|
creature_detection_check_every_x_frames="80"
|
||
|
food_material="blood"
|
||
|
needs_food="1"
|
||
|
sense_creatures="1"
|
||
|
attack_ranged_enabled="1"
|
||
|
attack_melee_enabled="0"
|
||
|
attack_ranged_action_frame="4"
|
||
|
can_fly="0"
|
||
|
attack_ranged_entity_file="data/entities/projectiles/orb_pink_fast.xml"
|
||
|
attack_ranged_frames_between="10" >
|
||
|
</AnimalAIComponent>
|
||
|
|
||
|
<DamageModelComponent
|
||
|
hp="3"
|
||
|
ragdoll_material="meat_slime_cursed"
|
||
|
ragdoll_filenames_file="data/ragdolls/spitmonster/filenames.txt"
|
||
|
blood_material="endslime_blood"
|
||
|
blood_spray_material="endslime_blood"
|
||
|
fire_probability_of_ignition="0"
|
||
|
air_lack_of_damage="0.2"
|
||
|
air_needed="1"
|
||
|
blood_sprite_directional="data/particles/bloodsplatters/bloodsplatter_directional_orange_$[1-3].xml"
|
||
|
blood_sprite_large="data/particles/bloodsplatters/bloodsplatter_orange_$[1-3].xml"
|
||
|
wet_status_effect_damage="0.05"
|
||
|
materials_that_damage="acid,poison,blood_cold,blood_cold_vapour,radioactive_gas,radioactive_gas_static,rock_static_radioactive,rock_static_poison,ice_radioactive_static,ice_radioactive_glass,ice_acid_static,ice_acid_glass"
|
||
|
materials_how_much_damage="0.004,0.001,0.0008,0.0007,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001"
|
||
|
>
|
||
|
<damage_multipliers
|
||
|
melee="1.0"
|
||
|
projectile="1.0"
|
||
|
explosion="0.8"
|
||
|
electricity="0.8"
|
||
|
ice="1.2"
|
||
|
fire="0" >
|
||
|
</damage_multipliers>
|
||
|
</DamageModelComponent>
|
||
|
|
||
|
<SpriteComponent
|
||
|
image_file="data/enemies_gfx/spitmonster.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="slimes"
|
||
|
food_chain_rank="7"
|
||
|
is_predator="1" >
|
||
|
</GenomeDataComponent>
|
||
|
|
||
|
<CharacterPlatformingComponent
|
||
|
jump_velocity_y="-12"
|
||
|
run_velocity="12" >
|
||
|
</CharacterPlatformingComponent>
|
||
|
|
||
|
<HitboxComponent
|
||
|
_enabled="1"
|
||
|
aabb_max_x="8"
|
||
|
aabb_max_y="4"
|
||
|
aabb_min_x="-8"
|
||
|
aabb_min_y="-12"
|
||
|
>
|
||
|
</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="-14"
|
||
|
collision_aabb_max_y="3"
|
||
|
mass="1.6"
|
||
|
>
|
||
|
</CharacterDataComponent>
|
||
|
|
||
|
</Base>
|
||
|
|
||
|
<AudioComponent
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_root="animals/spitmonster" >
|
||
|
</AudioComponent>
|
||
|
</Entity>
|