Consistency/data/entities/animals/tank_rocket.xml

219 lines
5.0 KiB
XML
Raw Permalink Normal View History

2021-08-20 01:53:47 +00:00
<Entity name="$animal_tank_rocket" >
<Base file="data/entities/base_enemy_robot.xml" >
<ItemChestComponent level="2" > </ItemChestComponent>
<AnimalAIComponent
_enabled="1"
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_max_distance="340"
food_material="blood"
needs_food="0"
sense_creatures="1"
attack_ranged_enabled="0"
attack_melee_enabled="0"
attack_ranged_laser_sight_beam_kind="1"
can_fly="0"
aggressiveness_min="1"
aggressiveness_max="80"
>
</AnimalAIComponent>
<DamageModelComponent
hp="2.5"
ragdoll_material="steel"
ragdoll_filenames_file="data/ragdolls/tank_rocket/filenames.txt"
blood_material="oil"
fire_probability_of_ignition="0"
in_liquid_shooting_electrify_prob="30" >
<damage_multipliers
projectile="0.5"
explosion="1.1"
electricity="1.4"
fire="0.1" >
</damage_multipliers>
</DamageModelComponent>
<SpriteComponent
image_file="data/enemies_gfx/tank_rocket.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
_enabled="1"
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="40"
explosion_radius="40"
explosion_sprite="data/particles/explosion_032.xml"
explosion_sprite_lifetime="10"
create_cell_probability="70"
hole_destroy_liquid="0"
hole_enabled="1"
ray_energy="180000"
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"
sparks_count_min="10"
sparks_count_max="18"
sparks_enabled="1"
stains_enabled="1"
stains_radius="15" >
</config_explosion>
</ExplodeOnDamageComponent>
<SpriteComponent
_tags="character"
_enabled="1"
alpha="1"
image_file="data/enemies_gfx/tank_emissive.xml"
emissive="1"
additive="1"
next_rect_animation=""
rect_animation="walk"
>
</SpriteComponent>
<SpriteComponent
_tags="gun"
_enabled="1"
alpha="1"
image_file="data/enemies_gfx/tank_rocket_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>
<SpriteComponent
_tags="laser_sight"
_enabled="1"
alpha="1"
image_file="data/particles/laser_blue.png"
offset_x="5"
offset_y="5"
emissive="1"
additive="1"
visible="0"
update_transform="0"
next_rect_animation=""
rect_animation="default"
>
</SpriteComponent>
<AIAttackComponent
min_distance="0"
max_distance="300"
frames_between="50"
frames_between_global="50"
attack_ranged_aim_rotation_enabled="1"
attack_ranged_aim_rotation_speed="0.05"
attack_ranged_aim_rotation_shooting_ok_angle_deg="5"
attack_ranged_root_offset_y="-5"
attack_ranged_offset_y="-3"
attack_ranged_offset_x="10"
attack_ranged_use_laser_sight="1"
attack_ranged_action_frame="3"
animation_name="attack_ranged"
attack_ranged_entity_file="data/entities/projectiles/rocket_tank.xml"
angular_range_deg="90"
>
</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>