; Автомат АЕК-971 (6П67)
;-(TrickSR)-----------------------------------------
; калибр					5.45х39
; длина ствола 				420 мм
; магазин					30
; вес без магазина				3.53
; максимальная дальность стрельбы		1000 м
; эффективная дальность стрельбы		200 м
; прицельная дальность			500 м
; дульная скорость пули			880 м/с
; темп стрельбы				900 в/м
;---------------------------------------------------
[wpn_aek971]:weapon_probability,default_weapon_params,wpn_aek971_sounds
GroupControlSection			= spawn_group
$spawn 					= "weapons\aek-971"
$npc 					= on
$prefetch					= 8
scheduled					= off
cform					= skeleton
class					= WP_AK74
description				= st_wpn_aek971_descr

scopes 					= 1p29, 1p78, kobra, pso, ekp
parent_section  				= wpn_aek971

ef_main_weapon_type			= 2
ef_weapon_type				= 6

inv_name 				= st_wpn_aek971
inv_name_short				= st_wpn_aek971

inv_grid_width				= 5
inv_grid_height				= 2
inv_grid_x				= 20
inv_grid_y				= 2

upgr_icon_x				= 0
upgr_icon_y				= 100
upgr_icon_width				= 300
upgr_icon_height 				= 100

kill_msg_x					= 0
kill_msg_y					= 123
kill_msg_width				= 69
kill_msg_height				= 30

cost 					= 9000
weapon_class				= assault_rifle
inv_weight				= 3.53
hud					= wpn_aek971_hud
visual					= dynamics\weapons\wpn_aek971\wpn_aek971.ogf

upgrades                				= up_gr_firstab_abakan, up_gr_seconab_abakan, up_gr_thirdab_abakan, up_gr_fourtab_abakan, up_gr_fifthab_abakan
installed_upgrades      			=
upgrade_scheme          			= upgrade_scheme_abakan

ph_mass					= 3

ammo_class 				= ammo_5.45x39_fmj, ammo_5.45x39_ap

startup_ammo				= 90
ammo_current				= 180
ammo_elapsed				= 30
ammo_limit				= 210
ammo_mag_size 				= 30

fire_modes 				= 1, 3, -1

grenade_class				= ammo_vog-25, ammo_vog-25p

grenade_vel 				= 76
launch_speed				= 73.5
hand_dependence				= 1
single_handed				= 0

hit_power 				= 0.32
;hit_impulse 				= 10
hit_type 					= fire_wound
fire_distance				= 1000
bullet_speed				= 880
rpm					= 900
rpm_empty_click				= 200

use_aim_bullet				= false
time_to_aim				= 1.0

misfire_probability				= 0.005
misfire_start_condition			= 0.6
misfire_end_condition			= 0.1
misfire_start_prob	 			= 0.003
misfire_end_prob		 		= 0.043
condition_shot_dec 				= 0.0001
condition_queue_shot_dec			= 0.0002

zoom_dof					= 0.5, 1.0, 180
reload_dof					= 0.0, 0.5, 5, 2
	
fire_dispersion_base 				= 0.31
fire_dispersion_condition_factor	        		= 2
control_inertion_factor 			= 1.2f
crosshair_inertion				= 6

cam_return				= 0
cam_relax_speed             			= 11
cam_relax_speed_ai      			= 360
cam_dispersion             	 		= 0.3
cam_dispersion_inc         			= 0.26
cam_dispersion_frac        			= 0.9
cam_max_angle				= 30.0
cam_max_angle_horz         			= 30.0
cam_step_angle_horz        			= 6.2

zoom_cam_relax_speed         			= 12
zoom_cam_relax_speed_ai      			= 360
zoom_cam_dispersion         			 = 0.52
zoom_cam_dispersion_inc     	 		= 0.01
zoom_cam_dispersion_frac     			= 0.9
zoom_cam_max_angle           			= 30.0
zoom_cam_max_angle_horz      			= 30.0
zoom_cam_step_angle_horz     			= 2.6

PDM_disp_base 				= 1.2
PDM_disp_vel_factor 			= 1.7
PDM_disp_accel_factor 			= 1.7
PDM_disp_crouch	 			= 1.0
PDM_disp_crouch_no_acc 			= 0.85

min_radius				= 30
max_radius				= 40

holder_range_modifier			= 1.0
holder_fov_modifier				= 1.0

slot					= 2
animation_slot				= 8

position					= -0.026, -0.175, 0.0
orientation					= 0, 0, 0

fire_point					= 0, 0.218, 0.656
fire_point2					= 0, 0.161, 0.583

flame_particles				= amik\weapons\ak_shoot_00
smoke_particles				= amik\weapons\smoke_particles\smoke_particles_01
grenade_flame_particles 			= amik\weapons\grenade_flame_particles\grenade_flame_particles_00

shell_point					= 0, 0.216, 0.174
shell_dir					= 0.0, 0.0, 0.4
shell_particles				  = weapons\545x39

strap_position 				= -0.18, -0.45, 0.2
strap_orientation 				= -10, -5, 10
strap_bone0				= bip01_spine2
strap_bone1				= bip01_spine1

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

scope_status				= 0
silencer_status				= 2
grenade_launcher_status			= 2

zoom_enabled				= true
zoom_rotate_time				= 0.2
scope_zoom_factor				= 63.3

scopes_sect				= scope_aek, scope_x2.7_aek, scope_live_detector_aek, scope_night_aek

grenade_launcher_name			= wpn_addon_grenade_launcher
grenade_launcher_x				= 120
grenade_launcher_y				= 20

silencer_name				= sil_tgp-a
silencer_x                  				= 221
silencer_y                  				= 8

silencer_hit_power 				= 0.34
;silencer_hit_impulse	 			= 10
silencer_fire_distance 			= 650
silencer_bullet_speed	 			= 290

silencer_smoke_particles 			= amik\weapons\smoke_particles\silencer_smoke_particles_00

silencer_light_color				= 0.6, 0.5, 0.3
silencer_light_range				= 0.01
silencer_light_var_color			= 0.05
silencer_light_var_range			= 0.5
silencer_light_time				= 0.2

[wpn_aek971_hud]:hud_base
zoom_hide_crosshair			= true
attach_place_idx				= 0
item_visual				= dynamics\weapons\wpn_aek971\wpn_aek971_hud.ogf

hands_position				= -0.06,-0.18,0.18
hands_orientation				= 0,2,0

hands_position_16x9			= -0.06,-0.18,0.18
hands_orientation_16x9			= 0,2,0

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

aim_hud_offset_pos			= -0.0909,0.054,-0.15
aim_hud_offset_rot	 		= 0.006,-0.0015,0

aim_hud_offset_pos_16x9 			= -0.0909,0.054,-0.15
aim_hud_offset_rot_16x9 			= 0.006,-0.0015,0

gl_hud_offset_pos				= -0.049,0.012,-0.1
gl_hud_offset_rot	 			= -0.0865,-0.0055,0

gl_hud_offset_pos_16x9 			= -0.049,0.012,-0.1
gl_hud_offset_rot_16x9 			= -0.0865,-0.0055,0

shell_point               			 = 0,0,0
shell_dir               				= 0,1,0
shell_bone                			= gilza

fire_point				= 0,0,0
fire_bone                            			= muzzle

fire_point2				= 0,-0.029,0.575
fire_bone2				= wpn_body

anm_show				= aek_draw
anm_hide                			= aek_holster
anm_idle                				= aek_idle
anm_idle_sprint         			= aek_sprint
anm_idle_moving         			= aek_move
anm_shots               			= aek_shoot, shoot
anm_reload              			= aek_reload, reload
anm_idle_aim           			= aek_aim
anm_bore                			= aek_aim
anm_switch              			= aek_aim_w_gl           
anm_switch_g            			= aek_aim_w_gl           
anm_bore                			= aek_aim
anm_hide_w_gl           			= aek_holster_w_gl
anm_show_w_gl          		 	= aek_draw_w_gl
anm_idle_w_gl           			= aek_idle_w_gl
anm_shots_w_gl          			= aek_shoot_w_gl, shoot
anm_reload_w_gl         			= aek_reload_w_gl, reload
anm_idle_w_gl_aim       			= aek_aim_w_gl
anm_idle_sprint_w_gl    			= aek_sprint_w_gl
anm_idle_moving_w_gl    			= aek_move_w_gl
anm_bore_w_gl           			= aek_aim_w_gl
anm_show_g              			= aek_draw_w_gl			
anm_hide_g              			= aek_holster_w_gl			
anm_idle_g              			= aek_idle_w_gl			
anm_reload_g            			= aek_reload_g, reload_g
anm_idle_g_aim          			= aek_aim_w_gl				
anm_shots_g             			= aek_shoot_g, shoot_g
anm_idle_sprint_g      	 		= aek_sprint_w_gl			
anm_idle_moving_g       			= aek_move_w_gl			
anm_bore_g              			= aek_aim_w_gl

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

[scope_aek]
scope_name 				= wpn_addon_scope
scope_x                     			= 34
scope_y                     			= 0

[scope_x2.7_aek]
scope_name 				= wpn_addon_scope_x2.7
scope_x                     			= 34
scope_y                     			= 0

[scope_live_detector_aek]
scope_name 				= wpn_addon_scope_detector
scope_x                     			= 34
scope_y                     			= 0

[scope_night_aek]
scope_name 				= wpn_addon_scope_night
scope_x                     			= 34
scope_y                     			= 0
;-----------------------------------------------------------------------------
; Аддоны
;-----------------------------------------------------------------------------
[wpn_aek971_ekp]:wpn_aek971
$spawn             				= "weapons\wpn_aek971_ekp"
hud					= wpn_aek971_ekp_hud
visual					= dynamics\weapons\wpn_aek971\wpn_aek971_ekp.ogf

inv_grid_x				= 30
inv_weight				= 4.230
scope_zoom_factor			= 58.3	

[wpn_aek971_ekp_hud]:wpn_aek971_hud
item_visual                			= dynamics\weapons\wpn_aek971\wpn_aek971_ekp_hud.ogf

aim_hud_offset_pos			= -0.0909,0.01,-0.2
aim_hud_offset_rot 			= 0.0078,-0.0019,0

aim_hud_offset_pos_16x9 			= -0.0909,0.01,-0.2
aim_hud_offset_rot_16x9 			= 0.0078,-0.0019,0

[wpn_aek971_kobra]:wpn_aek971
$spawn             				= "weapons\wpn_aek971_kobra"
hud					= wpn_aek971_kobra_hud
visual					= dynamics\weapons\wpn_aek971\wpn_aek971_kobra.ogf

inv_grid_x				= 35
inv_weight				= 3.93
scope_zoom_factor			= 58.3	

[wpn_aek971_kobra_hud]:wpn_aek971_hud
item_visual                			= dynamics\weapons\wpn_aek971\wpn_aek971_kobra_hud.ogf

aim_hud_offset_pos			= -0.0909,0.01,-0.2
aim_hud_offset_rot			= -0.0105,-0.001,0

aim_hud_offset_pos_16x9 			= -0.0909,0.01,-0.2
aim_hud_offset_rot_16x9 			= -0.0105,-0.001,0

[wpn_aek971_1p29]:wpn_aek971
$spawn             				= "weapons\wpn_aek971_1p29"
hud					= wpn_aek971_1p29_hud
visual					= dynamics\weapons\wpn_aek971\wpn_aek971_1p29.ogf

inv_grid_x					= 25
inv_weight				= 4.33

scope_status				= 1
scope_texture				= wpn_crosshair_1p29
scope_zoom_factor				= 18	
zoom_rotate_time				= 0.25

[wpn_aek971_1p29_hud]:wpn_aek971_kobra_hud
item_visual                				= dynamics\weapons\wpn_aek971\wpn_aek971_1p29_hud.ogf

[wpn_aek971_pso]:wpn_aek971
$spawn             				= "weapons\wpn_aek971_pso"
hud					= wpn_aek971_pso_hud

inv_grid_x				= 40
inv_weight				= 4.11

scope_status				= 1
scope_texture				= wpn_crosshair
scope_zoom_factor			= 25	
zoom_rotate_time				= 0.25

[wpn_aek971_pso_hud]:wpn_aek971_kobra_hud
item_visual                			= dynamics\weapons\wpn_aek971\wpn_aek971_hud.ogf
