Consistency/data/entities/animals/mimic_physics.xml

210 lines
4.7 KiB
XML
Raw Normal View History

2021-08-20 01:53:47 +00:00
<Entity tags="glue_NOT" name="$animal_mimic_physics" >
<PhysicsAIComponent
_enabled="0"
target_vec_max_len="15.0"
force_coeff="22.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/props_gfx/vase2.png"
centered="0"
material="plastic_prop"
offset_x="8"
offset_y="16"
>
</PhysicsImageShapeComponent>
<LightComponent
_enabled="0"
radius="200"
r="135"
g="10"
b="180" >
</LightComponent>
<Base file="data/entities/base_enemy_flying.xml" >
<AnimalAIComponent
_enabled="0"
preferred_job="JobDefault"
attack_ranged_min_distance="0"
attack_ranged_max_distance="50"
creature_detection_range_x="300"
creature_detection_range_y="300"
attack_ranged_action_frame="3"
attack_melee_action_frame="3"
sense_creatures="1"
attack_ranged_enabled="1"
attack_melee_enabled="0"
can_fly="1"
attack_ranged_entity_file="data/entities/projectiles/orb_pink.xml"
attack_ranged_frames_between="10"
eye_offset_y="-5"
attack_ranged_offset_y="-5"
>
</AnimalAIComponent>
<DamageModelComponent
hp="3"
ragdoll_material="plastic_prop"
ragdoll_filenames_file=""
blood_material="water"
blood_spray_material="water"
fire_probability_of_ignition="0"
air_needed="0"
blood_sprite_directional=""
blood_sprite_large=""
>
<damage_multipliers
melee="0.3"
projectile="0.3"
explosion="1.0"
electricity="0.1"
fire="0" >
</damage_multipliers>
</DamageModelComponent>
<SpriteComponent
image_file=""
offset_x="0"
offset_y="0">
</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"
can_fly="1"
jump_speed="0"
>
</PathFindingComponent>
<GenomeDataComponent
herd_id="ghost"
food_chain_rank="7"
is_predator="1" >
</GenomeDataComponent>
<CharacterPlatformingComponent
jump_velocity_y="0"
run_velocity="24" >
</CharacterPlatformingComponent>
<HitboxComponent
_enabled="1"
aabb_max_x="5"
aabb_max_y="0"
aabb_min_x="-5"
aabb_min_y="-12"
>
</HitboxComponent>
<CameraBoundComponent
max_count="30"
distance="160000">
</CameraBoundComponent>
<CharacterDataComponent
collision_aabb_min_x="-4"
collision_aabb_max_x="4"
collision_aabb_min_y="-6"
collision_aabb_max_y="2"
mass="2.0"
>
</CharacterDataComponent>
<SpriteStainsComponent
_enabled="0"
>
</SpriteStainsComponent>
</Base>
<SpriteParticleEmitterComponent
_enabled="0"
sprite_file="data/particles/creepy.xml"
delay="0"
lifetime="0"
render_back="1"
color.r="1" color.g="1" color.b="1" color.a="0.4"
color_change.r="0" color_change.g="0" color_change.b="0" color_change.a="-1"
velocity.x="0" velocity.y="0"
gravity.x="0" gravity.y="0"
velocity_slowdown="0"
rotation="0"
angular_velocity="0"
use_velocity_as_rotation="0"
scale.x="1" scale.y="1"
scale_velocity.x="0" scale_velocity.y="0"
emission_interval_min_frames="3"
emission_interval_max_frames="4"
count_min="1" count_max="1"
randomize_rotation.min="-3.1415"
randomize_rotation.max="3.1415"
randomize_angular_velocity.min="-8.3415"
randomize_angular_velocity.max="8.3415"
randomize_position.min_x="-2"
randomize_position.max_x="2"
randomize_position.min_y="-2"
randomize_position.max_y="2"
randomize_velocity.min_x="-8"
randomize_velocity.max_x="8"
randomize_velocity.min_y="-8"
randomize_velocity.max_y="8"
>
</SpriteParticleEmitterComponent>
<LuaComponent
_enabled="1"
script_damage_received="data/scripts/animals/mimic_damage.lua"
remove_after_executed="0"
>
</LuaComponent>
<LuaComponent
_enabled="1"
script_damage_received="data/scripts/animals/mimic_wake.lua"
remove_after_executed="1"
>
</LuaComponent>
<LuaComponent
execute_on_removed="0"
execute_every_n_frame="-1"
script_collision_trigger_hit="data/scripts/animals/mimic_wake.lua"
remove_after_executed="1"
>
</LuaComponent>
<CollisionTriggerComponent
width="80"
height="80"
radius="40"
required_tag="player_unit"
destroy_this_entity_when_triggered="0"
remove_component_when_triggered="1"
timer_for_destruction="30" >
</CollisionTriggerComponent>
</Entity>