192 lines
4.3 KiB
XML
192 lines
4.3 KiB
XML
<Entity tags="glue_NOT,healer" name="$animal_healerdrone_physics" >
|
|
|
|
<PhysicsAIComponent
|
|
target_vec_max_len="15.0"
|
|
force_coeff="20.0"
|
|
force_balancing_coeff="0.8"
|
|
force_max="100"
|
|
torque_coeff="50"
|
|
torque_balancing_coeff="0.8"
|
|
torque_max="50.0"
|
|
damage_deactivation_probability="80"
|
|
damage_deactivation_time_min="60"
|
|
damage_deactivation_time_max="120" >
|
|
</PhysicsAIComponent>
|
|
|
|
<PhysicsBodyComponent
|
|
allow_sleep="1"
|
|
angular_damping="0.02"
|
|
fixed_rotation="0"
|
|
is_bullet="0"
|
|
linear_damping="0"
|
|
on_death_leave_physics_body="1" >
|
|
</PhysicsBodyComponent>
|
|
|
|
<PhysicsImageShapeComponent
|
|
image_file="data/enemies_gfx/healerdrone.png"
|
|
centered="1"
|
|
material="aluminium_robot" >
|
|
</PhysicsImageShapeComponent>
|
|
|
|
<MaterialInventoryComponent
|
|
_enabled="1"
|
|
drop_as_item="0"
|
|
on_death_spill="1"
|
|
leak_pressure_min="0.2"
|
|
leak_pressure_max="0.4"
|
|
leak_on_damage_percent="0.999"
|
|
b2_force_on_leak="2"
|
|
>
|
|
<count_per_material_type>
|
|
<Material material="oil" count="200" />
|
|
</count_per_material_type>
|
|
</MaterialInventoryComponent>
|
|
|
|
<ExplodeOnDamageComponent
|
|
explode_on_death_percent="1"
|
|
explode_on_damage_percent="0.0"
|
|
physics_body_modified_death_probability="0.9"
|
|
physics_body_destruction_required="0.45"
|
|
>
|
|
<config_explosion
|
|
never_cache="0"
|
|
damage="1.5"
|
|
camera_shake="40"
|
|
explosion_radius="12"
|
|
explosion_sprite="data/particles/explosion_016.xml"
|
|
explosion_sprite_lifetime="0"
|
|
create_cell_probability="50"
|
|
hole_destroy_liquid="0"
|
|
hole_enabled="1"
|
|
ray_energy="180000"
|
|
particle_effect="1"
|
|
damage_mortals="1"
|
|
physics_explosion_power.max="0.4"
|
|
physics_explosion_power.max="0.7"
|
|
physics_throw_enabled="1"
|
|
shake_vegetation="1"
|
|
sparks_count_min="7"
|
|
sparks_count_max="20"
|
|
sparks_enabled="1"
|
|
stains_enabled="1"
|
|
stains_radius="15" >
|
|
</config_explosion>
|
|
</ExplodeOnDamageComponent>
|
|
|
|
<LightComponent
|
|
_enabled="1"
|
|
radius="200"
|
|
r="155"
|
|
g="20"
|
|
b="0" >
|
|
</LightComponent>
|
|
|
|
<Base file="data/entities/base_enemy_robot.xml" >
|
|
|
|
<AnimalAIComponent
|
|
_enabled="1"
|
|
escape_if_damaged_probability="100"
|
|
attack_if_damaged_probability="0"
|
|
tries_to_ranged_attack_friends="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_offset_x="0"
|
|
attack_ranged_offset_y="5"
|
|
attack_ranged_entity_file="data/entities/projectiles/healshot_slow.xml"
|
|
attack_ranged_frames_between="10"
|
|
aggressiveness_min="98"
|
|
aggressiveness_max="100"
|
|
>
|
|
</AnimalAIComponent>
|
|
|
|
<DamageModelComponent
|
|
hp="0.25"
|
|
ragdoll_filenames_file=""
|
|
fire_probability_of_ignition="0"
|
|
ragdoll_material="" >
|
|
</DamageModelComponent>
|
|
|
|
<SpriteComponent
|
|
image_file="data/enemies_gfx/healerdrone_emissive.xml"
|
|
rect_animation="stand"
|
|
next_rect_animation="stand"
|
|
special_scale_x="1"
|
|
has_special_scale="1"
|
|
emissive="1"
|
|
additive="1"
|
|
offset_x="0"
|
|
offset_y="0">
|
|
</SpriteComponent>
|
|
|
|
<PathFindingComponent
|
|
can_walk="0"
|
|
can_fly="1"
|
|
never_consider_line_of_sight="1"
|
|
>
|
|
</PathFindingComponent>
|
|
|
|
<PathFindingGridMarkerComponent
|
|
marker_work_flag="16" >
|
|
</PathFindingGridMarkerComponent>
|
|
|
|
<GenomeDataComponent
|
|
herd_id="healer"
|
|
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"
|
|
fly_velocity_x="60">
|
|
</CharacterPlatformingComponent>
|
|
|
|
<HitboxComponent
|
|
_enabled="1"
|
|
aabb_min_x="-6"
|
|
aabb_max_x="6"
|
|
aabb_min_y="-5"
|
|
aabb_max_y="4" >
|
|
</HitboxComponent>
|
|
|
|
<CameraBoundComponent
|
|
max_count="30"
|
|
distance="160000">
|
|
</CameraBoundComponent>
|
|
|
|
<SpriteStainsComponent
|
|
_enabled="0"
|
|
>
|
|
</SpriteStainsComponent>
|
|
|
|
<CharacterDataComponent
|
|
mass="0.8"
|
|
>
|
|
</CharacterDataComponent>
|
|
</Base>
|
|
|
|
<Entity>
|
|
<InheritTransformComponent />
|
|
|
|
<GameEffectComponent
|
|
effect="PROTECTION_FREEZE"
|
|
frames="-1"
|
|
>
|
|
</GameEffectComponent >
|
|
</Entity>
|
|
</Entity>
|