192 lines
4.8 KiB
XML
192 lines
4.8 KiB
XML
<Entity
|
|
name="$projectile_default"
|
|
tags="teleportable_NOT,projectile"
|
|
>
|
|
|
|
<VelocityComponent
|
|
gravity_y="0"
|
|
mass="0.1"
|
|
>
|
|
</VelocityComponent>
|
|
|
|
<HomingComponent
|
|
target_tag="prey"
|
|
homing_targeting_coeff="15"
|
|
detect_distance="400"
|
|
homing_velocity_multiplier="1.0"
|
|
>
|
|
</HomingComponent>
|
|
|
|
<ProjectileComponent
|
|
_enabled="1"
|
|
lob_min="0.8"
|
|
lob_max="1.0"
|
|
speed_min="80"
|
|
speed_max="80"
|
|
friction="-1.0"
|
|
direction_random_rad="0.05"
|
|
on_death_explode="1"
|
|
on_death_gfx_leave_sprite="0"
|
|
on_lifetime_out_explode="1"
|
|
explosion_dont_damage_shooter="0"
|
|
on_collision_die="1"
|
|
lifetime="100"
|
|
damage="6"
|
|
velocity_sets_scale="1"
|
|
lifetime_randomness="7"
|
|
ragdoll_force_multiplier="0.04"
|
|
hit_particle_force_multiplier="5.5"
|
|
camera_shake_when_shot="5.0"
|
|
bounces_left="1"
|
|
muzzle_flash_file="data/entities/particles/muzzle_flashes/muzzle_flash_launcher_large.xml"
|
|
shoot_light_flash_r="255"
|
|
shoot_light_flash_g="210"
|
|
shoot_light_flash_b="40"
|
|
shoot_light_flash_radius="90"
|
|
knockback_force="2.0"
|
|
>
|
|
<damage_by_type
|
|
fire="2.2"
|
|
>
|
|
</damage_by_type>
|
|
<config_explosion
|
|
never_cache="1"
|
|
camera_shake="20"
|
|
explosion_radius="10"
|
|
explosion_sprite="data/particles/explosion_032.xml"
|
|
explosion_sprite_lifetime="0"
|
|
create_cell_probability="5"
|
|
hole_destroy_liquid="0"
|
|
load_this_entity="data/entities/particles/particle_explosion/main_small.xml"
|
|
explosion_sprite_emissive="1"
|
|
explosion_sprite_additive="1"
|
|
hole_enabled="1"
|
|
ray_energy="100000"
|
|
damage="5.5"
|
|
particle_effect="1"
|
|
damage_mortals="1"
|
|
physics_explosion_power.min="0.5"
|
|
physics_explosion_power.max="0.7"
|
|
physics_throw_enabled="1"
|
|
shake_vegetation="1"
|
|
sparks_count_max="20"
|
|
sparks_count_min="7"
|
|
sparks_enabled="1"
|
|
stains_enabled="1"
|
|
stains_radius="15"
|
|
audio_event_name="explosions/tnt" >
|
|
</config_explosion>
|
|
</ProjectileComponent>
|
|
|
|
<SpriteComponent
|
|
_enabled="1"
|
|
alpha="1"
|
|
image_file="data/projectiles_gfx/rocket.xml"
|
|
next_rect_animation=""
|
|
offset_x="0"
|
|
offset_y="0"
|
|
rect_animation=""
|
|
>
|
|
</SpriteComponent>
|
|
|
|
<ParticleEmitterComponent
|
|
emitted_material_name="smoke"
|
|
offset.x="0"
|
|
offset.y="0"
|
|
x_pos_offset_min="-1"
|
|
y_pos_offset_min="-1"
|
|
x_pos_offset_max="1"
|
|
y_pos_offset_max="1"
|
|
x_vel_min="-10"
|
|
x_vel_max="10"
|
|
y_vel_min="-10"
|
|
y_vel_max="10"
|
|
count_min="5"
|
|
count_max="5"
|
|
lifetime_min="0.1"
|
|
lifetime_max="0.3"
|
|
create_real_particles="1"
|
|
emit_cosmetic_particles="0"
|
|
emission_interval_min_frames="1"
|
|
emission_interval_max_frames="1"
|
|
is_emitting="1" >
|
|
</ParticleEmitterComponent>
|
|
|
|
<ParticleEmitterComponent
|
|
emitted_material_name="fire"
|
|
offset.x="0"
|
|
offset.y="0"
|
|
x_pos_offset_min="-1"
|
|
y_pos_offset_min="-1"
|
|
x_pos_offset_max="1"
|
|
y_pos_offset_max="1"
|
|
x_vel_min="-2"
|
|
x_vel_max="2"
|
|
y_vel_min="-5"
|
|
y_vel_max="0"
|
|
count_min="1"
|
|
count_max="1"
|
|
lifetime_min="0.1"
|
|
lifetime_max="0.4"
|
|
create_real_particles="1"
|
|
emit_cosmetic_particles="0"
|
|
emission_interval_min_frames="1"
|
|
emission_interval_max_frames="3"
|
|
is_emitting="1" >
|
|
</ParticleEmitterComponent>
|
|
|
|
<SpriteParticleEmitterComponent
|
|
sprite_file="data/particles/smoke_orange.xml"
|
|
delay="0"
|
|
lifetime="0"
|
|
emissive="0"
|
|
sprite_random_rotation="1"
|
|
color.r="1" color.g="1" color.b="1" color.a="1"
|
|
color_change.r="0" color_change.g="0" color_change.b="0" color_change.a="0"
|
|
velocity.x="0" velocity.y="0"
|
|
gravity.x="0" gravity.y="0"
|
|
velocity_slowdown="0.5"
|
|
rotation="0"
|
|
angular_velocity="0"
|
|
use_velocity_as_rotation="0"
|
|
scale.x="1" scale.y="1"
|
|
scale_velocity.x="-0.1" scale_velocity.y="-0.1"
|
|
emission_interval_min_frames="1"
|
|
emission_interval_max_frames="1"
|
|
count_min="1" count_max="1"
|
|
randomize_rotation.min="-3.1415"
|
|
randomize_rotation.max="3.1415"
|
|
randomize_angular_velocity.min="-1"
|
|
randomize_angular_velocity.max="1"
|
|
randomize_position.min_x="-2"
|
|
randomize_position.max_x="2"
|
|
randomize_position.min_y="-2"
|
|
randomize_position.max_y="2"
|
|
randomize_velocity.min_y="0"
|
|
randomize_velocity.max_y="2"
|
|
randomize_velocity.min_x="-2"
|
|
randomize_velocity.max_x="2"
|
|
render_back="1"
|
|
>
|
|
</SpriteParticleEmitterComponent>
|
|
|
|
<AudioComponent
|
|
file="data/audio/Desktop/projectiles.bank"
|
|
event_root="projectiles/rocket">
|
|
</AudioComponent>
|
|
|
|
<AudioLoopComponent
|
|
file="data/audio/Desktop/projectiles.bank"
|
|
event_name="projectiles/rocket_passby"
|
|
auto_play="1">
|
|
</AudioLoopComponent>
|
|
|
|
<VariableStorageComponent
|
|
name="projectile_file"
|
|
value_string="data/entities/projectiles/rocket_tank.xml"
|
|
>
|
|
</VariableStorageComponent>
|
|
|
|
</Entity>
|
|
|