;------------------------------------------------------------------------------------------------
[wpn_usp_tac]:identity_immunities,weapon_probability,default_weapon_params
        GroupControlSection         = spawn_group
        discovery_dependency        =
        $npc                        = on
        $prefetch                   = 8
        $spawn                      = "weapons\usp"
        scheduled                   = off
        cform                       = skeleton

parent_section                      = wpn_usp_tac

scopes 				                = d0cter, aim_low, rmr, deltapoint
        
        class                       = WP_PM
        slot                        = 1
        animation_slot              = 1
        ef_main_weapon_type         = 5
        ef_weapon_type              = 5
        hand_dependence             = 1
        single_handed               = 1
        
        default_to_ruck             = false
        sprint_allowed              = true
icons_texture                                       = ui\ui_icon_bas        
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 62
inv_grid_y         = 1

        inv_name                    = st_wpn_usp_tac
        inv_name_short              = st_wpn_usp_tac
        description                 = st_wpn_usp_tac_descr
        
        kind                        = w_pistol
        inv_weight        		    = 0.96
        cost                        = 54600
        repair_type                 = pistol
        
        hud                         = wpn_usp_tac_hud
        visual                      = dynamics\weapons\wpn_usp_tac\wpn_usp_tac_world.ogf
        position                    = -0.021, -0.085, 0.0
        orientation                 = 0, 0, 0
        fire_point                  = 0.0, 0.133, 0.161
        fire_point2                 = 0.0, 0.133, 0.161
        ph_mass                     = 1
        
        flame_particles             = weapons\generic_weapon03
        ;smoke_particles             = weapons\generic_shoot_00
        grenade_flame_particles     = weapons\generic_weapon01
        smoke_particles		   	    = ghost_particles\weapons\flame_eft_sks          ;particles remade incomp. 
		
		shell_point		 			= 0.0, 0.133, 0.047
		shell_dir		 			= 0.0, 0.0, 0.4
		shell_particles	 			= weapons\9x19

        light_disabled              = false
        light_color                 = 0.6, 0.5, 0.3
        light_range                 = 3.0
        light_time                  = 0.2
        light_var_color             = 0.05
        light_var_range             = 0.5
        
        upgrades                    = up_gr_firstab_fn57, up_gr_seconab_fn57, up_gr_thirdab_fn57, up_gr_fourtab_fn57, up_gr_fifthab_fn57
        installed_upgrades          =
        upgrade_scheme              = upgrade_scheme_walther
		
        upgr_icon_x                 = 1150
        upgr_icon_y                 = 1000
        upgr_icon_width             = 150
        upgr_icon_height            = 100
        
        fire_modes                  = 1
        ammo_class                  = ammo_9x19_fmj, ammo_9x19_fmj_bad, ammo_9x19_fmj_verybad, ammo_9x19_pbp, ammo_9x19_pbp_bad, ammo_9x19_pbp_verybad, ammo_9x19_ap, ammo_9x19_ap_bad, ammo_9x19_ap_verybad
        ammo_elapsed                = 22
        ammo_mag_size               = 22
        startup_ammo                = 90
        
        scope_status                = 0

        scope_zoom_factor           = 0
		
		silencer_name               = wpn_sil_black_box
        silencer_x                  = 59
        silencer_y                  = -18
        

        silencer_status             = 2
        silencer_light_color        = 0.6, 0.5, 0.3
        silencer_light_range        = 0.01
        silencer_light_time         = 0.2
        silencer_light_var_color    = 0.05
        silencer_light_var_range    = 0.5
        silencer_smoke_particles    = weapons\generic_shoot_00
        
        grenade_class               = ammo_vog-25, ammo_vog-25_bad, ammo_vog-25_verybad
        grenade_launcher_name       = wpn_addon_grenade_launcher
        grenade_launcher_status     = 0
        grenade_launcher_x          = 126
        grenade_launcher_y          = 24
        launch_speed                = 0
        
        hit_impulse                 = 40
        hit_power                   = 0.55, 0.55, 0.55, 0.55
        hit_type                    = fire_wound
        fire_distance               = 300
        bullet_speed                = 260
        rpm                         = 640
        rpm_empty_click             = 250
        
        use_aim_bullet              = false
        time_to_aim                 = 0.0 ;  1.0
        zoom_dof                    = -1000, 1.0, 1000
        zoom_enabled                = true
        zoom_rotate_time            = 0.25
        reload_dof                  = 0.0, 0.5, 5, 1.7
control_inertion_factor = 1.0f
        crosshair_inertion          = 3.8
        fire_dispersion_base        = 0.40
        fire_dispersion_condition_factor = 0.001
        
        misfire_probability         = 0.005
        misfire_start_condition     = 0.7 ;  0.86
        misfire_start_prob          = 0.007
        misfire_end_condition       = 0.1
        misfire_end_prob            = 0.08
        
        condition_queue_shot_dec    = 0.0015
        condition_shot_dec          = 0.0015
        
        cam_return                  = 0
        cam_relax_speed             = 8
        cam_dispersion              = 0.56
        cam_dispersion_frac         = 1.1
        cam_dispersion_inc          = 0.04
        cam_max_angle               = 50.0
        cam_max_angle_horz          = 50.0
        cam_step_angle_horz         = 0.42
		zoom_cam_dispersion         = 2.0
        
        PDM_disp_accel_factor       = 1.055
        PDM_disp_base               = 0.65
        PDM_disp_crouch             = 1.0
        PDM_disp_crouch_no_acc      = 1.0
        PDM_disp_vel_factor         = 1.05
        
        cam_relax_speed_ai          = 360
        holder_fov_modifier         = 1.0
        holder_range_modifier       = 1.0
        min_radius                  = 0
        max_radius                  = 500
        hit_probability_gd_novice   = 1.00
        hit_probability_gd_stalker  = 1.00
        hit_probability_gd_veteran  = 1.00
        hit_probability_gd_master   = 1.00
        
        kill_msg_x                  = 134
        kill_msg_y                  = 177
        kill_msg_width              = 31
        kill_msg_height             = 25
		weapon_lower_speed			= 0.2

scope_zoom_factor_alt             = 0

use_alt_aim_hud                   = true		

hud_fov                             = 0.78	

laser_status = true
;-------------------------------------------------------------------Sounds------------------------------------------------------------------------------
snd_draw	 			= weapons\usp_tac\walther_draw
snd_holster	 			= weapons\usp_tac\pistol_holster
snd_shoot       		= weapons\usp_tac\ump45_shoot
snd_shoot1      		= weapons\usp_tac\ump45_shoot1
snd_shoot2      		= weapons\usp_tac\ump45_shoot2
snd_shoot3      		= weapons\usp_tac\ump45_shoot3
snd_shoot4      		= weapons\usp_tac\ump45_shoot4
snd_empty	 			= weapons\usp_tac\walther_empty
snd_reload				= eft_wp\glock17\glock17_reload_speed, 1.5
snd_reload_empty		= eft_wp\glock17\glock17_reload_empty_speed, 1.5
snd_silncer_shot 		= weapons\usp_tac\usp_shot_sil
;---------------------------------------------------------------------HUD-------------------------------------------------------------------------------
[wpn_usp_tac_hud]:hud_base

        item_visual                	= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_hud.ogf
		
        attach_place_idx            = 0
        zoom_hide_crosshair         = true
        
        hands_position              = -0.031, -0.17, 0
        hands_orientation           = -0.5, 1., 1.15
       
		safemode_anm				= 
		safemode_anm2				= 
		
		lowered_hud_offset_pos			= 0,0.1,0
		lowered_hud_offset_rot			= 0.3,-0.1,0.1

		lowered_hud_offset_pos_16x9		= 0,0.05,0
		lowered_hud_offset_rot_16x9		= 0.3,-0.1,0.1
		
        aim_hud_offset_pos          = -0.0987, 0.06, -0.05

        aim_hud_offset_rot          = 0.017, 0.0125, -0.015

;----		
hands_position_16x9				= -0.078900,-0.143100,-0.310000
hands_orientation_16x9			= -0.918997,0.543006,0.150000

aim_hud_offset_pos_16x9				= -0.048300,0.029625,-0.060000
aim_hud_offset_rot_16x9				= 0.010375,0.008600,-0.020750

item_position				= 0.000789,-0.000199,0.000311
item_orientation			= 1.239378,-0.134046,-2.052052
;----

aim_hud_offset_alt_pos_16x9				= -0.061609,-0.064930,-0.058501
aim_hud_offset_alt_rot_16x9				= 0.001400,0.013150,0.758048
        
        gl_hud_offset_pos           = 0, 0, 0
        gl_hud_offset_rot           = 0, 0, 0
        
        lean_hud_offset_pos         = 0, 0, 0
        lean_hud_offset_rot         = 0, 0, 0
        
anm_show						= glock_eft_ins_draw,               idle
anm_show_empty					= glock_eft_ins_draw,               idle_empty
anm_hide             			= glock_eft_ins_hide,               idle
anm_hide_empty             		= glock_eft_ins_hide,               idle_empty
anm_idle             			= glock_eft_ins_idle,               idle
anm_idle_empty             		= glock_eft_ins_idle,               idle_empty
anm_shots						= glock_eft_ins_shoot,              shoot
anm_shot_l						= glock_eft_ins_shoot_last,         shoot_last
anm_idle_aim					= glock_eft_ins_idle_aim,           idle
anm_idle_aim_empty				= glock_eft_ins_idle_aim,           idle_empty
anm_reload						= glock_eft_ins_reload,             reload             ,1.5
anm_reload_empty				= glock_eft_ins_reload_empty,       reload_empty       ,1.4
anm_idle_moving 				= glock_eft_ins_idle_moving,        idle                       ,0.7
anm_idle_moving_empty 			= glock_eft_ins_idle_moving,        idle_empty                 ,0.7
anm_idle_moving_crouch			= glock_eft_ins_idle_crouch,        idle
anm_idle_moving_crouch_empty	= glock_eft_ins_idle_crouch,        idle_empty
anm_idle_sprint					= glock_eft_ins_idle_sprint_v4,     idle
anm_idle_sprint_empty			= glock_eft_ins_idle_sprint_v4,     idle_empty
anm_bore						= glock_eft_ins_idle_aim,           idle
anm_bore_empty					= glock_eft_ins_idle_aim,           idle_empty
        
        shell_bone                  = gilza
        shell_point                 = -0.02, -0.05, 0.03
        
        fire_bone                   = muzzle
        fire_point                  = 0, 0, 0
;-----------------------------------------------------------------Addons--------------------------------------------------------------------------------
[wpn_usp_tac_d0cter]:wpn_usp_tac

inv_weight			= 1.2

hud				= wpn_usp_tac_d0cter_hud

1icon_layer			    = d0cter
1icon_layer_x			= 60
1icon_layer_y			= 8

visual				= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_world.ogf

scope_status			= 0

scope_dynamic_zoom      = off

[wpn_usp_tac_d0cter_hud]:wpn_usp_tac_hud

item_visual                	= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_docter_hud.ogf

aim_hud_offset_pos_16x9				= -0.048100,0.002945,-0.050000
aim_hud_offset_rot_16x9				= 0.002375,0.008250,-0.020750
;-------------------------------------------------------------------------------------------------------------------------------------------------------
[wpn_usp_tac_aim_low]:wpn_usp_tac

inv_weight			= 1.305

hud				= wpn_usp_tac_aim_low_hud

1icon_layer			    = aim_low
1icon_layer_x			= 55
1icon_layer_y			= 8

visual				= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_world.ogf

scope_status			= 0

scope_dynamic_zoom      = off

[wpn_usp_tac_aim_low_hud]:wpn_usp_tac_hud

item_visual                	= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_aim_low_hud.ogf

aim_hud_offset_pos_16x9				= -0.048100,0.004125,-0.050000
aim_hud_offset_rot_16x9				= 0.002625,0.008000,-0.020750
;-------------------------------------------------------------------------------------------------------------------------------------------------------
[wpn_usp_tac_rmr]:wpn_usp_tac

inv_weight			= 0.994

hud				= wpn_usp_tac_rmr_hud

1icon_layer			    = rmr
1icon_layer_x			= 60
1icon_layer_y			= 8

visual				= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_world.ogf

scope_status			= 0

scope_dynamic_zoom      = off

[wpn_usp_tac_rmr_hud]:wpn_usp_tac_hud

item_visual                	= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_rmr_hud.ogf

aim_hud_offset_pos_16x9				= -0.047600,0.001225,-0.050000
aim_hud_offset_rot_16x9				= 0.002025,0.008200,-0.020750
;---------------------------------------------------------------------------------------------------------------------------------------------------
[wpn_usp_tac_deltapoint]:wpn_usp_tac

inv_weight			= 1.001

hud				= wpn_usp_tac_deltapoint_hud

1icon_layer			    = deltapoint
1icon_layer_x			= 60
1icon_layer_y			= 8

visual				= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_world.ogf

scope_status			= 0

scope_dynamic_zoom      = off

[wpn_usp_tac_deltapoint_hud]:wpn_usp_tac_hud

item_visual                	= dynamics\weapons\wpn_usp_tac\wpn_usp_tac_deltapoint_hud.ogf

aim_hud_offset_pos_16x9				= -0.048000,-0.001975,-0.050000
aim_hud_offset_rot_16x9				= 0.001925,0.008300,-0.020750
;---------------------------------------------------------------------------------------------------------------------------------------------------
