;------------------------------------------------------------------------------------------------
[wpn_mk14]:identity_immunities,weapon_probability,default_weapon_params,wpn_m14_sounds
GroupControlSection                      = spawn_group
$npc                                     = on
$prefetch                                = 8
$spawn                                   = "weapons\mk14"
scheduled                                = off
cform                                    = skeleton
parent_section                           = wpn_mk14

class                                    = WP_AK74
slot                                     = 2
animation_slot                           = 2
ef_main_weapon_type                      = 2
ef_weapon_type                           = 8
hand_dependence                          = 1
single_handed                            = 0

icons_texture							= ui\ui_icon_m14
inv_grid_height                         = 2
inv_grid_width                          = 6
inv_grid_x                              = 0
inv_grid_y                              = 2
inv_name                                 = st_wpn_mk14
inv_name_short                           = st_wpn_mk14
description                              = st_wpn_mk14_descr_new

kind                                     = w_rifle
inv_weight                               = 5.10
cost                                     = 40000
repair_type                              = rifle_7
weapon_class                             = assault_rifle

hud                                      = wpn_mk14_hud
visual                                   = dynamics\weapons\wpn_m14\wpn_mk14.ogf
position                                 = -0.026, -0.130, 0
orientation                              = 0, 0, 0
fire_point                               = 0, 0.199, 0.575
fire_point2                              = 0, 0.199, 0.575
strap_bone0                              = bip01_spine2
strap_bone1                              = bip01_spine1
strap_position                           = -0.15, -0.37, 0.2
strap_orientation                        = -10, -5, 10
ph_mass                                  = 3

flame_particles                          = weapons\generic_weapon05
smoke_particles                          = weapons\generic_shoot_00
grenade_flame_particles                  = weapons\generic_weapon01

shell_point             		         = 0.12, 0, 0.07
shell_dir               		         = 0, 0, 0.4
shell_particles         		         = weapons\762x51

light_disabled                           = false
light_color                              = 0.6, 0.5, 0.3
light_range                              = 5
light_time                               = 0.2
light_var_color                          = 0.05
light_var_range                          = 0.1

upgrades                                 = up_gr_firstab_lr300_alt, up_gr_seconab_lr300_alt, up_gr_thirdab_lr300_alt, up_gr_fourtab_lr300_alt, up_gr_fifthab_lr300_alt
installed_upgrades                       =
upgrade_scheme                           = upgrade_scheme_lr300
upgr_icon_x                              = 300
upgr_icon_y                              = 1350
upgr_icon_width                          = 300
upgr_icon_height                         = 100

fire_modes                               = 1, -1
ammo_class                               = ammo_7.62x51_fmj, ammo_7.62x51_fmj_bad, ammo_7.62x51_fmj_verybad, ammo_7.62x51_ap, ammo_7.62x51_ap_bad, ammo_7.62x51_ap_verybad
ammo_current                             = 180
ammo_elapsed                             = 20
ammo_limit                               = 210
ammo_mag_size                            = 20
startup_ammo                             = 90

scopes                                   = ac10632, acog, eot, c-more
scope_status                             = 0
scope_name                               = wpn_addon_scope_susat
scope_x                                  = 67
scope_y                                  = -8
scope_zoom_factor                        = 0

silencer_name                            = wpn_sil_nato
silencer_status                          = 2
silencer_x                               = 262
silencer_y                               = 9
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                 = amik\weapons\smoke_particles\silencer_smoke_particles_00

grenade_class                            = ammo_m209, ammo_m209_bad, ammo_m209_verybad
grenade_launcher_name                    = wpn_addon_grenade_launcher_m203
grenade_launcher_status                  = 0
grenade_launcher_x                       = 111
grenade_launcher_y                       = 34
grenade_vel                              = 76
launch_speed                             = 76

hit_impulse                              = 37
hit_power                                = 0.76, 0.76, 0.76, 0.76
hit_type                                 = fire_wound
fire_distance                            = 1000
bullet_speed                             = 845
rpm                                      = 725
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  2.0
zoom_dof                                 = 0.5, 1, 180
zoom_enabled                             = true
zoom_rotate_time                         = 0.2
reload_dof                               = 0, 0.5, 5, 2
control_inertion_factor = 1.0f
crosshair_inertion                       = 6.0
fire_dispersion_base                     = 0.21
fire_dispersion_condition_factor         = 0.001

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.6
misfire_start_prob                       = 0.006
misfire_end_condition                    = 0.1
misfire_end_prob                         = 0.072

condition_queue_shot_dec                 = 0.0009
condition_shot_dec                       = 0.0009

cam_return                               = 0
cam_relax_speed                          = 5
cam_dispersion                           = 1.5
cam_dispersion_frac                      = 0.7
cam_dispersion_inc                       = 0.0775
cam_max_angle                            = 60.0
cam_max_angle_horz                       = 10.0
cam_step_angle_horz                      = 3.0
zoom_cam_relax_speed                     = 5
zoom_cam_dispersion                      = 1.2
zoom_cam_dispersion_frac                 = 1.0
zoom_cam_dispersion_inc                  = 0.0675
zoom_cam_max_angle                       = 50.0
zoom_cam_max_angle_horz                  = 10.0
zoom_cam_step_angle_horz                 = 2

PDM_disp_accel_factor                    = 2.0
PDM_disp_base                            = 0.5
PDM_disp_crouch                          = 1.0
PDM_disp_crouch_no_acc                   = 1.0
PDM_disp_vel_factor                      = 2.0

cam_relax_speed_ai                       = 360
zoom_cam_relax_speed_ai                  = 360
holder_fov_modifier                      = 1.00
holder_range_modifier                    = 1.00
min_radius                               = 30
max_radius                               = 50

kill_msg_x                               = 175
kill_msg_y                               = 0
kill_msg_width                           = 82
kill_msg_height                          = 28

snd_bore								= weapons\librarian_m14\bored
snd_draw								= weapons\librarian_m14\draw
snd_reload_misfire						= $no_sound
snd_reload								= $no_sound
snd_reload_empty						= $no_sound
snd_switch_mode							= weapons\librarian_m14\switch

scripted_snd_reload								= weapons\librarian_m14\reload
scripted_snd_reload_variant1					= weapons\librarian_m14\reload1
scripted_snd_reload_empty						= weapons\librarian_m14\reload_empty
scripted_snd_reload_empty_variant1				= weapons\librarian_m14\reload_empty1
scripted_snd_reload_empty_variant2				= weapons\librarian_m14\reload_empty2
scripted_snd_reload_empty_variant3				= weapons\librarian_m14\reload_empty3

scripted_snd_reload_misfire						= weapons\librarian_m14\unjam
scripted_snd_reload_misfire_empty				= weapons\librarian_m14\unjam_empty


[wpn_mk14_hud]:hud_base
item_visual                             = anomaly_weapons\wpn_m14\wpn_mk14_hud.ogf
attach_place_idx                        = 0
zoom_hide_crosshair                     = true   

item_position                           = 0, 0, 0
item_orientation                        = 0, 0, 0

hands_orientation                		= 0.0158, 0.011204, -0.0024
hands_orientation_16x9           		= 0.0158, 0.011204, -0.0024
hands_position                   		= -0.000699, -0.000425, -0.001351
hands_position_16x9              		= -0.000699, -0.000425, -0.001351

aim_hud_offset_pos               		= -0.091143, 0.028869, -0.100535
aim_hud_offset_pos_16x9          		= -0.091143, 0.028869, -0.100535
aim_hud_offset_rot                      = 0, 0, 0
aim_hud_offset_rot_16x9                 = 0, 0, 0

lowered_hud_offset_pos           		= 0.148346, -0.008763, 0.005404
lowered_hud_offset_pos_16x9      		= 0.148346, -0.008763, 0.005404
lowered_hud_offset_rot           		= 0.101708, -0.799735, 0.101422
lowered_hud_offset_rot_16x9      		= 0.101708, -0.799735, 0.101422


gl_hud_offset_pos                       = 0, 0, 0
gl_hud_offset_pos_16x9                  = 0, 0, 0
gl_hud_offset_rot                       = 0, 0, 0
gl_hud_offset_rot_16x9                  = 0, 0, 0

lean_hud_offset_pos                     = 0, 0, 0
lean_hud_offset_rot                     = 0, 0, 0

anm_bore								= emk14_hand_bored, emk14_idle
anm_hide								= emk14_hand_holster, emk14_idle
anm_idle								= emk14_hand_idle, emk14_idle
anm_idle_aim							= emk14_hand_idle_aim, emk14_idle
anm_idle_aim_moving						= emk14_hand_moving, emk14_idle, 0.75
anm_idle_aim_moving_crouch				= emk14_hand_moving, emk14_idle, 0.7
anm_idle_moving 						= emk14_hand_moving, emk14_idle
anm_idle_sprint							= emk14_hand_sprint, emk14_idle, 1.1
anm_shots								= emk14_hand_shoot, emk14_shoot
anm_shots_aim							= emk14_hand_shoot_aim, emk14_shoot
anm_reload                              = emk14_reload
anm_reload_variant1                     = emk14_reload1
anm_reload_empty                        = emk14_reload_empty
anm_reload_empty_variant1               = emk14_reload_empty1
anm_reload_empty_variant2               = emk14_reload_empty2
anm_reload_empty_variant3               = emk14_reload_empty3
anm_show								= emk14_hand_draw, emk14_idle
anm_switch_mode							= emk14_hand_switch, emk14_idle
;==============================COK========================================
anm_bore_empty							= emk14_hand_bored, emk14_idle_empty
anm_hide_empty							= emk14_hand_holster, emk14_idle_empty
anm_idle_empty							= emk14_hand_idle, emk14_idle_empty
anm_idle_moving_empty					= emk14_hand_moving, emk14_idle_empty
anm_idle_moving_crouch_empty			= emk14_hand_moving, emk14_idle_empty, 0.75
anm_idle_aim_empty						= emk14_hand_idle_aim, emk14_idle_empty
anm_idle_aim_moving_empty				= emk14_hand_moving, emk14_idle_empty, 0.75
anm_idle_aim_moving_crouch_empty		= emk14_hand_moving, emk14_idle_empty, 0.75
anm_idle_sprint_empty					= emk14_hand_sprint, emk14_idle_empty, 1.1
anm_shot_l								= emk14_hand_shoot, emk14_shoot_last
anm_shots_aim_l							= emk14_hand_shoot_aim, emk14_shoot_last
anm_show_empty							= emk14_hand_draw, emk14_idle_empty
anm_switch_mode_empty					= emk14_hand_switch, emk14_idle_empty
;==============================TAE========================================
anm_bore_jammed							= emk14_hand_jam_inspect, emk14_idle_jam
anm_hide_jammed							= emk14_hand_holster, emk14_idle_jam
anm_idle_jammed							= emk14_hand_idle, emk14_idle_jam
anm_idle_aim_jammed						= emk14_hand_idle_aim, emk14_idle_jam
anm_idle_aim_moving_jammed				= emk14_hand_moving, emk14_idle_jam, 0.75
anm_idle_aim_moving_crouch_jammed		= emk14_hand_moving, emk14_idle_jam, 0.75
anm_idle_moving_jammed					= emk14_hand_moving, emk14_idle_jam, 0.75
anm_idle_moving_crouch_jammed			= emk14_hand_moving, emk14_idle_jam, 0.75
anm_idle_sprint_jammed					= emk14_hand_sprint, emk14_idle_jam, 1.1
anm_reload_misfire						= emk14_hand_unjam, emk14_unjam
anm_show_jammed							= emk14_hand_draw, emk14_idle_jam
anm_switch_mode_jammed					= emk14_hand_switch, emk14_idle_jam
;==============================TOD========================================
anm_idle_empty_jammed					= emk14_hand_idle, emk14_idle_jam
anm_show_empty_jammed					= emk14_hand_draw, emk14_idle_jam
anm_hide_empty_jammed					= emk14_hand_holster, emk14_idle_jam
anm_idle_aim_empty_jammed				= emk14_hand_idle_aim, emk14_idle_jam
anm_idle_sprint_empty_jammed			= emk14_hand_sprint, emk14_idle_jam, 1.2
anm_idle_moving_empty_jammed			= emk14_hand_moving, emk14_idle_jam
anm_idle_moving_crouch_empty_jammed		= emk14_hand_moving, emk14_idle_jam, 0.7
anm_bore_empty_jammed					= emk14_hand_bored, emk14_idle_jam
anm_reload_misfire_empty				= emk14_hand_unjam, emk14_unjam_empty
anm_shot_l_jammed						= emk14_hand_shoot, emk14_shoot_last
anm_shots_jammed						= emk14_hand_shoot, emk14_shoot





shell_bone                               = wpn_body
shell_dir                                = 0, 1, 0
shell_point                              = 0.025, 0.055, 0.221

fire_bone                                = wpn_body
fire_point                               = 0, 0.070908, 0.872161

freelook_z_offset_mul					 = 0.4

;------------------------------------------------------------------------------------------------
[wpn_mk14_ac10632]:wpn_mk14
$spawn                                   = "weapons\mk14_ac10632"

inv_weight                               = 5.21

1icon_layer                              = ac10632
1icon_layer_x                            = 116
1icon_layer_y                            = -9

hud                                      = wpn_mk14_ac10632_hud
visual                                   = dynamics\weapons\wpn_m14\wpn_mk14_barska.ogf


[wpn_mk14_ac10632_hud]:wpn_mk14_hud
item_visual                             = anomaly_weapons\wpn_m14\wpn_mk14_barska_hud.ogf

aim_hud_offset_pos               		= -0.090608, 0.009595, -0.122659
aim_hud_offset_pos_16x9          		= -0.090608, 0.009595, -0.122659

anm_bore								= emk14_hand_bored_scope, emk14_idle
anm_bore_empty							= emk14_hand_bored_scope, emk14_idle_empty
anm_bore_jammed							= emk14_hand_jam_inspect, emk14_idle_jam

;------------------------------------------------------------------------------------------------
[wpn_mk14_acog]:wpn_mk14
$spawn                                   = "weapons\mk14_acog"

inv_weight                               = 5.45

1icon_layer                              = acog
1icon_layer_x                            = 116
1icon_layer_y                            = -9

hud                                      = wpn_mk14_acog_hud
visual                                   = dynamics\weapons\wpn_m14\wpn_mk14_acog.ogf


scope_status                                       = 1
scope_texture                                      = wpn_crosshair_acog
scope_zoom_factor                                  = 25
zoom_rotate_time		                           = 0.25
scope_dynamic_zoom		                           = off

zoom_rotate_time                         = 0.25


[wpn_mk14_acog_hud]:wpn_mk14_ac10632_hud,hud_low_interia
item_visual                              = anomaly_weapons\wpn_m14\wpn_mk14_acog_hud.ogf

aim_hud_offset_pos               = -0.090874, 0.009595, -0.132691
aim_hud_offset_pos_16x9          = -0.090874, 0.009595, -0.132691

anm_bore								= emk14_hand_bored_scope, emk14_idle
anm_bore_empty							= emk14_hand_bored_scope, emk14_idle_empty
anm_bore_jammed							= emk14_hand_jam_inspect, emk14_idle_jam

;------------------------------------------------------------------------------------------------
[wpn_mk14_c-more]:wpn_mk14
$spawn                                   = "weapons\mk14_c-more"

inv_weight                               = 5.4

1icon_layer                              = c-more
1icon_layer_x                            = 125
1icon_layer_y                            = -5

hud                                      = wpn_mk14_c-more_hud
visual                                   = dynamics\weapons\wpn_m14\wpn_mk14_c-more.ogf

[wpn_mk14_c-more_hud]:wpn_mk14_hud
item_visual                              = anomaly_weapons\wpn_m14\wpn_mk14_c-more_hud.ogf

aim_hud_offset_pos               = -0.091308, 0.007393, -0.122659
aim_hud_offset_pos_16x9          = -0.091308, 0.007393, -0.122659

anm_bore								= emk14_hand_bored_scope, emk14_idle
anm_bore_empty							= emk14_hand_bored_scope, emk14_idle_empty
anm_bore_jammed							= emk14_hand_jam_inspect, emk14_idle_jam

;------------------------------------------------------------------------------------------------
[wpn_mk14_eot]:wpn_mk14
$spawn                                   = "weapons\mk14_eot"

inv_weight                               = 5.4

1icon_layer                              = eot
1icon_layer_x                            = 125
1icon_layer_y                            = -5

hud                                      = wpn_mk14_eot_hud
visual                                   = dynamics\weapons\wpn_m14\wpn_mk14_eot.ogf


[wpn_mk14_eot_hud]:wpn_mk14_hud
item_visual                              = anomaly_weapons\wpn_m14\wpn_mk14_eot_hud.ogf

aim_hud_offset_pos               = -0.090873, 0.001267, -0.122659
aim_hud_offset_pos_16x9          = -0.090873, 0.001267, -0.122659

anm_bore								= emk14_hand_bored_scope, emk14_idle
anm_bore_empty							= emk14_hand_bored_scope, emk14_idle_empty
anm_bore_jammed							= emk14_hand_jam_inspect, emk14_idle_jam

;-------------------------------------------M14-----------------------------------------------------
[wpn_m14]:wpn_mk14
$spawn									= "weapons\m14"
parent_section							= wpn_m14

silencer_x                               = 268
silencer_y                               = 9

icons_texture							= ui\ui_icon_m14
inv_grid_height                         = 2
inv_grid_width                          = 6
inv_grid_x                              = 0
inv_grid_y                              = 0
inv_name                    			= st_wpn_m14
inv_name_short              			= st_wpn_m14
description                 			= st_wpn_m14_descr

scopes                                   = 
scope_status                             = 0

inv_weight                              = 5.10
cost                                    = 40000

hud                         			= wpn_m14_hud
visual                      			= dynamics\weapons\wpn_m14\wpn_m14.ogf

installed_upgrades                      = up_firsta_lr300_alt

[wpn_m14_hud]:wpn_mk14_hud
item_visual								= anomaly_weapons\wpn_m14\wpn_m14_hud
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

aim_hud_offset_pos               		= -0.091143, 0.028869, -0.100535
aim_hud_offset_pos_16x9          		= -0.091143, 0.028869, -0.100535
aim_hud_offset_rot                      = 0, 0, 0
aim_hud_offset_rot_16x9                 = 0, 0, 0

anm_bore								= em14_hand_bored, em14_idle
anm_hide								= em14_hand_holster, em14_idle
anm_idle								= em14_hand_idle, em14_idle
anm_idle_aim							= em14_hand_idle_aim, em14_idle
anm_idle_aim_moving						= em14_hand_moving, em14_idle, 0.75
anm_idle_aim_moving_crouch				= em14_hand_moving, em14_idle, 0.7
anm_idle_moving 						= em14_hand_moving, em14_idle
anm_idle_sprint							= em14_hand_sprint, em14_idle, 1.1
anm_shots								= em14_hand_shoot, em14_shoot
anm_shots_aim							= em14_hand_shoot_aim, em14_shoot
anm_reload                              = em14_reload
anm_reload_variant1                     = em14_reload1
anm_reload_empty                        = em14_reload_empty
anm_reload_empty_variant1               = em14_reload_empty1
anm_reload_empty_variant2               = em14_reload_empty2
anm_reload_empty_variant3               = em14_reload_empty3
anm_show								= em14_hand_draw, em14_idle
anm_switch_mode							= em14_hand_switch, em14_idle
;==============================COK========================================
anm_bore_empty							= em14_hand_bored, em14_idle_empty
anm_hide_empty							= em14_hand_holster, em14_idle_empty
anm_idle_empty							= em14_hand_idle, em14_idle_empty
anm_idle_moving_empty					= em14_hand_moving, em14_idle_empty
anm_idle_moving_crouch_empty			= em14_hand_moving, em14_idle_empty, 0.75
anm_idle_aim_empty						= em14_hand_idle_aim, em14_idle_empty
anm_idle_aim_moving_empty				= em14_hand_moving, em14_idle_empty, 0.75
anm_idle_aim_moving_crouch_empty		= em14_hand_moving, em14_idle_empty, 0.75
anm_idle_sprint_empty					= em14_hand_sprint, em14_idle_empty, 1.1
anm_shot_l								= em14_hand_shoot, em14_shoot_last
anm_shots_aim_l							= em14_hand_shoot_aim, em14_shoot_last
anm_show_empty							= em14_hand_draw, em14_idle_empty
anm_switch_mode_empty					= em14_hand_switch, em14_idle_empty
;==============================TAE========================================
anm_bore_jammed							= em14_hand_jam_inspect, em14_idle_jam
anm_hide_jammed							= em14_hand_holster, em14_idle_jam
anm_idle_jammed							= em14_hand_idle, em14_idle_jam
anm_idle_aim_jammed						= em14_hand_idle_aim, em14_idle_jam
anm_idle_aim_moving_jammed				= em14_hand_moving, em14_idle_jam, 0.75
anm_idle_aim_moving_crouch_jammed		= em14_hand_moving, em14_idle_jam, 0.75
anm_idle_moving_jammed					= em14_hand_moving, em14_idle_jam, 0.75
anm_idle_moving_crouch_jammed			= em14_hand_moving, em14_idle_jam, 0.75
anm_idle_sprint_jammed					= em14_hand_sprint, em14_idle_jam, 1.1
anm_reload_misfire						= em14_hand_unjam, em14_unjam
anm_reload_misfire_empty				= em14_hand_unjam, em14_unjam_empty
anm_show_jammed							= em14_hand_draw, em14_idle_jam
anm_switch_mode_jammed					= em14_hand_switch, em14_idle_jam
;==============================TOD========================================
anm_idle_empty_jammed					= em14_hand_idle, em14_idle_jam
anm_show_empty_jammed					= em14_hand_draw, em14_idle_jam
anm_hide_empty_jammed					= em14_hand_holster, em14_idle_jam
anm_idle_aim_empty_jammed				= em14_hand_idle_aim, em14_idle_jam
anm_idle_sprint_empty_jammed			= em14_hand_sprint, em14_idle_jam, 1.2
anm_idle_moving_empty_jammed			= em14_hand_moving, em14_idle_jam
anm_idle_moving_crouch_empty_jammed		= em14_hand_moving, em14_idle_jam, 0.7
anm_bore_empty_jammed					= em14_hand_bored, em14_idle_jam
anm_reload_misfire_empty				= em14_hand_unjam, em14_unjam_empty
anm_shot_l_jammed						= em14_hand_shoot, em14_shoot_last
anm_shots_jammed						= em14_hand_shoot, em14_shoot
