167 lines
3.9 KiB
XML
167 lines
3.9 KiB
XML
<Entity name="$animal_wizard_tele" >
|
|
|
|
<Base file="data/entities/base_enemy_basic.xml" >
|
|
<ItemChestComponent level="2" > </ItemChestComponent>
|
|
|
|
<AnimalAIComponent
|
|
_enabled="1"
|
|
preferred_job="JobDefault"
|
|
attack_melee_enabled="0"
|
|
creature_detection_range_x="400"
|
|
creature_detection_range_y="400"
|
|
food_material="blood"
|
|
needs_food="0"
|
|
sense_creatures="1"
|
|
attack_ranged_enabled="1"
|
|
can_fly="1"
|
|
attack_ranged_entity_file="data/entities/projectiles/orb_tele.xml"
|
|
attack_ranged_action_frame="5"
|
|
attack_ranged_frames_between="180"
|
|
attack_ranged_offset_y="0"
|
|
attack_ranged_min_distance="0"
|
|
attack_ranged_max_distance="300"
|
|
>
|
|
</AnimalAIComponent>
|
|
|
|
<DamageModelComponent
|
|
hp="2"
|
|
ragdoll_material="meat_teleport"
|
|
ragdoll_filenames_file="data/ragdolls/wizard_tele/filenames.txt"
|
|
blood_material="magic_liquid_teleportation"
|
|
>
|
|
</DamageModelComponent>
|
|
|
|
<SpriteComponent
|
|
image_file="data/enemies_gfx/wizard_tele.xml"
|
|
offset_x="0"
|
|
offset_y="0">
|
|
</SpriteComponent>
|
|
|
|
<PathFindingComponent
|
|
can_jump="1" >
|
|
</PathFindingComponent>
|
|
|
|
<PathFindingGridMarkerComponent
|
|
marker_work_flag="16" >
|
|
</PathFindingGridMarkerComponent>
|
|
|
|
<GenomeDataComponent
|
|
herd_id="mage"
|
|
food_chain_rank="6"
|
|
is_predator="1" >
|
|
</GenomeDataComponent>
|
|
|
|
<CharacterPlatformingComponent
|
|
jump_velocity_y="-12"
|
|
swim_idle_buoyancy_coeff="1.0"
|
|
run_velocity="18" >
|
|
</CharacterPlatformingComponent>
|
|
|
|
<CameraBoundComponent
|
|
max_count="30"
|
|
distance="160000">
|
|
</CameraBoundComponent>
|
|
|
|
<HitboxComponent
|
|
_enabled="1"
|
|
aabb_min_x="-4.5"
|
|
aabb_max_x="4.5"
|
|
aabb_min_y="-10"
|
|
aabb_max_y="3"
|
|
>
|
|
</HitboxComponent>
|
|
|
|
<CharacterDataComponent
|
|
collision_aabb_min_x="-3.0"
|
|
collision_aabb_max_x="3.0"
|
|
collision_aabb_min_y="-7"
|
|
collision_aabb_max_y="3"
|
|
>
|
|
</CharacterDataComponent>
|
|
</Base>
|
|
|
|
<Entity name="teleporting">
|
|
<GameEffectComponent
|
|
effect="TELEPORTATION"
|
|
frames="-1"
|
|
teleportation_probability="50"
|
|
teleportation_delay_min_frames="600"
|
|
teleportation_radius_max="324"
|
|
>
|
|
</GameEffectComponent >
|
|
</Entity>
|
|
|
|
<SpriteParticleEmitterComponent
|
|
sprite_file="data/particles/teleparticle.xml"
|
|
delay="0"
|
|
lifetime="0.4"
|
|
color.r="1" color.g="1" color.b="1" color.a="0.5"
|
|
color_change.r="0" color_change.g="0" color_change.b="0" color_change.a="-0.2"
|
|
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="0.2"
|
|
scale_velocity.x="-0.2" scale_velocity.y="1"
|
|
emission_interval_min_frames="3"
|
|
emission_interval_max_frames="6"
|
|
count_min="1" count_max="3"
|
|
randomize_position.min_x="-5"
|
|
randomize_position.max_x="5"
|
|
randomize_position.min_y="-8"
|
|
randomize_position.max_y="8"
|
|
randomize_velocity.min_y="-40"
|
|
randomize_velocity.max_y="40"
|
|
randomize_lifetime.min="-0.45"
|
|
randomize_lifetime.max="0.2"
|
|
>
|
|
</SpriteParticleEmitterComponent>
|
|
|
|
<ItemPickUpperComponent
|
|
is_in_npc="1">
|
|
</ItemPickUpperComponent>
|
|
|
|
<SpriteComponent
|
|
_tags="character"
|
|
_enabled="1"
|
|
alpha="1"
|
|
image_file="data/enemies_gfx/wizard_tele_emissive.xml"
|
|
offset_x="0"
|
|
offset_y="0"
|
|
emissive="1"
|
|
additive="1"
|
|
next_rect_animation=""
|
|
rect_animation="walk"
|
|
>
|
|
</SpriteComponent>
|
|
|
|
<HotspotComponent
|
|
_tags="cape_root"
|
|
sprite_hotspot_name="cape" >
|
|
</HotspotComponent>
|
|
|
|
<AudioLoopComponent
|
|
file="data/audio/Desktop/animals.bank"
|
|
event_name="animals/wizard/movement_loop"
|
|
set_speed_parameter="1"
|
|
auto_play="1">
|
|
</AudioLoopComponent>
|
|
|
|
<AudioComponent
|
|
file="data/audio/Desktop/animals.bank"
|
|
event_root="animals/wizard" >
|
|
</AudioComponent>
|
|
|
|
<Entity name="cape">
|
|
<Base file="data/entities/verlet_chains/cape/cape.xml">
|
|
<VerletPhysicsComponent
|
|
cloth_color_edge="0xFFC4B37E"
|
|
cloth_color="0xFF40572B">
|
|
</VerletPhysicsComponent>
|
|
</Base>
|
|
</Entity>
|
|
|
|
</Entity>
|