Consistency/data/entities/animals/illusions/tank.xml

182 lines
4.1 KiB
XML
Raw Normal View History

2021-08-20 01:53:47 +00:00
<Entity tags="glue_NOT" 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="500"
food_material="blood"
needs_food="0"
sense_creatures="1"
attack_melee_enabled="0"
can_fly="0"
aggressiveness_min="1"
aggressiveness_max="95"
>
</AnimalAIComponent>
<DamageModelComponent
_enabled="0"
>
</DamageModelComponent>
<SpriteComponent
image_file="data/enemies_gfx/tank.xml"
alpha="0.5"
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="ghost"
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="0"
>
</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>
<SpriteComponent
_tags="character"
alpha="1"
image_file="data/enemies_gfx/tank_emissive.xml"
alpha="0.5"
emissive="1"
additive="1"
next_rect_animation=""
rect_animation="walk"
>
</SpriteComponent>
<SpriteComponent
_tags="gun"
alpha="1"
image_file="data/enemies_gfx/tank_gun_illusion.xml"
transform_offset.y="-5"
alpha="0.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.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_scavenger.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>
<LifetimeComponent
lifetime="600"
>
</LifetimeComponent>
<AudioComponent
file="data/audio/Desktop/animals.bank"
event_root="animals/illusion">
</AudioComponent>
<LuaComponent
script_source_file="data/scripts/animals/illusion_disappear.lua"
execute_every_n_frame="-1"
execute_on_removed="1"
>
</LuaComponent>
</Entity>