106 lines
2.2 KiB
XML
106 lines
2.2 KiB
XML
|
<Entity name="$animal_drone_physics">
|
||
|
|
||
|
<Base file="data/entities/base_enemy_robot.xml" >
|
||
|
<AnimalAIComponent
|
||
|
_enabled="1"
|
||
|
preferred_job="JobDefault"
|
||
|
|
||
|
creature_detection_range_x="250"
|
||
|
creature_detection_range_y="250"
|
||
|
attack_ranged_min_distance="0"
|
||
|
attack_ranged_max_distance="100"
|
||
|
food_material="blood"
|
||
|
|
||
|
needs_food="0"
|
||
|
|
||
|
sense_creatures="1"
|
||
|
attack_ranged_enabled="1"
|
||
|
attack_melee_enabled="1"
|
||
|
can_fly="1"
|
||
|
can_walk="0"
|
||
|
attack_ranged_entity_file="data/entities/projectiles/orb_blue.xml"
|
||
|
attack_ranged_frames_between="40" >
|
||
|
</AnimalAIComponent>
|
||
|
|
||
|
<DamageModelComponent
|
||
|
hp="0.2"
|
||
|
ragdoll_filenames_file="data/ragdolls/drone/filenames.txt"
|
||
|
fire_probability_of_ignition="0"
|
||
|
ragdoll_material="gunpowder_unstable">
|
||
|
</DamageModelComponent>
|
||
|
|
||
|
<SpriteComponent
|
||
|
image_file="data/enemies_gfx/drone.xml"
|
||
|
offset_x="0"
|
||
|
offset_y="0">
|
||
|
</SpriteComponent>
|
||
|
|
||
|
<PathFindingComponent
|
||
|
can_walk="0"
|
||
|
can_fly="1" >
|
||
|
</PathFindingComponent>
|
||
|
|
||
|
<PathFindingGridMarkerComponent
|
||
|
marker_work_flag="16" >
|
||
|
</PathFindingGridMarkerComponent>
|
||
|
|
||
|
<GenomeDataComponent
|
||
|
herd_id="robot"
|
||
|
food_chain_rank="5"
|
||
|
is_predator="1" >
|
||
|
</GenomeDataComponent>
|
||
|
|
||
|
<CharacterPlatformingComponent
|
||
|
jump_velocity_y="-10"
|
||
|
run_velocity="10"
|
||
|
fly_speed_max_up="60"
|
||
|
fly_speed_max_down="60"
|
||
|
fly_speed_mult="18"
|
||
|
fly_speed_change_spd="1"
|
||
|
swim_idle_buoyancy_coeff="0.8"
|
||
|
fly_velocity_x="60">
|
||
|
</CharacterPlatformingComponent>
|
||
|
|
||
|
<HitboxComponent
|
||
|
_enabled="1"
|
||
|
aabb_min_x="-6"
|
||
|
aabb_min_y="-9"
|
||
|
aabb_max_x="6"
|
||
|
aabb_max_y="1"
|
||
|
>
|
||
|
</HitboxComponent>
|
||
|
|
||
|
<CameraBoundComponent
|
||
|
max_count="30"
|
||
|
distance="160000">
|
||
|
</CameraBoundComponent>
|
||
|
|
||
|
<CharacterDataComponent
|
||
|
collision_aabb_min_x="-7.6"
|
||
|
collision_aabb_max_x="7.6"
|
||
|
collision_aabb_min_y="-9"
|
||
|
collision_aabb_max_y="-1"
|
||
|
mass="0.8"
|
||
|
>
|
||
|
</CharacterDataComponent>
|
||
|
</Base>
|
||
|
|
||
|
<AudioLoopComponent
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_name="animals/drone/movement_loop"
|
||
|
set_speed_parameter="1"
|
||
|
auto_play="1">
|
||
|
</AudioLoopComponent>
|
||
|
|
||
|
<Entity>
|
||
|
<InheritTransformComponent />
|
||
|
|
||
|
<GameEffectComponent
|
||
|
effect="PROTECTION_FREEZE"
|
||
|
frames="-1"
|
||
|
>
|
||
|
</GameEffectComponent >
|
||
|
</Entity>
|
||
|
|
||
|
</Entity>
|