184 lines
5.0 KiB
XML
184 lines
5.0 KiB
XML
<Entity name="$animal_tentacler" >
|
|
|
|
<Base file="data/entities/base_enemy_flying.xml" >
|
|
<ItemChestComponent level="2" > </ItemChestComponent>
|
|
<AnimalAIComponent
|
|
_enabled="1"
|
|
preferred_job="JobDefault"
|
|
escape_if_damaged_probability="100"
|
|
attack_melee_damage_min="0.4"
|
|
attack_melee_damage_max="0.7"
|
|
creature_detection_range_x="400"
|
|
creature_detection_range_y="400"
|
|
creature_detection_angular_range_deg="60"
|
|
attack_melee_max_distance="20"
|
|
food_material="meat"
|
|
needs_food="0"
|
|
sense_creatures="1"
|
|
can_fly="1"
|
|
attack_melee_enabled="0"
|
|
attack_melee_max_distance="10"
|
|
attack_ranged_enabled="0"
|
|
aggressiveness_min="1"
|
|
aggressiveness_max="80"
|
|
>
|
|
</AnimalAIComponent>
|
|
|
|
<DamageModelComponent
|
|
hp="2.5"
|
|
materials_create_messages="1"
|
|
ragdoll_filenames_file="data/ragdolls/tentacler/filenames.txt"
|
|
fire_probability_of_ignition="5"
|
|
ragdoll_material="meat_slime"
|
|
blood_material="blood_fungi"
|
|
blood_spray_material="blood_fungi"
|
|
blood_multiplier="0.3"
|
|
ragdoll_blood_amount_absolute="300"
|
|
blood_sprite_directional="data/particles/bloodsplatters/bloodsplatter_directional_purple_$[1-3].xml"
|
|
blood_sprite_large="data/particles/bloodsplatters/bloodsplatter_purple_$[1-3].xml"
|
|
>
|
|
<damage_multipliers
|
|
projectile="0.7"
|
|
freeze="0.4" >
|
|
</damage_multipliers>
|
|
</DamageModelComponent>
|
|
|
|
<SpriteComponent
|
|
image_file="data/enemies_gfx/tentacler.xml"
|
|
offset_x="0"
|
|
offset_y="0">
|
|
</SpriteComponent>
|
|
|
|
<PathFindingComponent
|
|
can_jump="0"
|
|
can_fly="1"
|
|
can_swim_on_surface="1"
|
|
can_dive="1"
|
|
space_required="5">
|
|
</PathFindingComponent>
|
|
|
|
<PathFindingGridMarkerComponent
|
|
marker_work_flag="24" >
|
|
</PathFindingGridMarkerComponent>
|
|
|
|
<GenomeDataComponent
|
|
herd_id="slimes"
|
|
food_chain_rank="9"
|
|
is_predator="1" >
|
|
</GenomeDataComponent>
|
|
|
|
<CharacterPlatformingComponent
|
|
fly_speed_change_spd="0.8"
|
|
fly_velocity_x="28"
|
|
accel_x="0.03"
|
|
jump_velocity_y="-12"
|
|
run_velocity="17" >
|
|
</CharacterPlatformingComponent>
|
|
|
|
<CameraBoundComponent
|
|
max_count="30"
|
|
distance="160000">
|
|
</CameraBoundComponent>
|
|
|
|
<HitboxComponent
|
|
_enabled="1"
|
|
aabb_max_x="7"
|
|
aabb_max_y="3"
|
|
aabb_min_x="-7"
|
|
aabb_min_y="-16"
|
|
>
|
|
</HitboxComponent>
|
|
|
|
<CharacterDataComponent
|
|
climb_over_y="4"
|
|
collision_aabb_min_x="-5.0"
|
|
collision_aabb_max_x="5.0"
|
|
collision_aabb_min_y="-14"
|
|
collision_aabb_max_y="3"
|
|
buoyancy_check_offset_y="-6">
|
|
</CharacterDataComponent>
|
|
|
|
<AudioComponent
|
|
file="data/audio/Desktop/animals.bank"
|
|
event_root="animals/slime">
|
|
</AudioComponent>
|
|
|
|
</Base>
|
|
|
|
<HotspotComponent
|
|
_tags="hand"
|
|
offset.y="-1"
|
|
offset.x="2"
|
|
>
|
|
</HotspotComponent>
|
|
|
|
<AIAttackComponent
|
|
min_distance="36"
|
|
max_distance="110"
|
|
frames_between="120"
|
|
frames_between_global="0"
|
|
attack_ranged_action_frame="5"
|
|
attack_ranged_entity_file="data/entities/projectiles/smalltentacle.xml"
|
|
attack_ranged_offset_y="-7"
|
|
attack_ranged_offset_x="4"
|
|
>
|
|
</AIAttackComponent>
|
|
|
|
<AIAttackComponent
|
|
min_distance="0"
|
|
max_distance="38"
|
|
frames_between="80"
|
|
frames_between_global="70"
|
|
attack_ranged_action_frame="4"
|
|
animation_name="attack_stone"
|
|
attack_ranged_entity_file="data/entities/projectiles/freeze_circle.xml"
|
|
attack_ranged_offset_y="-7"
|
|
>
|
|
</AIAttackComponent>
|
|
|
|
<AIAttackComponent
|
|
min_distance="0"
|
|
max_distance="36"
|
|
frames_between="80"
|
|
frames_between_global="40"
|
|
attack_ranged_action_frame="5"
|
|
attack_ranged_entity_file="data/entities/projectiles/smalltentacle_melee.xml"
|
|
attack_ranged_offset_y="-7"
|
|
attack_ranged_offset_x="4"
|
|
>
|
|
</AIAttackComponent>
|
|
|
|
<MaterialInventoryComponent
|
|
_enabled="1"
|
|
drop_as_item="0"
|
|
leak_on_damage_percent="0.999"
|
|
>
|
|
<count_per_material_type>
|
|
<Material material="blood_fungi" count="800" />
|
|
</count_per_material_type>
|
|
</MaterialInventoryComponent>
|
|
|
|
<AudioLoopComponent
|
|
_tags="sound_spray"
|
|
file="data/audio/Desktop/materials.bank"
|
|
event_name="materials/spray_animal"
|
|
volume_autofade_speed="0.25" >
|
|
</AudioLoopComponent>
|
|
|
|
<MusicEnergyAffectorComponent
|
|
energy_target="0.5">
|
|
</MusicEnergyAffectorComponent>
|
|
|
|
<Entity> <Base file="data/entities/verlet_chains/smalltentacle/tentacler_tentacle_01.xml"> <InheritTransformComponent><Transform position.x="-4" position.y="-2" ></Transform></InheritTransformComponent> </Base> </Entity>
|
|
<Entity> <Base file="data/entities/verlet_chains/smalltentacle/tentacler_tentacle_01.xml"> <InheritTransformComponent><Transform position.x="4" position.y="1" ></Transform></InheritTransformComponent> </Base> </Entity>
|
|
<Entity> <Base file="data/entities/verlet_chains/smalltentacle/tentacler_tentacle_02.xml"> <InheritTransformComponent><Transform position.x="0" position.y="-1" ></Transform></InheritTransformComponent> </Base> </Entity>
|
|
|
|
<AudioLoopComponent
|
|
file="data/audio/Desktop/animals.bank"
|
|
event_name="animals/slimy_big/movement_loop"
|
|
set_speed_parameter="1"
|
|
auto_play="1">
|
|
</AudioLoopComponent>
|
|
|
|
</Entity>
|