Consistency/data/entities/animals/pebble_physics.xml

244 lines
5.8 KiB
XML
Raw Permalink Normal View History

2021-08-20 01:53:47 +00:00
<Entity tags="glue_NOT" name="$animal_pebble">
<PhysicsAIComponent
target_vec_max_len="25.0"
force_coeff="28.0"
force_balancing_coeff="1.2"
force_max="110"
torque_coeff="50"
torque_balancing_coeff="0.4"
torque_max="50.0"
damage_deactivation_probability="30"
damage_deactivation_time_min="30"
damage_deactivation_time_max="60" >
</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/enemies_gfx/pebble_physics.png"
centered="0"
material="rock_box2d_nohit"
offset_x="8"
offset_y="8"
>
</PhysicsImageShapeComponent>
<Base file="data/entities/base_enemy_basic.xml" >
<AnimalAIComponent
_enabled="1"
escape_if_damaged_probability="0"
food_material="blood_cold"
attack_melee_enabled="0"
attack_melee_max_distance="1"
attack_dash_enabled="1"
attack_dash_distance="30"
attack_dash_damage="0"
creature_detection_range_x="400"
creature_detection_range_y="400"
can_fly="1"
needs_food="0"
>
</AnimalAIComponent>
<DamageModelComponent
hp="0.1"
ragdoll_filenames_file=""
fire_probability_of_ignition="0"
ragdoll_material="rock_box2d_nohit"
blood_multiplier="0.4"
ragdoll_blood_amount_absolute="0"
blood_material="blood_cold"
blood_spray_material="blood_cold"
blood_sprite_directional="data/particles/bloodsplatters/bloodsplatter_directional_blue_$[1-3].xml"
blood_sprite_large="data/particles/bloodsplatters/bloodsplatter_blue_$[1-3].xml"
healing_particle_effect_entity="data/entities/particles/heal_effect.xml"
>
<damage_multipliers
melee="0.0"
fire="0.0"
ice="-1"
>
</damage_multipliers>
</DamageModelComponent>
<SpriteComponent
image_file=""
offset_x="0"
offset_y="0"
>
</SpriteComponent>
<PathFindingGridMarkerComponent
marker_work_flag="16"
>
</PathFindingGridMarkerComponent>
<PathFindingComponent
frames_to_get_stuck="120"
can_jump="0"
can_fly="1"
>
</PathFindingComponent>
<GenomeDataComponent
herd_id="giant"
food_chain_rank="9"
is_predator="1"
>
</GenomeDataComponent>
<CharacterPlatformingComponent
jump_velocity_y="-90"
run_velocity="57"
fly_speed_max_up="180"
fly_speed_max_down="180"
fly_velocity_x="180"
>
</CharacterPlatformingComponent>
<CameraBoundComponent
max_count="30"
distance="160000"
>
</CameraBoundComponent>
<HitboxComponent
_enabled="1"
aabb_max_x="6"
aabb_max_y="4"
aabb_min_x="-6"
aabb_min_y="-10"
>
</HitboxComponent>
<ItemChestComponent
enemy_drop="0"
item_count_min="0"
item_count_max="0"
>
</ItemChestComponent>
<CharacterDataComponent
collision_aabb_min_x="-4.0"
collision_aabb_max_x="4.0"
collision_aabb_min_y="-10"
collision_aabb_max_y="3"
mass="0.7"
>
</CharacterDataComponent>
</Base>
<MaterialInventoryComponent
_enabled="1"
drop_as_item="0"
leak_on_damage_percent="0.999"
>
<count_per_material_type>
<Material material="blood_cold" count="50" />
</count_per_material_type>
</MaterialInventoryComponent>
<!-- HACK FIX: for some reason pebbles leak the light sprites left by these components -->
<!--<LightComponent
_enabled="1"
radius="30"
offset_y="0"
r="0"
g="140"
b="40"
>
</LightComponent>-->
<ExplosionComponent
trigger="ON_DEATH"
><config_explosion
damage="2.5"
never_cache="0"
camera_shake="8"
explosion_radius="14"
explosion_sprite="data/particles/explosion_025_fuel.xml"
load_this_entity="data/entities/particles/particle_explosion/main_bluesmoke_small.xml"
explosion_sprite_lifetime="0"
explosion_sprite_random_rotation="0"
create_cell_probability="20"
create_cell_material="blood_cold"
hole_destroy_liquid="0"
explosion_sprite_emissive="1"
explosion_sprite_additive="1"
hole_enabled="1"
hole_image="data/temp/explosion_hole.png"
particle_effect="1"
physics_explosion_power.min="1.0"
physics_explosion_power.max="1.6"
physics_throw_enabled="1"
shake_vegetation="1"
sparks_count_min="7"
sparks_count_max="14"
sparks_enabled="1"
stains_enabled="1"
stains_image="data/temp/explosion_stain.png"
ray_energy="200000">
</config_explosion>
</ExplosionComponent>
<ExplosionComponent
trigger="ON_TIMER"
timeout_frames="400"
><config_explosion
damage="2.5"
never_cache="0"
camera_shake="8"
explosion_radius="14"
explosion_sprite="data/particles/explosion_025_fuel.xml"
load_this_entity="data/entities/particles/particle_explosion/main_bluesmoke.xml"
explosion_sprite_lifetime="0"
explosion_sprite_random_rotation="0"
create_cell_probability="20"
create_cell_material="blood_cold"
hole_destroy_liquid="0"
explosion_sprite_emissive="1"
explosion_sprite_additive="1"
hole_enabled="1"
hole_image="data/temp/explosion_hole.png"
particle_effect="1"
physics_explosion_power.min="1.0"
physics_explosion_power.max="1.6"
physics_throw_enabled="1"
shake_vegetation="1"
sparks_count_min="7"
sparks_count_max="14"
sparks_enabled="1"
stains_enabled="1"
stains_image="data/temp/explosion_stain.png"
ray_energy="200000">
</config_explosion>
</ExplosionComponent>
<CollisionTriggerComponent
width="15"
height="15"
radius="10"
required_tag="mortal"
timer_for_destruction="2"
>
</CollisionTriggerComponent>
<VariableStorageComponent
_tags="no_gold_drop">
</VariableStorageComponent>
<AudioLoopComponent
file="data/audio/Desktop/animals.bank"
event_name="animals/pebble/movement_loop"
set_speed_parameter="1"
auto_play="1">
</AudioLoopComponent>
</Entity>