218 lines
5.2 KiB
XML
218 lines
5.2 KiB
XML
|
<Entity name="$animal_tank" >
|
||
|
|
||
|
<Base file="data/entities/base_enemy_robot.xml" >
|
||
|
<ItemChestComponent level="2" >
|
||
|
</ItemChestComponent>
|
||
|
|
||
|
<AnimalAIComponent
|
||
|
preferred_job="JobDefault"
|
||
|
escape_if_damaged_probability="0"
|
||
|
attack_melee_damage_min="0.4"
|
||
|
attack_melee_damage_max="0.7"
|
||
|
creature_detection_range_x="600"
|
||
|
creature_detection_range_y="600"
|
||
|
attack_ranged_min_distance="0"
|
||
|
attack_ranged_max_distance="450"
|
||
|
food_material="blood"
|
||
|
needs_food="0"
|
||
|
sense_creatures="1"
|
||
|
attack_melee_enabled="0"
|
||
|
can_fly="0"
|
||
|
aggressiveness_min="1"
|
||
|
aggressiveness_max="95"
|
||
|
>
|
||
|
</AnimalAIComponent>
|
||
|
|
||
|
<DamageModelComponent
|
||
|
hp="12.5"
|
||
|
ragdoll_material="steel"
|
||
|
ragdoll_filenames_file="data/ragdolls/tank_super/filenames.txt"
|
||
|
blood_material="oil"
|
||
|
fire_probability_of_ignition="0"
|
||
|
in_liquid_shooting_electrify_prob="30"
|
||
|
minimum_knockback_force="100000"
|
||
|
>
|
||
|
<damage_multipliers
|
||
|
projectile="0.5"
|
||
|
explosion="0.6"
|
||
|
electricity="1.6"
|
||
|
fire="0.1" >
|
||
|
</damage_multipliers>
|
||
|
</DamageModelComponent>
|
||
|
|
||
|
<SpriteComponent
|
||
|
image_file="data/enemies_gfx/tank_super.xml"
|
||
|
offset_x="0"
|
||
|
offset_y="0"
|
||
|
z_index="-1"
|
||
|
>
|
||
|
</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="0" >
|
||
|
</PathFindingComponent>
|
||
|
|
||
|
<GenomeDataComponent
|
||
|
herd_id="orcs"
|
||
|
food_chain_rank="5"
|
||
|
is_predator="1" >
|
||
|
</GenomeDataComponent>
|
||
|
|
||
|
<CharacterPlatformingComponent
|
||
|
swim_idle_buoyancy_coeff="0.8"
|
||
|
jump_velocity_y="0"
|
||
|
run_velocity="12" >
|
||
|
</CharacterPlatformingComponent>
|
||
|
|
||
|
<HitboxComponent
|
||
|
aabb_min_x="-8"
|
||
|
aabb_max_x="8"
|
||
|
aabb_min_y="-12"
|
||
|
aabb_max_y="4"
|
||
|
>
|
||
|
</HitboxComponent>
|
||
|
|
||
|
<CameraBoundComponent
|
||
|
max_count="30"
|
||
|
distance="160000">
|
||
|
</CameraBoundComponent>
|
||
|
|
||
|
<CharacterDataComponent
|
||
|
collision_aabb_min_x="-3.0"
|
||
|
collision_aabb_max_x="3.0"
|
||
|
collision_aabb_min_y="-7"
|
||
|
collision_aabb_max_y="3"
|
||
|
mass="2.4"
|
||
|
>
|
||
|
</CharacterDataComponent>
|
||
|
</Base>
|
||
|
|
||
|
<ExplodeOnDamageComponent
|
||
|
explode_on_death_percent="1"
|
||
|
explode_on_damage_percent="0.0"
|
||
|
>
|
||
|
<config_explosion
|
||
|
never_cache="0"
|
||
|
damage="3"
|
||
|
camera_shake="80"
|
||
|
explosion_radius="80"
|
||
|
explosion_sprite="data/particles/explosion_064_plasma.xml"
|
||
|
load_this_entity="data/entities/particles/particle_explosion/main_green_large.xml,data/entities/misc/loose_ground.xml"
|
||
|
explosion_sprite_lifetime="0"
|
||
|
create_cell_probability="70"
|
||
|
hole_destroy_liquid="1"
|
||
|
hole_enabled="1"
|
||
|
ray_energy="240000"
|
||
|
particle_effect="1"
|
||
|
damage_mortals="1"
|
||
|
physics_explosion_power.min="1.1"
|
||
|
physics_explosion_power.max="1.7"
|
||
|
physics_throw_enabled="1"
|
||
|
shake_vegetation="1"
|
||
|
spark_material="spark_green"
|
||
|
sparks_count_min="20"
|
||
|
sparks_count_max="35"
|
||
|
sparks_enabled="1"
|
||
|
stains_enabled="1"
|
||
|
stains_radius="40" >
|
||
|
</config_explosion>
|
||
|
</ExplodeOnDamageComponent>
|
||
|
|
||
|
<SpriteComponent
|
||
|
_tags="character"
|
||
|
alpha="1"
|
||
|
image_file="data/enemies_gfx/tank_super_emissive.xml"
|
||
|
emissive="1"
|
||
|
additive="1"
|
||
|
next_rect_animation=""
|
||
|
rect_animation="walk"
|
||
|
>
|
||
|
</SpriteComponent>
|
||
|
|
||
|
<SpriteComponent
|
||
|
_tags="gun"
|
||
|
alpha="1"
|
||
|
image_file="data/enemies_gfx/tank_super_gun.xml"
|
||
|
transform_offset.y="-5"
|
||
|
next_rect_animation=""
|
||
|
rect_animation=""
|
||
|
update_transform="1"
|
||
|
update_transform_rotation="0"
|
||
|
has_special_scale="1"
|
||
|
z_index="-1"
|
||
|
>
|
||
|
</SpriteComponent>
|
||
|
|
||
|
<AIAttackComponent
|
||
|
min_distance="30"
|
||
|
max_distance="500"
|
||
|
frames_between="3"
|
||
|
frames_between_global="3"
|
||
|
attack_ranged_aim_rotation_enabled="1"
|
||
|
attack_ranged_aim_rotation_speed="0.05"
|
||
|
attack_ranged_aim_rotation_shooting_ok_angle_deg="10"
|
||
|
attack_ranged_root_offset_y="-5"
|
||
|
attack_ranged_offset_y="-3"
|
||
|
attack_ranged_offset_x="10"
|
||
|
animation_name="attack_ranged"
|
||
|
attack_ranged_entity_file="data/entities/projectiles/machinegun_bullet_tank_super.xml"
|
||
|
angular_range_deg="90"
|
||
|
>
|
||
|
</AIAttackComponent>
|
||
|
|
||
|
<AIAttackComponent
|
||
|
min_distance="8"
|
||
|
max_distance="40"
|
||
|
frames_between="40"
|
||
|
frames_between_global="40"
|
||
|
attack_ranged_aim_rotation_enabled="1"
|
||
|
attack_ranged_aim_rotation_speed="0.05"
|
||
|
attack_ranged_aim_rotation_shooting_ok_angle_deg="30"
|
||
|
attack_ranged_root_offset_y="-5"
|
||
|
attack_ranged_offset_y="-5"
|
||
|
attack_ranged_offset_x="3"
|
||
|
animation_name="attack_grenade"
|
||
|
attack_ranged_entity_file="data/entities/projectiles/grenade_leader.xml"
|
||
|
attack_ranged_action_frame="8"
|
||
|
>
|
||
|
</AIAttackComponent>
|
||
|
|
||
|
<AudioComponent
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_root="animals/tank" >
|
||
|
</AudioComponent>
|
||
|
|
||
|
<AudioLoopComponent
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_name="animals/tank/movement_loop"
|
||
|
set_speed_parameter_only_based_on_x_movement="1"
|
||
|
set_speed_parameter="1"
|
||
|
auto_play="1">
|
||
|
</AudioLoopComponent>
|
||
|
|
||
|
<AudioLoopComponent
|
||
|
_tags="turret_rotate_sound"
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_name="animals/tank/turret_rotate_loop"
|
||
|
volume_autofade_speed="0.1" >
|
||
|
</AudioLoopComponent>
|
||
|
|
||
|
<Entity>
|
||
|
<InheritTransformComponent />
|
||
|
|
||
|
<GameEffectComponent
|
||
|
effect="PROTECTION_FREEZE"
|
||
|
frames="-1"
|
||
|
>
|
||
|
</GameEffectComponent >
|
||
|
</Entity>
|
||
|
|
||
|
</Entity>
|