185 lines
5.6 KiB
XML
185 lines
5.6 KiB
XML
|
<Entity tags="enemy,mortal,hittable,homing_target,teleportable_NOT,glue_NOT" name="$animal_lukki" >
|
||
|
|
||
|
<AnimalAIComponent
|
||
|
_enabled="1"
|
||
|
preferred_job="JobDefault"
|
||
|
escape_if_damaged_probability="0"
|
||
|
creature_detection_range_x="700"
|
||
|
creature_detection_range_y="10"
|
||
|
food_material="meat"
|
||
|
needs_food="0"
|
||
|
sense_creatures="1"
|
||
|
attack_ranged_enabled="0"
|
||
|
attack_melee_enabled="1"
|
||
|
can_fly="0"
|
||
|
attack_melee_action_frame="5"
|
||
|
aggressiveness_min="95"
|
||
|
aggressiveness_max="100"
|
||
|
is_static_turret="1"
|
||
|
attack_melee_max_distance="15"
|
||
|
attack_melee_damage_min="0.6"
|
||
|
attack_melee_damage_max="1.0"
|
||
|
>
|
||
|
</AnimalAIComponent>
|
||
|
|
||
|
<SpriteComponent
|
||
|
image_file="data/enemies_gfx/chest_mimic.xml"
|
||
|
offset_x="0"
|
||
|
offset_y="0"
|
||
|
>
|
||
|
</SpriteComponent>
|
||
|
|
||
|
<LightComponent
|
||
|
_tags="enabled_in_world"
|
||
|
r="255"
|
||
|
g="255"
|
||
|
b="255"
|
||
|
radius="64"
|
||
|
fade_out_time="0.75" >
|
||
|
</LightComponent>
|
||
|
|
||
|
<!-- AI ------------------------>
|
||
|
|
||
|
<LimbBossComponent
|
||
|
state="1">
|
||
|
</LimbBossComponent>
|
||
|
|
||
|
<PathFindingComponent
|
||
|
can_dive="1"
|
||
|
can_fly="1"
|
||
|
can_jump="0"
|
||
|
can_swim_on_surface="1"
|
||
|
can_walk="1"
|
||
|
cost_of_flying="500"
|
||
|
distance_to_reach_node_x="20"
|
||
|
distance_to_reach_node_y="20"
|
||
|
frames_between_searches="20"
|
||
|
frames_to_get_stuck="120"
|
||
|
initial_jump_lob="1"
|
||
|
initial_jump_max_distance_x="100"
|
||
|
initial_jump_max_distance_y="60"
|
||
|
iterations_max_no_goal="9999999"
|
||
|
iterations_max_with_goal="145000"
|
||
|
jump_speed="200"
|
||
|
max_jump_distance_from_camera="400"
|
||
|
search_depth_max_no_goal="120"
|
||
|
search_depth_max_with_goal="145000"
|
||
|
y_walking_compensation="8" >
|
||
|
</PathFindingComponent>
|
||
|
|
||
|
<PathFindingGridMarkerComponent
|
||
|
_enabled="1"
|
||
|
marker_offset_x="0"
|
||
|
marker_offset_y="-6"
|
||
|
marker_work_flag="16" >
|
||
|
</PathFindingGridMarkerComponent>
|
||
|
|
||
|
|
||
|
<!-- physics ------------------------>
|
||
|
|
||
|
<PhysicsAIComponent
|
||
|
target_vec_max_len="15.0"
|
||
|
force_coeff="10.0"
|
||
|
force_balancing_coeff="0.8"
|
||
|
force_max="100"
|
||
|
torque_coeff="50"
|
||
|
torque_balancing_coeff="4"
|
||
|
torque_max="50.0"
|
||
|
damage_deactivation_probability="0"
|
||
|
damage_deactivation_time_min="2"
|
||
|
damage_deactivation_time_max="10" >
|
||
|
</PhysicsAIComponent>
|
||
|
|
||
|
<PhysicsBodyComponent
|
||
|
force_add_update_areas="1"
|
||
|
allow_sleep="1"
|
||
|
angular_damping="0.02"
|
||
|
fixed_rotation="1"
|
||
|
is_bullet="0"
|
||
|
linear_damping="0" >
|
||
|
</PhysicsBodyComponent>
|
||
|
|
||
|
<PhysicsShapeComponent
|
||
|
is_circle="0"
|
||
|
radius_x="9"
|
||
|
radius_y="6"
|
||
|
friction="0.0"
|
||
|
restitution="0.3" >
|
||
|
</PhysicsShapeComponent>
|
||
|
|
||
|
|
||
|
<!-- damage ------------------------>
|
||
|
|
||
|
<DamageModelComponent
|
||
|
hp="6"
|
||
|
air_needed="0"
|
||
|
falling_damages="0"
|
||
|
fire_damage_amount="2.2"
|
||
|
|
||
|
fire_probability_of_ignition="0.5"
|
||
|
blood_material=""
|
||
|
is_on_fire="0"
|
||
|
materials_damage="1"
|
||
|
materials_how_much_damage="0.1"
|
||
|
materials_that_damage="acid"
|
||
|
ragdoll_filenames_file=""
|
||
|
ragdoll_material="wood_prop"
|
||
|
ragdoll_offset_y="-6"
|
||
|
ragdollify_child_entity_sprites="1"
|
||
|
>
|
||
|
<damage_multipliers
|
||
|
melee="2.0"
|
||
|
projectile="1.0"
|
||
|
explosion="0.5"
|
||
|
electricity="1.2"
|
||
|
fire="1.2" >
|
||
|
</damage_multipliers>
|
||
|
</DamageModelComponent>
|
||
|
|
||
|
<GenomeDataComponent
|
||
|
food_chain_rank="5"
|
||
|
herd_id="ghost"
|
||
|
is_predator="1" >
|
||
|
</GenomeDataComponent>
|
||
|
|
||
|
<!-- center hitbox (weak spot) -->
|
||
|
<HitboxComponent
|
||
|
_tags="hitbox_weak_spot"
|
||
|
aabb_min_x="-10"
|
||
|
aabb_max_x="10"
|
||
|
aabb_min_y="-10"
|
||
|
aabb_max_y="10"
|
||
|
damage_multiplier="1.0" >
|
||
|
</HitboxComponent>
|
||
|
|
||
|
|
||
|
<!-- etc ------------------------>
|
||
|
|
||
|
<AudioComponent
|
||
|
file="data/audio/Desktop/animals.bank"
|
||
|
event_root="animals" >
|
||
|
</AudioComponent>
|
||
|
|
||
|
<SpriteAnimatorComponent
|
||
|
rotate_to_surface_normal="0" >
|
||
|
</SpriteAnimatorComponent>
|
||
|
|
||
|
<!-- drop a secret -->
|
||
|
<LuaComponent
|
||
|
script_death="data/scripts/animals/chest_leggy_death.lua"
|
||
|
>
|
||
|
</LuaComponent>
|
||
|
|
||
|
|
||
|
<!-- limbs ------------------------>
|
||
|
|
||
|
<Entity> <InheritTransformComponent><Transform position.x="-6" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_left.xml" /> </Entity>
|
||
|
<Entity> <InheritTransformComponent><Transform position.x="-4" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_left.xml" /> </Entity>
|
||
|
<Entity> <InheritTransformComponent><Transform position.x="-2" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_left.xml" /> </Entity>
|
||
|
<!-- <Entity> <InheritTransformComponent><Transform position.x="0" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb.xml" /> </Entity> -->
|
||
|
<Entity> <InheritTransformComponent><Transform position.x="2" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_right.xml" /> </Entity>
|
||
|
<Entity> <InheritTransformComponent><Transform position.x="4" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_right.xml" /> </Entity>
|
||
|
<Entity> <InheritTransformComponent><Transform position.x="6" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_right.xml" /> </Entity>
|
||
|
|
||
|
<Entity name="limb_attacker"> <InheritTransformComponent><Transform position.x="0" position.y="0" /></InheritTransformComponent> <Base file="data/entities/animals/lukki/lukki_feet/chest_limb_attacker.xml" /> </Entity>
|
||
|
</Entity>
|