<Entity 
  name="DEBUG_NAME:player"
  tags="mortal,human,hittable,peasant,prey,player_unit,teleportable" >
  
  <HotspotComponent
      _tags="hand"
      sprite_hotspot_name="hand"
  ></HotspotComponent>

  <HotspotComponent
    _tags="shoot_pos"
    offset.x="0"
    offset.y="-2"
  ></HotspotComponent>

  <HotspotComponent
    _tags="kick_pos"
    offset.x="0"
    offset.y="2"
  ></HotspotComponent>
  
  <HotspotComponent
    _tags="crouch_sensor"
    offset.x="0"
    offset.y="-14"
  ></HotspotComponent>

  <PhysicsPickUpComponent 
    original_left_joint_pos.x="-8"
    original_left_joint_pos.y="-2"
    original_right_joint_pos.x="-2"
    original_right_joint_pos.y="-2"
    pick_up_strength="400"
  ></PhysicsPickUpComponent>

  <PlatformShooterPlayerComponent
    center_camera_on_this_entity="1"
    aiming_reticle_distance_from_character="60"
    camera_max_distance_from_character="50"
    move_camera_with_aim="1"
    eating_area_min.x="-6"
    eating_area_max.x="6"
    eating_area_min.y="-4"
    eating_area_max.y="6"
    eating_cells_per_frame="2"
  ></PlatformShooterPlayerComponent>
  
  <PathFindingGridMarkerComponent
    player_marker_radius="100.0"
    marker_offset_y="-3"
    marker_work_flag="8"
  ></PathFindingGridMarkerComponent>

  <PlayerCollisionComponent 
    getting_crushed_threshold="6"
    moving_up_before_getting_crushed_threshold="6"
  ></PlayerCollisionComponent >

  <CharacterDataComponent 
    platforming_type="2"
    check_collision_max_size_x="4" 
    check_collision_max_size_y="4" 
    climb_over_y="4" 
    collision_aabb_min_x="-2.0" 
    collision_aabb_max_x="2.0" 
    collision_aabb_min_y="-4.5" 
    collision_aabb_max_y="2.1"
    eff_hg_offset_y="1.28572" 
    eff_hg_position_x="0" 
    eff_hg_position_y="5" 
    eff_hg_size_x="6.42857" 
    eff_hg_size_y="5.14286" 
    eff_hg_velocity_max_x="19.5787896514" 
    eff_hg_velocity_max_y="-11.5714" 
    eff_hg_velocity_min_x="-19.5714" 
    eff_hg_velocity_min_y="-40" 
    eff_hg_damage_min="10"
    eff_hg_damage_max="95"
    eff_hg_update_box2d="0"
    eff_hg_b2force_multiplier="0.0015"
    effect_hit_ground="1" 
    fly_time_max="3.0"
    fly_recharge_spd="0.4"
    fly_recharge_spd_ground="6"
    flying_needs_recharge="1"
    flying_in_air_wait_frames="38"
    flying_recharge_removal_frames="8"
    gravity="0"
    buoyancy_check_offset_y="-7"
  ></CharacterDataComponent>

  <GenomeDataComponent 
    herd_id="player"
    food_chain_rank="20"
    is_predator="1"
  ></GenomeDataComponent>

  <CharacterPlatformingComponent 
    animation_to_play="" 
    jump_keydown_buffer="2" 
    jump_velocity_y="-95" 
    jump_velocity_x="56"
    fly_model_player="0"
    fly_smooth_y="0"
    fly_speed_max_up="95"
    fly_speed_max_down="85"
    fly_speed_mult="20"
    fly_speed_change_spd="0.25"
    mouse_look="1" 
    keyboard_look="1"
    mouse_look_buffer="1" 
    pixel_gravity="350" 
    run_velocity="154"
    fly_velocity_x="52" 
    accel_x="0.15" 
    turning_buffer="0.5" 
    velocity_min_x="-57" 
    velocity_max_x="57" 
    velocity_min_y="-200"
    velocity_max_y="350"
  ></CharacterPlatformingComponent>

  <ControlsComponent 
    enabled="1" 
    gamepad_fire_on_thumbstick_extend="0"
    gamepad_fire_on_thumbstick_extend_threshold="0.9"
    gamepad_indirect_aiming_enabled="0"
  ></ControlsComponent>
  
  <DamageModelComponent 
    air_in_lungs="7" 
    air_in_lungs_max="7" 
    air_lack_of_damage="0.6" 
    air_needed="1" 
    falling_damage_damage_max="1.2" 
    falling_damage_damage_min="0.1" 
    falling_damage_height_max="250" 
    falling_damage_height_min="70" 
    falling_damages="0" 
    fire_damage_amount="0.2" 
    fire_probability_of_ignition="1" 
    invincibility_frames="60"
    hp="8" 
    is_on_fire="0" 
    materials_damage="1" 
    materials_that_damage="acid,lava,blood_cold_vapour,blood_cold,poison,radioactive_gas,radioactive_gas_static,rock_static_radioactive,rock_static_poison,ice_radioactive_static,ice_radioactive_glass,ice_acid_static,ice_acid_glass,rock_static_cursed,magic_gas_hp_regeneration"  
    materials_how_much_damage="0.005,0.003,0.0006,0.0009,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.005,-0.005" 
    ragdoll_filenames_file="data/ragdolls/player/filenames.txt" 
    ragdoll_offset_y="-5"
    ragdollify_child_entity_sprites="1"
    blood_spray_material="blood"
    physics_objects_damage="0"
    critical_damage_resistance="1"
    ><damage_multipliers
      explosion="0.35" >
    </damage_multipliers>
  </DamageModelComponent>

  <MaterialSuckerComponent
    suck_gold="1"
    suck_health="1"
  ></MaterialSuckerComponent>

  <HitboxComponent 
    aabb_max_x="3" 
    aabb_max_y="4" 
    aabb_min_x="-3" 
    aabb_min_y="-12" 
    is_enemy="0" 
    is_item="0" 
    is_player="1"
  ></HitboxComponent>
  
  <HitboxComponent 
    _tags="crouched"
    _enabled="0" 
    aabb_max_x="3" 
    aabb_max_y="4" 
    aabb_min_x="-3" 
    aabb_min_y="-8.5" 
    is_enemy="0" 
    is_item="0" 
    is_player="1"
  ></HitboxComponent>

  <Inventory2Component
    quick_inventory_slots="10"
    full_inventory_slots_x="16"
    full_inventory_slots_y="1"
  ></Inventory2Component>

  <InventoryGuiComponent />

  <SpriteAnimatorComponent>
  </SpriteAnimatorComponent>

  <SpriteComponent 
    _tags="character" 
    alpha="1" 
    image_file="data/enemies_gfx/player.xml" 
    next_rect_animation="" 
    offset_x="6" 
    offset_y="14" 
    rect_animation="walk" 
    z_index="0.6"
  ></SpriteComponent>

  <HotspotComponent
    _tags="right_arm_root"
    sprite_hotspot_name="right_arm_start"
    transform_with_scale="1"
  ></HotspotComponent>

  <Entity name="arm_r">

    <SpriteComponent 
      _tags="with_item" 
      alpha="1" 
      image_file="data/enemies_gfx/player_arm.xml" 
      next_rect_animation="" 
      rect_animation="default" 
      z_index="0.59"
    ></SpriteComponent>

    <InheritTransformComponent
      parent_hotspot_tag="right_arm_root"
      only_position="1"
    ></InheritTransformComponent>  

    <HotspotComponent
      _tags="hand"
      sprite_hotspot_name="hand"
      transform_with_scale="1"
    ></HotspotComponent>

  </Entity>

  <SpriteComponent 
    _tags="aiming_reticle" 
    alpha="1" 
    image_file="data/ui_gfx/mouse_cursor.png"
    ui_is_parent="0" 
    offset_x="6" 
    offset_y="35" 
    has_special_scale="1"
    special_scale_x="1"
    special_scale_y="1"
    z_index="-10000"
    emissive="1"
  ></SpriteComponent>

  <SpriteStainsComponent>
  </SpriteStainsComponent>

  <StatusEffectDataComponent>
  </StatusEffectDataComponent>

  <AudioComponent
    file="data/audio/Desktop/player.snd"
    event_root="player"
    audio_physics_material="character_player"
    set_latest_event_position="1"
  ></AudioComponent>

  <AudioLoopComponent
    _tags="sound_jetpack"
    file="data/audio/Desktop/player.snd"
    event_name="player/jetpack"
    volume_autofade_speed="0.25"
  ></AudioLoopComponent>

  <AudioLoopComponent
    _tags="sound_underwater"
    file="data/audio/Desktop/player.snd"
    event_name="player/underwater"
    volume_autofade_speed="0.25"
  ></AudioLoopComponent>

  <AudioLoopComponent
    _tags="sound_suffocating"
    file="data/audio/Desktop/player.snd"
    event_name="player/suffocating"
    volume_autofade_speed="0.25"
  ></AudioLoopComponent>

  <AudioLoopComponent
    _tags="sound_pick_gold_sand"
    file="data/audio/Desktop/player.snd"
    event_name="player/pick_gold_sand"
    volume_autofade_speed="0.05"
  ></AudioLoopComponent>

  <AudioListenerComponent
    z="-60"
  ></AudioListenerComponent>
  
  <GunComponent>
  </GunComponent>

  <LiquidDisplacerComponent
    radius="1"
  ></LiquidDisplacerComponent>

  <ItemPickUpperComponent
    drop_items_on_death="0"
    >
  </ItemPickUpperComponent>

	<Base file="data/entities/base_jetpack_nosound.xml">

    <ParticleEmitterComponent
        offset.x="-2"
        offset.y="5"
        lifetime_min="0.0" >
    </ParticleEmitterComponent>
  
  </Base>

  <GameLogComponent
    report_damage="0"
    report_death="1"
  ></GameLogComponent>

  <GameStatsComponent is_player="1" />

  <LightComponent 
    r="255"
    g="255"
    b="255"
    radius="350"
    fade_out_time="5.0"
  ></LightComponent>

  <VelocityComponent
    updates_velocity="0"
  ></VelocityComponent>
  
  <!-- cape -->

  <HotspotComponent
      _tags="cape_root"
      sprite_hotspot_name="cape" >
  </HotspotComponent>

  <Entity name="cape">  
      <Base file="data/entities/verlet_chains/cape/cape.xml">
      </Base>  
  </Entity>

  <!-- ingestion -->

  <MaterialInventoryComponent 
      _tags="ingestion"
      drop_as_item="0"
      on_death_spill="0"
      kill_when_empty="0"
  ></MaterialInventoryComponent>
  
  <IngestionComponent 
    ingestion_capacity="7500"
    overingestion_damage="0.002"
    blood_healing_speed="0.0008"
  ></IngestionComponent>

  <DrugEffectComponent>
  </DrugEffectComponent>

  <!-- --> 

  <WalletComponent>
  </WalletComponent>

  <StreamingKeepAliveComponent>
  </StreamingKeepAliveComponent>
  
  <KickComponent>
  </KickComponent>
  
	<VariableStorageComponent
		name="ocarina"
		value_int="0"
	></VariableStorageComponent>

</Entity>
