Evil eye
unknown
plain_text
3 years ago
24 kB
1,419
Indexable
Code for the evil eye
<Entity
_version="1"
name=""
serialize="1"
tags="teleportable_NOT,hittable,item_physics,item_pickup,evil_eye" >
<_Transform
position.x="-2295.23"
position.y="-314.853"
rotation="-0.506222"
scale.x="1"
scale.y="1" >
</_Transform>
<AbilityComponent
_enabled="0"
add_these_child_actions=""
amount_in_inventory="1"
base_item_file="data/entities/base_item.xml"
charge_wait_frames="10"
click_to_use="1"
cooldown_frames="0"
current_slot_durability="-1"
drop_as_item_on_death="1"
entity_count="1"
entity_file=""
fast_projectile="0"
is_petris_gun="0"
item_recoil_max="1"
item_recoil_offset_coeff="1"
item_recoil_recovery_speed="15"
item_recoil_rotation_coeff="5"
mChargeCount="0"
mIsInitialized="1"
mana="100"
mana_charge_speed="10"
mana_max="100"
max_amount_in_inventory="1"
max_charged_actions="0"
never_reload="0"
reload_time_frames="0"
rotate_hand_amount="0.7"
rotate_in_hand="1"
rotate_in_hand_amount="1"
shooting_reduces_amount_in_inventory="0"
simulate_throw_as_item="0"
slot_consumption_function="_get_gun_slot_durability_default"
sprite_file=""
stat_times_player_has_edited="0"
stat_times_player_has_shot="0"
swim_propel_amount="0"
throw_as_item="1"
ui_name="$item_evil_eye"
use_entity_file_as_projectile_info_proxy="0"
use_gun_script="0" >
<gun_config
actions_per_round="1"
deck_capacity="0"
reload_time="40"
shuffle_deck_when_empty="0" >
</gun_config>
<gunaction_config
action_ai_never_uses="0"
action_description=""
action_draw_many_count="0"
action_id=""
action_is_dangerous_blast="0"
action_mana_drain="10"
action_max_uses="-1"
action_name=""
action_never_unlimited="0"
action_spawn_level=""
action_spawn_manual_unlock="0"
action_spawn_probability=""
action_spawn_requires_flag=""
action_sprite_filename=""
action_type="0"
action_unidentified_sprite_filename="data/ui_gfx/gun_actions/unidentified.png"
blood_count_multiplier="1"
bounces="0"
child_speed_multiplier="1"
custom_xml_file=""
damage_critical_chance="0"
damage_critical_multiplier="0"
damage_curse_add="0"
damage_drill_add="0"
damage_electricity_add="0"
damage_explosion_add="0"
damage_fire_add="0"
damage_healing_add="0"
damage_ice_add="0"
damage_melee_add="0"
damage_projectile_add="0"
damage_slice_add="0"
dampening="1"
explosion_damage_to_materials="0"
explosion_radius="0"
extra_entities=""
fire_rate_wait="0"
friendly_fire="0"
game_effect_entities=""
gore_particles="0"
gravity="0"
knockback_force="0"
lifetime_add="0"
light="0"
lightning_count="0"
material=""
material_amount="0"
pattern_degrees="0"
physics_impulse_coeff="0"
projectile_file=""
ragdoll_fx="0"
recoil="0"
reload_time="0"
screenshake="0"
sound_loop_tag=""
speed_multiplier="1"
spread_degrees="0"
sprite=""
state_cards_drawn="0"
state_destroyed_action="0"
state_discarded_action="0"
state_shuffled="0"
trail_material=""
trail_material_amount="0" >
</gunaction_config>
</AbilityComponent>
<ItemComponent
_enabled="0"
_tags="enabled_in_world"
always_use_item_name_in_ui="0"
auto_pickup="0"
camera_max_distance="50"
camera_smooth_speed_multiplier="1"
collect_nondefault_actions="0"
custom_pickup_string=""
drinkable="1"
enable_orb_hacks="0"
has_been_picked_by_player="1"
inventory_slot.x="1"
inventory_slot.y="0"
is_all_spells_book="0"
is_consumable="0"
is_equipable_forced="1"
is_frozen="0"
is_hittable_always="0"
is_identified="1"
is_pickable="1"
is_stackable="0"
item_name="$item_evil_eye"
item_pickup_radius="14.1"
mFramePickedUp="47543"
max_child_items="0"
next_frame_pickable="43360"
npc_next_frame_pickable="0"
permanently_attached="0"
play_hover_animation="0"
play_pick_sound="1"
play_spinning_animation="1"
preferred_inventory="QUICK"
remove_default_child_actions_on_death="0"
remove_on_death="0"
remove_on_death_if_empty="0"
spawn_pos.x="-2296.18"
spawn_pos.y="-316.525"
stats_count_as_item_pick_up="1"
ui_description="$item_description_evil_eye"
ui_display_description_on_pick_up_hint="0"
ui_sprite="data/ui_gfx/items/evil_eye.png"
uses_remaining="-1" >
</ItemComponent>
<LightComponent
_enabled="1"
_tags="enabled_in_world,enabled_in_hand,magic_eye_check"
b="94"
blinking_freq="1"
fade_out_time="0"
g="94"
offset_x="0"
offset_y="0"
r="255"
radius="60"
update_properties="0" >
</LightComponent>
<LuaComponent
_enabled="1"
_tags="enabled_in_world,enabled_in_hand"
call_init_function="0"
enable_coroutines="0"
execute_every_n_frame="1"
execute_on_added="0"
execute_on_removed="0"
execute_times="0"
mLastExecutionFrame="48580"
mModAppendsDone="1"
remove_after_executed="0"
script_audio_event_dead=""
script_collision_trigger_hit=""
script_collision_trigger_timer_finished=""
script_damage_about_to_be_received=""
script_damage_received=""
script_death=""
script_electricity_receiver_electrified=""
script_electricity_receiver_switched=""
script_enabled_changed=""
script_inhaled_material=""
script_interacting=""
script_item_picked_up=""
script_kick=""
script_material_area_checker_failed=""
script_material_area_checker_success=""
script_physics_body_modified=""
script_portal_teleport_used=""
script_pressure_plate_change=""
script_shot=""
script_source_file="data/scripts/items/evil_eye_beam.lua"
script_teleported=""
script_throw_item=""
script_wand_fired=""
vm_type="SHARED_BY_MANY_COMPONENTS" >
</LuaComponent>
<LuaComponent
_enabled="1"
_tags="enabled_in_hand"
call_init_function="0"
enable_coroutines="0"
execute_every_n_frame="-1"
execute_on_added="0"
execute_on_removed="0"
execute_times="0"
mLastExecutionFrame="47618"
mModAppendsDone="0"
remove_after_executed="0"
script_audio_event_dead=""
script_collision_trigger_hit=""
script_collision_trigger_timer_finished=""
script_damage_about_to_be_received=""
script_damage_received=""
script_death=""
script_electricity_receiver_electrified=""
script_electricity_receiver_switched=""
script_enabled_changed="data/scripts/items/evil_eye_state.lua"
script_inhaled_material=""
script_interacting=""
script_item_picked_up=""
script_kick=""
script_material_area_checker_failed=""
script_material_area_checker_success=""
script_physics_body_modified=""
script_portal_teleport_used=""
script_pressure_plate_change=""
script_shot=""
script_source_file=""
script_teleported=""
script_throw_item=""
script_wand_fired=""
vm_type="SHARED_BY_MANY_COMPONENTS" >
</LuaComponent>
<ParticleEmitterComponent
_enabled="1"
_tags="enabled_in_world,enabled_in_hand"
airflow_force="0"
airflow_scale="1"
airflow_time="1"
area_circle_radius.max="0"
area_circle_radius.min="0"
area_circle_sector_degrees="360"
attractor_force="0"
b2_force="0"
collide_with_gas_and_fire="1"
collide_with_grid="1"
color="0"
color_is_based_on_pos="0"
cosmetic_force_create="1"
count_max="20"
count_min="8"
create_real_particles="0"
custom_style="NONE"
delay_frames="0"
direction_random_deg="0"
draw_as_long="0"
emission_chance="100"
emission_interval_max_frames="100"
emission_interval_min_frames="10"
emit_cosmetic_particles="1"
emit_real_particles="0"
emitted_material_name="spark_red"
emitter_lifetime_frames="-1"
fade_based_on_lifetime="0"
fire_cells_dont_ignite_damagemodel="0"
friction="1"
gravity.x="0"
gravity.y="200"
image_animation_colors_file=""
image_animation_emission_probability="1"
image_animation_file=""
image_animation_loop="1"
image_animation_phase="0"
image_animation_raytrace_from_center="0"
image_animation_speed="1"
image_animation_use_entity_rotation="0"
is_emitting="1"
is_trail="0"
lifetime_max="0.9"
lifetime_min="0.3"
offset.x="0"
offset.y="0"
particle_single_width="1"
render_back="1"
render_on_grid="1"
render_ultrabright="0"
set_magic_creation="0"
trail_gap="0"
use_material_inventory="0"
velocity_always_away_from_center="1"
x_pos_offset_max="5"
x_pos_offset_min="-5"
x_vel_max="60"
x_vel_min="-60"
y_pos_offset_max="5"
y_pos_offset_min="-5"
y_vel_max="60"
y_vel_min="-60" >
</ParticleEmitterComponent>
<PhysicsBodyComponent
_enabled="0"
_tags="enabled_in_world"
allow_sleep="1"
angular_damping="0.95"
auto_clean="0"
buoyancy="0.7"
fixed_rotation="0"
force_add_update_areas="0"
go_through_sand="0"
gravity_scale_if_has_no_image_shapes="1"
gridworld_box2d="1"
hax_fix_going_through_ground="1"
hax_fix_going_through_sand="0"
hax_wait_till_pixel_scenes_loaded="0"
initial_velocity.x="0"
initial_velocity.y="0"
is_bullet="1"
is_character="0"
is_enabled="1"
is_external="0"
is_kinematic="0"
is_static="0"
kills_entity="1"
linear_damping="0"
mActiveState="0"
on_death_leave_physics_body="1"
on_death_really_leave_body="0"
projectiles_rotate_toward_velocity="0"
randomize_init_velocity="0"
uid="1"
update_entity_transform="1" >
</PhysicsBodyComponent>
<PhysicsImageShapeComponent
_enabled="0"
body_id="1"
centered="1"
image_file="data/items_gfx/evil_eye.png"
is_circle="0"
is_root="0"
material="item_box2d_meat"
offset_x="5.5"
offset_y="5.5"
use_sprite="0"
z="0" >
</PhysicsImageShapeComponent>
<PhysicsThrowableComponent
_enabled="0"
attach_min_speed="70"
attach_to_surfaces_knife_style="0"
hp="100"
max_throw_speed="180"
max_torque="1"
min_torque="0.1"
throw_force_coeff="1.25"
tip_check_offset_max="5"
tip_check_offset_min="3"
tip_check_random_rotation_deg="9" >
</PhysicsThrowableComponent>
<ProjectileComponent
_enabled="0"
_tags="enabled_in_world"
angular_velocity="0"
attach_to_parent_trigger="0"
blood_count_multiplier="1"
bounce_always="0"
bounce_at_any_angle="0"
bounce_energy="0.5"
bounce_fx_file=""
bounces_left="0"
camera_shake_when_shot="0"
collect_materials_to_shooter="0"
collide_with_entities="1"
collide_with_shooter_frames="-1"
collide_with_tag="hittable"
collide_with_world="1"
create_shell_casing="0"
damage="0"
damage_every_x_frames="-1"
damage_game_effect_entities=""
damage_scale_max_speed="200"
damage_scaled_by_speed="1"
die_on_liquid_collision="0"
die_on_low_velocity="0"
die_on_low_velocity_limit="50"
direction_nonrandom_rad="0"
direction_random_rad="0"
do_moveto_update="1"
dont_collide_with_tag=""
explosion_dont_damage_shooter="0"
friction="0"
friendly_fire="0"
go_through_this_material=""
ground_collision_fx="1"
ground_penetration_coeff="0"
ground_penetration_max_durability_to_destroy="0"
hit_particle_force_multiplier="0.1"
knockback_force="0"
lifetime="-1"
lifetime_randomness="0"
lob_max="0.8"
lob_min="0.5"
mLastFrameDamaged="-1024"
muzzle_flash_file=""
never_hit_player="1"
on_collision_die="1"
on_collision_remove_projectile="0"
on_collision_spawn_entity="1"
on_death_duplicate_remaining="0"
on_death_emit_particle="0"
on_death_emit_particle_count="1"
on_death_emit_particle_type=""
on_death_explode="0"
on_death_gfx_leave_sprite="1"
on_death_item_pickable_radius="0"
on_death_particle_check_concrete="0"
on_lifetime_out_explode="0"
penetrate_entities="1"
penetrate_world="0"
penetrate_world_velocity_coeff="0.6"
physics_impulse_coeff="300"
play_damage_sounds="1"
projectile_type="PROJECTILE"
ragdoll_force_multiplier="0.025"
ragdoll_fx_on_collision="NORMAL"
shell_casing_material="brass"
shell_casing_offset.x="0"
shell_casing_offset.y="0"
shoot_light_flash_b="150"
shoot_light_flash_g="180"
shoot_light_flash_r="255"
shoot_light_flash_radius="0"
spawn_entity=""
spawn_entity_is_projectile="0"
speed_max="60"
speed_min="60"
velocity_sets_rotation="1"
velocity_sets_scale="0"
velocity_sets_scale_coeff="1"
velocity_sets_y_flip="0"
velocity_updates_animation="0" >
<config
action_ai_never_uses="0"
action_description=""
action_draw_many_count="0"
action_id=""
action_is_dangerous_blast="0"
action_mana_drain="10"
action_max_uses="-1"
action_name=""
action_never_unlimited="0"
action_spawn_level=""
action_spawn_manual_unlock="0"
action_spawn_probability=""
action_spawn_requires_flag=""
action_sprite_filename=""
action_type="0"
action_unidentified_sprite_filename="data/ui_gfx/gun_actions/unidentified.png"
blood_count_multiplier="1"
bounces="0"
child_speed_multiplier="1"
custom_xml_file=""
damage_critical_chance="0"
damage_critical_multiplier="0"
damage_curse_add="0"
damage_drill_add="0"
damage_electricity_add="0"
damage_explosion_add="0"
damage_fire_add="0"
damage_healing_add="0"
damage_ice_add="0"
damage_melee_add="0"
damage_projectile_add="0"
damage_slice_add="0"
dampening="1"
explosion_damage_to_materials="0"
explosion_radius="0"
extra_entities=""
fire_rate_wait="0"
friendly_fire="0"
game_effect_entities=""
gore_particles="0"
gravity="0"
knockback_force="0"
lifetime_add="0"
light="0"
lightning_count="0"
material=""
material_amount="0"
pattern_degrees="0"
physics_impulse_coeff="0"
projectile_file=""
ragdoll_fx="0"
recoil="0"
reload_time="0"
screenshake="0"
sound_loop_tag=""
speed_multiplier="1"
spread_degrees="0"
sprite=""
state_cards_drawn="0"
state_destroyed_action="0"
state_discarded_action="0"
state_shuffled="0"
trail_material=""
trail_material_amount="0" >
</config>
<config_explosion
audio_enabled="1"
audio_event_name=""
audio_liquid_amount_normalized="0"
background_lightning_count="0"
camera_shake="7.5"
cell_explosion_damage_required="100"
cell_explosion_power="1"
cell_explosion_power_ragdoll_coeff="0.75"
cell_explosion_probability="0"
cell_explosion_radius_max="150"
cell_explosion_radius_min="5"
cell_explosion_velocity_min="0"
crack_count="10"
create_cell_material="fire"
create_cell_probability="5"
damage="5"
damage_mortals="1"
delay.max="0"
delay.min="0"
destroy_non_platform_solid_enabled="1"
electricity_count="0"
explosion_delay_id="-1"
explosion_radius="20"
explosion_sprite="data/particles/explosion_032.xml"
explosion_sprite_additive="0"
explosion_sprite_emissive="0"
explosion_sprite_lifetime="0"
explosion_sprite_random_rotation="1"
gore_particle_count="1"
hole_destroy_liquid="0"
hole_destroy_physics_dynamic="1"
hole_enabled="1"
is_digger="0"
knockback_force="1"
light_b="180"
light_enabled="1"
light_fade_time="0.08"
light_g="217"
light_r="255"
light_radius_coeff="8"
load_this_entity=""
material_sparks_count_max="20"
material_sparks_count_min="7"
material_sparks_enabled="0"
material_sparks_min_hp="10000"
material_sparks_probability="5"
material_sparks_real="0"
material_sparks_scale_with_hp="0"
max_durability_to_destroy="10"
min_radius_for_cracks="10"
never_cache="1"
particle_effect="1"
physics_explosion_power.max="0.2"
physics_explosion_power.min="0"
physics_multiplier_ragdoll_force="1"
physics_throw_enabled="1"
pixel_sprites_enabled="1"
ray_energy="20000"
shake_vegetation="1"
spark_material="spark"
sparks_count_max="20"
sparks_count_min="7"
sparks_enabled="1"
sparks_inner_radius_coeff="0.333"
stains_enabled="1"
stains_radius="0" >
<damage_critical
chance="0"
damage_multiplier="1" >
</damage_critical>
</config_explosion>
<damage_by_type
curse="0"
drill="0"
electricity="0"
explosion="0"
fire="0"
healing="0"
ice="0"
melee="0.5"
overeating="0"
physics_hit="0"
poison="0"
projectile="0"
radioactive="0"
slice="0" >
</damage_by_type>
<damage_critical
chance="0"
damage_multiplier="1" >
</damage_critical>
</ProjectileComponent>
<SpriteComponent
_enabled="1"
_tags="enabled_in_hand,evil_eye_in_hand"
additive="0"
alpha="1"
emissive="0"
fog_of_war_hole="0"
has_special_scale="0"
image_file="data/items_gfx/evil_eye.png"
is_text_sprite="0"
kill_entity_after_finished="0"
never_ragdollify_on_death="0"
next_rect_animation=""
offset_animator_offset.x="0"
offset_animator_offset.y="0"
offset_x="5.5"
offset_y="5.5"
rect_animation=""
smooth_filtering="0"
special_scale_x="1"
special_scale_y="1"
text=""
transform_offset.x="0"
transform_offset.y="0"
ui_is_parent="0"
update_transform="1"
update_transform_rotation="1"
visible="1"
z_index="0.595" >
</SpriteComponent>
<SpriteParticleEmitterComponent
_enabled="0"
additive="1"
angular_velocity="0"
camera_bound="1"
camera_distance="75"
color.a="1"
color.b="1"
color.g="0.5"
color.r="1"
color_change.a="-3.5"
color_change.b="0"
color_change.g="0"
color_change.r="0"
count_max="1"
count_min="1"
delay="0"
emission_interval_max_frames="6"
emission_interval_min_frames="3"
emissive="1"
entity_file=""
entity_velocity_multiplier="0"
expand_randomize_position.x="0"
expand_randomize_position.y="0"
gravity.x="0"
gravity.y="0"
is_emitting="1"
lifetime="1.5"
randomize_alpha.max="0"
randomize_alpha.min="0"
randomize_angular_velocity.max="0"
randomize_angular_velocity.min="0"
randomize_animation_speed_coeff.max="0"
randomize_animation_speed_coeff.min="0"
randomize_lifetime.max="0"
randomize_lifetime.min="0"
randomize_position.max_x="2"
randomize_position.max_y="2"
randomize_position.min_x="-2"
randomize_position.min_y="-2"
randomize_position_inside_hitbox="0"
randomize_rotation.max="0"
randomize_rotation.min="0"
randomize_scale.max_x="0"
randomize_scale.max_y="0"
randomize_scale.min_x="0"
randomize_scale.min_y="0"
randomize_velocity.max_x="30"
randomize_velocity.max_y="30"
randomize_velocity.min_x="-30"
randomize_velocity.min_y="-30"
render_back="0"
rotation="0"
scale.x="1"
scale.y="0"
scale_velocity.x="-0.3"
scale_velocity.y="3"
sprite_centered="0"
sprite_file="data/particles/ray.xml"
sprite_random_rotation="0"
use_rotation_from_entity="0"
use_rotation_from_velocity_component="0"
use_velocity_as_rotation="1"
velocity.x="0"
velocity.y="0"
velocity_always_away_from_center="1"
velocity_slowdown="0"
z_index="0" >
</SpriteParticleEmitterComponent>
<UIInfoComponent
_enabled="0"
_tags="enabled_in_world"
name="$item_evil_eye" >
</UIInfoComponent>
<VelocityComponent
_enabled="0"
_tags="enabled_in_world"
affect_physics_bodies="0"
air_friction="0.55"
apply_terminal_velocity="1"
displace_liquid="1"
gravity_x="0"
gravity_y="400"
limit_to_max_velocity="1"
liquid_death_threshold="0"
liquid_drag="1"
mVelocity.x="0"
mVelocity.y="0"
mass="0.05"
terminal_velocity="1000"
updates_velocity="1" >
</VelocityComponent>
</Entity>Editor is loading...