<mod name="IWI TAR-21" author="Mira" min_lib_ver="3.38" color="Color(0.96, 0.7, 0.9)">
    <AssetUpdates id="24457" version="3.0" provider="modworkshop"/>
    <Localization directory="loc" default="english.txt">
		<loc file="english.txt" language="english"/>
		<loc file="russian.txt" language="russian"/>
    </Localization>
	<GlobalValue id="tar21mod" color="Color(0.96, 0.7, 0.9)"/>
    <WeaponMod id="wpn_fps_ass_tar21_b_std" based_on="wpn_fps_m4_uupg_b_medium_vanilla" type="barrel" wpn_pts="wpn_fps_ass_tar21" hidden="true" ver="2"/>
	
	<WeaponMod id="wpn_fps_ass_tar21_body" based_on="wpn_fps_ass_vhs_body" type="lower_reciever" wpn_pts="wpn_fps_ass_tar21" hidden="true" ver="2">
		<texture_variants>
			<blacktar 	name_id="bm_paint_blacktar" desc_id="bm_paint_blacktardesc" texture_bundle_folder="mods" material_config="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_blacktar"/>
			<tantar 	name_id="bm_paint_tantar" 	desc_id="bm_paint_tantardesc" 	texture_bundle_folder="mods" material_config="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_tantar"/>
			<bluetar 	name_id="bm_paint_bluetar" 	desc_id="bm_paint_bluetardesc" 	texture_bundle_folder="mods" material_config="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_bluetar"/>
		</texture_variants>
		<animations reload="reload" fire="recoil" fire_steelsight="recoil"/>
	</WeaponMod>
	
	<WeaponMod id="wpn_fps_ass_tar21_m_stanag30" based_on="wpn_fps_m4_uupg_m_std_vanilla" type="magazine" wpn_pts="wpn_fps_ass_tar21" hidden="true" ver="2">
		<stats recoil="0"/>
	</WeaponMod>
	
	<WeaponMod id="wpn_fps_ass_tar21_ns_std" based_on="wpn_fps_ass_contraband_ns_standard" type="barrel_ext" wpn_pts="wpn_fps_ass_tar21" hidden="true" ver="2"/>
	
	<WeaponMod id="wpn_fps_ass_tar21_irons_folded" based_on="wpn_fps_ass_vhs_body" type="sight_folded" wpn_pts="wpn_fps_ass_tar21" hidden="true" ver="2"/>
	
	<WeaponMod id="wpn_fps_ass_tar21_o_std" based_on="wpn_fps_m4_uupg_o_flipup" a_obj="a_body" type="sight" wpn_pts="wpn_fps_ass_tar21" hidden="true" ver="2">
		<stance_mod>
			<wpn_fps_ass_tar21 translation="-0.05 0 -1.25"/>
		</stance_mod>
<!--	<adds>
			<value_node value="wpn_fps_ass_tar21_o_base"/>		
		</adds>-->
	</WeaponMod>
<!--Attachments-->
	<!-- Barrels-->
	<WeaponMod id="wpn_fps_ass_tar21_b_ctar" based_on="wpn_fps_m4_uupg_b_medium_vanilla" global_value="tar21mod" type="barrel" wpn_pts="wpn_fps_ass_tar21" ver="2">
		<stats spread="-3" recoil="2" concealment="3"/>
	</WeaponMod>
	
	<WeaponMod id="wpn_fps_ass_tar21_b_star" based_on="wpn_fps_m4_uupg_b_medium_vanilla" global_value="tar21mod" type="barrel" wpn_pts="wpn_fps_ass_tar21" ver="2">
		<stats spread="3" recoil="-2" concealment="-2"/>
	</WeaponMod>
	<!--Conversion Kit-->
	<WeaponMod id="wpn_fps_ass_tar21_a_sniper" based_on="wpn_fps_upg_a_custom_free" global_value="tar21mod" type="ammo" sub_type="ammo_slug" unit="units/payday2/weapons/wpn_upg_dummy/wpn_upg_dummy" ver="2">
		<stats damage="102" recoil="-5" total_ammo_mod="-12"/>
		<custom_stats rof_mult="0.266667" ammo_pickup_min_mul="0.666667" ammo_pickup_max_mul="0.5" armor_piercing_add="1" can_shoot_through_enemy="true" can_shoot_through_shield="true" can_shoot_through_wall="true"/>
		<perks>
			<value_node value="fire_mode_single"/>
		</perks>
		<forbids>
			<value_node value="wpn_fps_upg_i_singlefire"/>
			<value_node value="wpn_fps_upg_i_autofire"/>
		</forbids>
	</WeaponMod>
	<!--Magazines-->
	<WeaponMod id="wpn_fps_ass_tar21_m_ranger" based_on="wpn_fps_m4_uupg_m_std_vanilla" global_value="tar21mod" type="magazine" wpn_pts="wpn_fps_ass_tar21" ver="2">
		<stats concealment="-1" recoil="0" reload="6"/>
		<adds>
			<value_node value="wpn_fps_ass_tar21_m_stanag30"/>		
		</adds>
	</WeaponMod>
	<!--Optics-->
	<WeaponMod id="wpn_fps_ass_tar21_o_mepro" based_on="wpn_fps_upg_o_rx01" global_value="tar21mod" wpn_pts="wpn_fps_ass_tar21" inherit_adds="true" inherit_override="true" inherit_parts_forbids="true" ver="2">
		<adds>
			<value_node value="wpn_fps_ass_tar21_irons_folded"/>		
		</adds>
		<stance_mod>
			<wpn_fps_ass_tar21 rotation="0 -0 0 -1" translation="-0.01 -3 -1.305"/>
		</stance_mod>
	</WeaponMod>
	
	<WeaponMod id="wpn_fps_ass_tar21_o_mars" based_on="wpn_fps_upg_o_eotech" global_value="tar21mod" wpn_pts="wpn_fps_ass_tar21" has_description="true" desc_id="bm_wp_upg_fl_ass_smg_sho_peqbox_desc" ver="2">
		<perks>
			<value_node value="gadget"/>
		</perks>
		<ads_objects>
			<value_node value="g_mars_ads"/>
		</ads_objects>
		<ads_objects_hide>
			<value_node value="g_mars"/>
		</ads_objects_hide>
		<stance_mod>
			<wpn_fps_ass_tar21 rotation="0 -0 0 -1" translation="-0.01 -3 -1.605"/>
		</stance_mod>
		<adds>
			<value_node value="wpn_fps_ass_tar21_irons_folded"/>		
		</adds>
	</WeaponMod>
	<!--unused-->
	<WeaponMod id="wpn_fps_ass_tar21_o_base" based_on="wpn_fps_ass_vhs_body" type="sight_base" unit="units/payday2/weapons/wpn_upg_dummy/wpn_upg_dummy" hidden="true" ver="2"/>

	<WeaponMod id="wpn_fps_ass_tar21_m_stanag20" based_on="wpn_fps_m4_uupg_m_std_vanilla" type="magazine" unit="units/payday2/weapons/wpn_upg_dummy/wpn_upg_dummy"  hidden="true" ver="2"/>
	
	<Weapon unlock_level="21">
		<weapon id="tar21" based_on="vhs" weapon_hold="vhs" CLIP_AMMO_MAX="30" NR_CLIPS_MAX="5" texture_bundle_folder="mods" global_value="tar21mod" tactical_reload="1">
			<stats damage="63" spread="20" spread_moving="16" recoil="14" concealment="22" suppression="9"/>
			<sounds fire="m4_fire_single" fire_single="m4_fire_single" fire_auto="m4_fire" stop_fire="m4_stop" />
			<fire_mode_data fire_rate="0.08"/>
			<animations reload_name_id="vhs"/>
		</weapon>
        <factory id="wpn_fps_ass_tar21" unit="units/mods/weapons/wpn_fps_ass_tar21/wpn_fps_ass_tar21">
			<animations reload="reload" fire="recoil" fire_steelsight="recoil" reload_not_empty="reload_not_empty" magazine_empty="last_recoil"/>
			<optional_types>
				<value_node value="barrel_ext"/>
				<value_node value="gadget"/>
				<value_node value="sight"/>
			</optional_types>
			<adds/>
			<override/>
			<default_blueprint>
				<value_node value="wpn_fps_ass_tar21_b_std"/>
				<value_node value="wpn_fps_ass_tar21_body"/>
				<value_node value="wpn_fps_ass_tar21_ns_std"/>
				<value_node value="wpn_fps_ass_tar21_o_std"/>
				<value_node value="wpn_fps_ass_tar21_m_stanag30"/>
			</default_blueprint>
			<uses_parts>
				<value_node value="wpn_fps_ass_tar21_b_std"/>
				<value_node value="wpn_fps_ass_tar21_body"/>
				<value_node value="wpn_fps_ass_tar21_ns_std"/>
				<value_node value="wpn_fps_ass_tar21_o_std"/>
				<value_node value="wpn_fps_ass_tar21_m_stanag30"/>

				<value_node value="wpn_fps_ass_tar21_b_ctar"/>
				<value_node value="wpn_fps_ass_tar21_b_star"/>
				<value_node value="wpn_fps_ass_tar21_a_sniper"/>
				<value_node value="wpn_fps_ass_tar21_m_ranger"/>
				<value_node value="wpn_fps_ass_tar21_o_mepro"/>
				<value_node value="wpn_fps_ass_tar21_o_mars"/>

			
				<value_node value="wpn_fps_upg_m4_m_straight"/>
				<value_node value="wpn_fps_upg_m4_m_pmag"/>
				<value_node value="wpn_fps_upg_m4_m_quad"/>
				<value_node value="wpn_fps_ass_l85a2_m_emag"/>
				<value_node value="wpn_fps_upg_m4_m_l5"/>
				<value_node value="wpn_fps_m4_upg_m_quick"/>
				
				<value_node value="wpn_fps_upg_o_specter"/>
				<value_node value="wpn_fps_upg_o_aimpoint"/>
				<value_node value="wpn_fps_upg_o_docter"/>
				<value_node value="wpn_fps_upg_o_eotech"/>
				<value_node value="wpn_fps_upg_o_t1micro"/>
				<value_node value="wpn_fps_upg_o_cmore"/>
				<value_node value="wpn_fps_upg_o_aimpoint_2"/>
				<value_node value="wpn_fps_upg_o_acog"/>
				<value_node value="wpn_fps_upg_o_eotech_xps"/>
				<value_node value="wpn_fps_upg_o_reflex"/>
				<value_node value="wpn_fps_upg_o_rx01"/>
				<value_node value="wpn_fps_upg_o_rx30"/>
				<value_node value="wpn_fps_upg_o_cs"/>
				<value_node value="wpn_fps_upg_o_spot"/>
				<value_node value="wpn_fps_upg_o_bmg"/>
				<value_node value="wpn_fps_upg_o_uh"/>
				<value_node value="wpn_fps_upg_o_fc1"/>
				<value_node value="wpn_fps_upg_o_tf90"/>
				<value_node value="wpn_fps_upg_o_poe"/>
				
				<value_node value="wpn_fps_upg_ns_ass_smg_large"/>
				<value_node value="wpn_fps_upg_ns_ass_smg_medium"/>
				<value_node value="wpn_fps_upg_ns_ass_smg_small"/>
				<value_node value="wpn_fps_upg_ns_ass_smg_firepig"/>
				<value_node value="wpn_fps_upg_ns_ass_smg_stubby"/>
				<value_node value="wpn_fps_upg_ns_ass_smg_tank"/>
				<value_node value="wpn_fps_upg_ass_ns_jprifles"/>
				<value_node value="wpn_fps_upg_ass_ns_linear"/>
				<value_node value="wpn_fps_upg_ass_ns_surefire"/>
				<value_node value="wpn_fps_upg_ass_ns_battle"/>
				
				<value_node value="wpn_fps_upg_fl_ass_smg_sho_peqbox"/>
				<value_node value="wpn_fps_upg_fl_ass_smg_sho_surefire"/>
				<value_node value="wpn_fps_upg_fl_ass_peq15"/>
				<value_node value="wpn_fps_upg_fl_ass_laser"/>
				<value_node value="wpn_fps_upg_fl_ass_utg"/>
				
				<value_node value="wpn_fps_upg_i_singlefire"/>
				<value_node value="wpn_fps_upg_i_autofire"/>
				
				<value_node value="wpn_fps_upg_o_45rds"/>
				<value_node value="wpn_fps_upg_o_45rds_v2"/>
				<!--unused-->
				<value_node value="wpn_fps_ass_tar21_m_stanag20"/>
			</uses_parts>
		</factory>
		<stance>
			<steelsight>
				<shoulders rotation="0 -0 0 -1" translation="-9.43 0.784 2.14"/>
			</steelsight>
		</stance>

	</Weapon>
	<AddFiles directory="assets">
		<df_nm path="units/mods/weapons/wpn_fps_ass_tar21_pts/tar21"/>
		<df_nm path="units/mods/weapons/wpn_fps_ass_tar21_pts/eft_stanag"/>
		<df_nm path="units/mods/weapons/wpn_fps_ass_tar21_pts/mepro"/>
		<df_nm path="units/mods/weapons/wpn_fps_ass_tar21_pts/mars"/>
		<df_nm path="units/mods/weapons/wpn_fps_ass_tar21_pts/ranger"/>
		<texture path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/black"/>
		<texture path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/blue"/>
		<texture path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/tan"/>

		<unit_npc path="units/mods/weapons/wpn_fps_ass_tar21/wpn_fps_ass_tar21"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_b_std"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_b_star"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_b_ctar"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_body"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_ns_std"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_o_std"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_irons_folded"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_m_stanag30"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_m_stanag20"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_m_ranger"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_o_mepro"/>
		<unit_mat_thq path="units/mods/weapons/wpn_fps_ass_tar21_pts/wpn_fps_ass_tar21_o_mars"/>
		
		<material_config path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_blacktar"/>
		<material_config path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_blacktar_thq"/>
		<material_config path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_bluetar"/>
		<material_config path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_bluetar_thq"/>
		<material_config path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_tantar"/>
		<material_config path="units/mods/weapons/wpn_fps_ass_tar21_pts/colors/wpn_fps_ass_tar21_body_tantar_thq"/>
		
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/texture_variants/wpn_fps_ass_tar21_body/bluetar"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/texture_variants/wpn_fps_ass_tar21_body/blacktar"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/texture_variants/wpn_fps_ass_tar21_body/tantar"/>
		
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_b_ctar"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_b_star"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_a_sniper"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_m_stanag20"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_m_ranger"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_o_mepro"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/mods/wpn_fps_ass_tar21_o_mars"/>
		<texture path="guis/dlcs/mods/textures/pd2/blackmarket/icons/weapons/tar21"/>
	</AddFiles>
<Hooks directory="hooks">
		<hook file="weaponfactorytweakdata.lua" source_file="lib/tweak_data/weaponfactorytweakdata"/>
	<!--<hook file="weapontweakdata.lua" source_file="lib/tweak_data/weapontweakdata"/>-->
	</Hooks>
</mod>