<?xml version="1.0" encoding="ISO-8859-1"?>
<units>
	<unit type="weapon" name="hk21e_3rd" slot="12">
		<model file="/weapons/hk21e/hk21e.xml"/>
		<depends_on unit="hk21e_mag"/>
		<script_class name="base" class="BulletWeapon"/>
		<stats block="base_data"/>
		<stats block="weapon_data">
			<var name="ammo_type" value="762"/>
			<var name="length_from_root" value="85"/>
			<var name="clip_max" value="100"/>
			<var name="owner_align" value="primary_align"/>
			<var name="public_name" value="HK21E"/>
			<var name="anim_name" value="hk21e"/>
			<var name="hud_name" value="scar"/>
			
			<!-- Objects / Units -->
			<var name="object_ejector" value="shell"/> <!-- name of the ejector object -->
			<var name="object_muzzle" value="fire"/> <!-- name of the ejector object -->
			<var name="object_clip_align" value="mag_align"/> <!-- name of the ejector object -->
			<var name="unit_clip" value="hk21e_mag"/> <!-- name of the casing unit -->
			<var name="body_drop" value="main_body"/> <!-- name of the body to activate when dropping the gun -->
			
			<!-- Spread -->
			<var name="spread_normal" value="3.0"/> <!-- spread in normal mode + mods affect this -->
			<var name="spread_zoom" value="0.05"/> <!-- spread in zoomed mode + mods affect this -->
			
			<!-- Recoil -->
			<var name="recoil_normal" value="0.7"/> <!-- spread in zoomed mode + mods affect this -->
			<var name="recoil_zoom" value="0.9"/> <!-- spread in zoomed mode + mods affect this -->
			
			<!-- Fire modes -->
			<var name="fire_modes" value="3"/> <!-- 1 = semi, 2 = semi+auto, 3 = semi+auto+burst -->
			<var name="fire_rate_semi" value="0.1"/> <!-- minimum time between bullets in semi mode -->
			<var name="fire_rate_auto" value="0.080"/> <!-- time between bullets on full auto -->
			<var name="fire_rate_burst" value="0.07"/> <!-- time between bullets in burts mode -->
			<var name="fire_burst_count" value="3"/> <!-- the amount of bullets to fire in a row in burst mode -->
			
			<var name="fire_offensive" value="4"/> <!-- what thread in SGunLogics this weapon uses when when in offensive -->
			<var name="fire_defensive" value="2"/> <!-- what thread in SGunLogics this weapon uses when when in defensive -->
			<var name="fire_suppresive" value="4"/> <!-- what thread in SGunLogics this weapon uses when when in suppressed -->
			
			<var name="sniper_rate_of_fire" value="0"/> <!-- setting this to 0 will force the sniper to be in s_gun_burst instead of the s_gun_sniper thread -->
			
			<!-- Effects -->
			<var name="effect_semi_flash" value="g36_muzzle_flash"/> <!-- muzzle effect on semi -->
			<var name="effect_auto_flash" value="g36_muzzle_flash"/> <!-- muzzle effect on auto -->
			<var name="effect_auto_end" value="g36_muzzle_smoke"/> <!-- smoke effect on barrel after auto -->
			<var name="effect_casing" value="556_shell_ejection"/> <!-- name of the casing effect -->
			<var name="effect_hit" value="bullet_hit"/> <!-- name of the hit effect -->
			<var name="effect_hit_physics" value="bullet_hit_rifle"/> <!-- name of the hit physics effect -->
			
			<var name="bolt_lockup_time" value="0.00"/> <!-- bolt anim -->
			<var name="bolt_fire_start_time" value="0.0"/>
			<var name="bolt_fire_end_time" value="0.1"/>
			
			<var name="bolt_eject_start_time" value="0.16"/>
			<var name="bolt_eject_end_time" value="0.4"/>
			<var name="bolt_chamber_start_time" value="0.4"/>
			<var name="bolt_chamber_end_time" value="0.67"/>
			
			<!-- AI -->
			<var name="ai_shoot_delay" value="0.1"/> 				<!-- normal aim time for ai -->		
			<var name="ai_reload_delay" value="4.2"/> 				<!-- relaod time -->
			<var name="ai_angle_req_near" value="30"/>
			<var name="ai_angle_req_far" value="15"/>	
			
			<!-- Moddable stats -->
			<var name="damage" value="3"/> <!-- weapon damage + mods affect this -->
			<var name="weight" value="1"/> <!-- weapon weight + mods affect this -->
			<var name="stability" value="1"/> <!-- weapon stability + mods affect this -->
			
			<var name="fire_sound" value="1.45"/>
			<var name="fire_supressed" value="1.45"/>
			
			<var name="ai_precision" value="1.45"/>
			<var name="ai_fire_until" value="6"/>
			<var name="ai_fire_until_rand" value="10"/>
			
		</stats>
		
		<sounds>
 			<soundbank name="hk21e_sound_3rd"/>
 			<soundbank name="foley_support_sound"/>
			<default_soundsource source="sound"/>
		</sounds>
	</unit>

	<unit type="weapon" name="hk21e_mag" slot="12">
	    <model file="/weapons/hk21e/hk21e_mag.xml"/>
	    	<sounds>
 			<soundbank name="foley_support_sound"/>
			<default_soundsource source="sound"/>
		</sounds>
	</unit>	
</units>