<?xml version="1.0"?>
<HK47_Hero_Files>

	<HeroUnit Name="HK47">
		<LOD_Bias>5</LOD_Bias>
		<Is_Named_Hero>Yes</Is_Named_Hero>
		<Text_ID>TEXT_HERO_HK47</Text_ID>
		<Encyclopedia_Text> TEXT_TOOLTIP_HK47 </Encyclopedia_Text>
		<Encyclopedia_Unit_Class> TEXT_ENCYCLOPEDIA_CLASS_BOUNTY_HUNTER </Encyclopedia_Unit_Class>
		<Land_Model_Name>HK47.ALO</Land_Model_Name>
		<Icon_Name>I_BUTTON_HK47.TGA</Icon_Name>
		<Scale_Factor>1.8</Scale_Factor>

		<GalacticBehavior> SELECTABLE  </GalacticBehavior>
		<LandBehavior> SELECTABLE, SURFACE_FX, WALK_LOCOMOTOR, IDLE, TARGETING, WEAPON, REVEAL, HIDE_WHEN_FOGGED, DAMAGE_TRACKING, UNIT_AI, GARRISON_UNIT, ABILITY_COUNTDOWN,ION_STUN_EFFECT, STUNNABLE </LandBehavior>

		<Uses_Multiple_Locomotors> Yes </Uses_Multiple_Locomotors>
		<Hover_Offset>16.0</Hover_Offset>
		<Primary_Locomotor_Name>WALK_LOCOMOTOR</Primary_Locomotor_Name>

		<Garrison_Category> Infantry </Garrison_Category>
		<SurfaceFX_Name>Generic_Footprint, Infantry_Terrain_Modifier</SurfaceFX_Name>
		<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>
		<Loop_Idle_Anim_00>No</Loop_Idle_Anim_00>
		<Collidable_By_Projectile_Living>Yes</Collidable_By_Projectile_Living>
		<CanCellStack>yes</CanCellStack>
                                <Stealth_Capable>Yes</Stealth_Capable>
		<Mass>1.0</Mass>
		<GUI_Bracket_Width>5</GUI_Bracket_Width>
		<GUI_Bracket_Height>0</GUI_Bracket_Height>
		<GUI_Bracket_Size>0</GUI_Bracket_Size>

		<Mouse_Collide_Override_Sphere_Radius> 10.0 </Mouse_Collide_Override_Sphere_Radius>
		<Movement_Animation_Speed> 0.8 </Movement_Animation_Speed>
		<Max_Speed> 1 </Max_Speed>
		<Alternate_Max_Speed> 2.5 </Alternate_Max_Speed>
		<Max_Rate_Of_Turn> 20.0 </Max_Rate_Of_Turn>
		<Alternate_Max_Rate_Of_Turn> 6.0 </Alternate_Max_Rate_Of_Turn>
		<Custom_Soft_Footprint_Radius> 6.5 </Custom_Soft_Footprint_Radius>
		<Custom_Hard_XExtent> 5.0 </Custom_Hard_XExtent>
		<Custom_Hard_YExtent> 5.0 </Custom_Hard_YExtent>
		<Space_Layer> Land </Space_Layer>
		<UnitCollisionClass> Infantry </UnitCollisionClass>
		<FormationSpacing> .5 </FormationSpacing>
		<MinimumPushReturnDistance> 10 </MinimumPushReturnDistance>
		<Min_Speed> .1 </Min_Speed>
		<OverrideAcceleration> .1 </OverrideAcceleration>
		<OverrideDeceleration> .1 </OverrideDeceleration>
		<Max_Lift> .6 </Max_Lift>
		
		<Type>Walk</Type>
		<Deploys>No</Deploys>
		<Affiliation>Underworld</Affiliation>
		<Size_Value>10</Size_Value>
		<Sensor_Range>20</Sensor_Range>
		<Shield_Points>0</Shield_Points>
		<Tactical_Health>500</Tactical_Health>
		
		<Always_Spawn_In_Orbit>NO</Always_Spawn_In_Orbit>
		
		<Autoresolve_Health>350</Autoresolve_Health>
		<Damage>60</Damage>
		<Stealth_Capable>No</Stealth_Capable>
		<Victory_Relevant>yes</Victory_Relevant>
		<Armor_Type> Armor_Hero </Armor_Type>

		<Projectile_Types>Proj_Hand_Pulse_Cannon</Projectile_Types>
		<Projectile_Fire_Recharge_Seconds>2.0</Projectile_Fire_Recharge_Seconds>
		<Projectile_Fire_Pulse_Count>2</Projectile_Fire_Pulse_Count>
		<Projectile_Fire_Pulse_Delay_Seconds>0.2</Projectile_Fire_Pulse_Delay_Seconds>

		<Land_FOW_Reveal_Range>250.0</Land_FOW_Reveal_Range>
		<Dense_FOW_Reveal_Range_Multiplier>1.0</Dense_FOW_Reveal_Range_Multiplier>
		<Targeting_Max_Attack_Distance>200.0</Targeting_Max_Attack_Distance>
		<Ranged_Target_Z_Adjust>7.0</Ranged_Target_Z_Adjust>

		<Targeting_Fire_Inaccuracy> Infantry, 10.0 </Targeting_Fire_Inaccuracy>
		<Targeting_Fire_Inaccuracy> Vehicle, 10.0 </Targeting_Fire_Inaccuracy>
		<Targeting_Fire_Inaccuracy> Air, 70.0 </Targeting_Fire_Inaccuracy>
		<Targeting_Fire_Inaccuracy> Structure, 10.0 </Targeting_Fire_Inaccuracy>
		
		<SFXEvent_Select>Unit_Select_IG88</SFXEvent_Select>
		<SFXEvent_Move>Unit_Move_IG88</SFXEvent_Move>
		<SFXEvent_Fleet_Move>Unit_Fleet_Move_IG88</SFXEvent_Fleet_Move>
		<SFXEvent_Attack>Unit_Attack_IG88</SFXEvent_Attack>
		<SFXEvent_Guard>Unit_Guard_IG88</SFXEvent_Guard>
		<SFXEvent_Fire>Unit_Storm_Trooper_Fire</SFXEvent_Fire>
		<SFXEvent_Group_Move>Unit_Group_Move_IG88</SFXEvent_Group_Move>
		<SFXEvent_Group_Attack>Unit_Group_Attack_IG88</SFXEvent_Group_Attack>
		<SFXEvent_Health_Low_Warning> Unit_Health_Low_IG88 </SFXEvent_Health_Low_Warning>
		<SFXEvent_Health_Critical_Warning> Unit_Health_Critical_IG88 </SFXEvent_Health_Critical_Warning>
		<Death_SFXEvent_Start_Die> Unit_Defeat_IG88 </Death_SFXEvent_Start_Die>

		<CategoryMask> LandHero </CategoryMask>
		<Ranking_In_Category> 3 </Ranking_In_Category>
		<MovementClass>Infantry</MovementClass>
		<OccupationStyle>1x1</OccupationStyle>
		<Blob_Shadow_Below_Detail_Level>3</Blob_Shadow_Below_Detail_Level>
		<Blob_Shadow_Scale>5.0, 5.0</Blob_Shadow_Scale>
		<Blob_Shadow_Material_Name>Generic_Shadow</Blob_Shadow_Material_Name>
		<Blob_Shadow_Bone_Name>B_Chest</Blob_Shadow_Bone_Name>
		<Ground_Infantry_Turret_Target> Yes </Ground_Infantry_Turret_Target>
		<Attach_To_Flagship_During_Space_Battle>Yes</Attach_To_Flagship_During_Space_Battle>
		<Stay_In_Transport_During_Ground_Battle>No</Stay_In_Transport_During_Ground_Battle>
		<Lua_Script>ObjectScript_IG88</Lua_Script>
		
		<Select_Box_Scale>27</Select_Box_Scale>
		<Select_Box_Z_Adjust>3.0f</Select_Box_Z_Adjust>
		<Selection_Blob_Material_Name>Selection_Empire_Hero</Selection_Blob_Material_Name>
        <Highlight_Blob_Material_Name>Highlight_Underworld_Hero</Highlight_Blob_Material_Name>

		<Has_Land_Evaluator>True</Has_Land_Evaluator>
		<AI_Combat_Power>500</AI_Combat_Power>
		<Idle_Chase_Range>100.0</Idle_Chase_Range>
		<Guard_Chase_Range>200.0</Guard_Chase_Range>
		<Attack_Move_Response_Range>300.0</Attack_Move_Response_Range>
		<Targeting_Stickiness_Time_Threshold>5.0</Targeting_Stickiness_Time_Threshold>
		<Targeting_Priority_Set>AntiInfantry</Targeting_Priority_Set>
		<Autonomous_Move_Extension_Vs_Attacker>200.0</Autonomous_Move_Extension_Vs_Attacker>
		
		<Neutralization_Cost>1500.0</Neutralization_Cost>
		<Can_Be_Neutralized_By_Major_Heroes>Yes</Can_Be_Neutralized_By_Major_Heroes>
		<Can_Be_Neutralized_By_Minor_Heroes>No</Can_Be_Neutralized_By_Minor_Heroes>

		<Occlusion_Silhouette_Enabled>1</Occlusion_Silhouette_Enabled>
		<Score_Cost_Credits> 10000 </Score_Cost_Credits>
		<Target_Stealth_Units>Yes</Target_Stealth_Units>
		<Play_SFXEvent_On_Sighting>True</Play_SFXEvent_On_Sighting>
		<Destroy_When_Used_As_Corruption_Prereq> No </Destroy_When_Used_As_Corruption_Prereq>
		<Death_Fade_Time>0.25</Death_Fade_Time>
		<Death_Persistence_Duration>0.0</Death_Persistence_Duration>

		<!-- Non-Hero unit abilities description -->
		<Unit_Abilities_Data SubObjectList="Yes">

            <Unit_Ability>
                <Type>STEALTH</Type>
                <GUI_Activated_Ability_Name>Stealth</GUI_Activated_Ability_Name> 
                <Recharge_Seconds>60.0</Recharge_Seconds>
				<Expiration_Seconds>30.0</Expiration_Seconds>
				<SFXEvent_GUI_Unit_Ability_Activated> Unit_Stealth_On_Noghri </SFXEvent_GUI_Unit_Ability_Activated>  <!--(by pressing the activate button)-->
				<SFXEvent_GUI_Unit_Ability_Deactivated> Unit_Stealth_Off_Noghri </SFXEvent_GUI_Unit_Ability_Deactivated>  <!--(by pressing deactivate)-->
            </Unit_Ability>

		</Unit_Abilities_Data>

		<Abilities SubObjectList="Yes">

					
			<Redirect_Blaster_Ability Name="HK47_Redirect_Blaster">
				<Initially_Enabled> Yes </Initially_Enabled>		
				<Activation_Style>Take_Damage</Activation_Style>
				<!-- Redirection chance is rolled first. If failed, we roll block chance. If failed, we take the damage. -->
				<Redirect_Chance>0.0</Redirect_Chance>
				<Block_Chance>0.20</Block_Chance>
				<Reaction_Arc_In_Degrees>360.0</Reaction_Arc_In_Degrees>
				<Max_Projectile_Redirection_Angle_In_Degrees> 10.0 </Max_Projectile_Redirection_Angle_In_Degrees>
				<Turn_To_Face_Unblockable_Shots>No</Turn_To_Face_Unblockable_Shots>
				<!-- We can block/redirect shots from the following units types: -->
				<Applicable_Unit_Categories>Infantry | LandHero | Vehicle | Air | Structure</Applicable_Unit_Categories>
				<Applicable_Unit_Types />
				<SFXEvent_Activate>Unit_Lightsaber_Projectile_Block</SFXEvent_Activate>
			</Redirect_Blaster_Ability>
			
			<Galactic_Stealth_Ability Name="HK47_Galactic_Stealth">
				<Evade_Detection_Chance>0.0</Evade_Detection_Chance>
			</Galactic_Stealth_Ability>

                                               <Stealth_Ability Name="Stealth">
				<Activation_Style> User_Input </Activation_Style>
                <Stealth_Color>255, 255, 255, 64</Stealth_Color>
                <Stealth_Transition_Time>.5</Stealth_Transition_Time>
				<SFXEvent_Activate>Unit_Lightsaber_Projectile_Block</SFXEvent_Activate>
			</Stealth_Ability>

			<System_Spy_Ability Name="HK47_System_Spy">
				<Initially_Enabled>Yes</Initially_Enabled>
				<Activation_Style>Galactic_Automatic</Activation_Style>
				<Causes_Despawn>No</Causes_Despawn>
				<Duration_In_Secs>-1.0</Duration_In_Secs>
				<See_Base_Levels>Yes</See_Base_Levels>
				<See_Credit_Income>Yes</See_Credit_Income>
				<See_Credit_Income_Breakdown>Yes</See_Credit_Income_Breakdown>
				<See_Num_Fleets>Yes</See_Num_Fleets>
				<See_Most_Powerful_Ship>No</See_Most_Powerful_Ship>
				<See_Fleet_Contents>No</See_Fleet_Contents>
				<See_Num_Ground_Companies>Yes</See_Num_Ground_Companies>
				<See_Ground_Company_Contents>Yes</See_Ground_Company_Contents>
				<See_Special_Structures>Yes</See_Special_Structures>
				<See_Political_Control>Yes</See_Political_Control>
				<See_Political_Control_Breakdown>No</See_Political_Control_Breakdown>
				<See_Current_Production>Yes</See_Current_Production>
				<See_Minor_Stealth_Heroes>Yes</See_Minor_Stealth_Heroes>
				<See_Major_Stealth_Heroes>Yes</See_Major_Stealth_Heroes>
			</System_Spy_Ability>

			<Neutralize_Hero_Ability Name="HK47_Neutralize_Hero">
				<Cost_Mod_By_Base_Level>0.0,0.0, 5.0,1.0</Cost_Mod_By_Base_Level>
				<Cost_Mod_By_Previous_Neutralizations>0.0,0.0, 1000.0,750.0</Cost_Mod_By_Previous_Neutralizations>
				<Cost_Mod_By_Planetary_Corruption_Level>0.0,0.0, 1.0,0.25</Cost_Mod_By_Planetary_Corruption_Level>
				<General_Minor_Hero_Cost_Mod>1.0</General_Minor_Hero_Cost_Mod>
				<General_Major_Hero_Cost_Mod>1.0</General_Major_Hero_Cost_Mod>
				<Owner_Respawn_Time_In_Secs>120.0, 150.0</Owner_Respawn_Time_In_Secs>
				<Target_Respawn_Time_In_Secs>240.0, 300.0</Target_Respawn_Time_In_Secs>
				<Can_Neutralize_Minor_Heroes>Yes</Can_Neutralize_Minor_Heroes>
				<Can_Neutralize_Major_Heroes>Yes</Can_Neutralize_Major_Heroes>
			</Neutralize_Hero_Ability>

		</Abilities>
		
	</HeroUnit>



	<HeroCompany Name="HK47_Team">
		<LOD_Bias>5</LOD_Bias>
		<Text_ID>TEXT_HERO_HK47</Text_ID>
		<Encyclopedia_Text> TEXT_TOOLTIP_HK47 </Encyclopedia_Text>
		<Encyclopedia_Unit_Class> TEXT_ENCYCLOPEDIA_CLASS_BOUNTY_HUNTER </Encyclopedia_Unit_Class>
		<Icon_Name>I_BUTTON_HK47.TGA</Icon_Name>
		
		<Is_Dummy>Yes</Is_Dummy>
		<Damage>80</Damage>
		<Affiliation>Underworld</Affiliation>
		<Build_Time_Seconds>0</Build_Time_Seconds>
		<Combat_Power_Value>0</Combat_Power_Value>
		<Tech_Level>3</Tech_Level>
		<Required_Ground_Base_Level>0</Required_Ground_Base_Level>
		<Required_Star_Base_Level>0</Required_Star_Base_Level>
		<Required_Special_Structures />
		<Required_Planets>TELOS_IV</Required_Planets>
		<Behavior>DUMMY_GROUND_COMPANY</Behavior>
		
		<Always_Spawn_In_Orbit>NO</Always_Spawn_In_Orbit>
		<Company_Transport_Unit>Underworld_Hero_Shuttle</Company_Transport_Unit>

		<Company_Units>HK47</Company_Units>
		<Is_Named_Hero>Yes</Is_Named_Hero>
		<Is_Stealth_Company>Yes</Is_Stealth_Company>
		<Available_In_Skirmish>yes</Available_In_Skirmish>
		<Can_Be_Only_One>true</Can_Be_Only_One>

		<Score_Cost_Credits> 10000 </Score_Cost_Credits>
		<CategoryMask> LandHero </CategoryMask>
		<Ranking_In_Category> 3 </Ranking_In_Category>
		<Population_Value>1</Population_Value>

		<SFXEvent_Build_Started>UHD_Request_Assistance</SFXEvent_Build_Started>
		<SFXEvent_Build_Cancelled>UHD_Request_Canceled</SFXEvent_Build_Cancelled>
		<SFXEvent_Build_Complete>Unit_Select_IG88</SFXEvent_Build_Complete>
		<SFXEvent_Hero_Respawned>Unit_Select_IG88</SFXEvent_Hero_Respawned>
		<SFXEvent_Fleet_Move>Unit_Fleet_Move_IG88</SFXEvent_Fleet_Move>
		
		<Unit_Abilities_Data SubObjectList="Yes"> </Unit_Abilities_Data>
		
                                <Tactical_Build_Cost_Multiplayer>2000</Tactical_Build_Cost_Multiplayer>
		<Tactical_Build_Time_Seconds>16</Tactical_Build_Time_Seconds>
		<Tactical_Build_Prerequisites>UC_Level_Two_Tech_Upgrade</Tactical_Build_Prerequisites>
		<Tactical_Production_Queue>Tactical_Units</Tactical_Production_Queue>
		<Build_Limit_Current_Per_Player>1</Build_Limit_Current_Per_Player>
		<Build_Limit_Lifetime_For_All_Allies>-1</Build_Limit_Lifetime_For_All_Allies>

	</HeroCompany>


</HK47_Hero_Files>