;АКС-74 "кобра"
;Модель: АРМА
;Обвес: Ааз
;Анимации: Holden_McClure/KingFriday, правка анимаций Ааз
;Компиляция: Ааз
;Текстуры, звуки стрельбы, рэлоада, глушителя: ПСЕВДО-S.T.A.L.K.E.R.

[wpn_aks74m]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
$spawn              	= "weapons\aks-74m"	
$npc					= on				
$prefetch 			= 8
scheduled				= off               
cform               	= skeleton
class               	= WP_AK74			
min_radius          	= 0				
max_radius          	= 100				
description			= enc_wpn-aks74m
	
ef_main_weapon_type		= 2
ef_weapon_type			= 6

;-----------------------------------------------------------------------------------
holder_range_modifier	= 1.0		       ; во сколько раз увеличивается eye_range 
holder_fov_modifier		= 0.7              ; во сколько раз увеличивается eye_fov
;-----------------------------------------------------------------------------------

cost					= 3200
weapon_class			= assault_rifle
	
ammo_limit			= 210
ammo_elapsed			= 30
	
ammo_mag_size			= 30	
fire_modes			= 1, -1

ammo_class			= ammo_5.45x39_fmj, ammo_5.45x39_ap, ammo_5.45x39_izomorf 
grenade_class			= ammo_vog-25, ammo_vog-25p
launch_speed			= 0

hand_dependence		= 1
single_handed			= 0
	
slot 				= 2
animation_slot			= 2

inv_name	        	     = "AKC-74 "кобра"
inv_name_short			= "AKC-74 "кобра"
inv_weight			= 3.5

inv_grid_width     = 6
inv_grid_height    = 2
inv_grid_x         = 10
inv_grid_y         = 53

kill_msg_x			= 0
kill_msg_y			= 28
kill_msg_width		     = 84
kill_msg_height		= 28

;-----------------------------------------------------------------------------------
;params of weapon recoil
fire_dispersion_base			= 0.19		;угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
control_inertion_factor			= 1.25f

;отдача
cam_relax_speed         		=5;3.5; 0.15		;скорость возврата в исходное положение
cam_dispersion          		= 0.25		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc			= 0.3		;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac			= 0.79		;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle				= 10.0	    	;максимальный угол отдачи
cam_max_angle_horz			= 20.0		;(degree) maximum shot horizontal degree 
cam_step_angle_horz			= 1.1;1		;(degree) size of step camera moved in horizontal position while shooting

fire_dispersion_condition_factor 	= 5	    	;увеличение дисперсии в процентах при максимальном износе 
misfire_probability 		= 0.003	;вероятность осечки при максимальном износе 
misfire_condition_k			= 0.05
condition_shot_dec 			= 0.0002	;увеличение износа при каждом выстреле
;-----------------------------------------------------------------------------------

fire_point             		=  0,0.216,0.638			 
fire_point2            		=  0,0.1650,0.730			

flame_particles				= weapons\generic_weapon05	
smoke_particles				= weapons\generic_shoot_00
grenade_flame_particles		= weapons\generic_shoot_00
	
shell_point		 			= 0,0.216,0.154
shell_particles	 			= weapons\arsenal_shells1  
;shell_particles	              = weapons\generic_shells

PDM_disp_base 				= 4.7
PDM_disp_vel_factor 		= 1.3
PDM_disp_accel_factor 		= 1.3
PDM_crouch	 			= 1.0
PDM_crouch_no_acc 			= 1.0

; ttc
hit_power                	= 0.53
hit_impulse		 		= 4
hit_type 					= fire_wound
hit_rate	                   = 1.85
fire_distance            	= 180
bullet_speed				= 756
rpm                      	= 600

use_aim_bullet				= true		;Поддерживается ли первая суппер пуля
time_to_aim				= 1.0	

silencer_hit_power       	= 0.55
silencer_hit_impulse	 	= 1
silencer_fire_distance   	= 150
silencer_bullet_speed	 	= 560

hud                      	= wpn_aks74m_hud

position         	        = -0.026,-0.172,0			
orientation      	        = 0,0,0					

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position         		= -0.16,-0.40,0.15			
strap_orientation      		= -10,-5,10				
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1

visual         		        = weapons\AKS74\wpn_ak74m.ogf

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						

ph_mass						= 3

;addons
scope_status				= 0		 
silencer_status			= 2		 
grenade_launcher_status		= 2		 

zoom_enabled				= true
scope_zoom_factor	    	     = 50	

scope_name 				= wpn_addon_scope
scope_x 					= 44
scope_y 					= 4
silencer_name  			= wpn_addon_silencer
silencer_x 				= 220
silencer_y 				= 10	
grenade_launcher_name 		= wpn_addon_grenade_launcher
grenade_launcher_x 			= 116
grenade_launcher_y 			= 23

;sounds (name of the sound, volume (0.0 - 1.0), delay (sec))
;------------------------------------------------------------------------
snd_draw					= weapons\aks_74m\draw, 0.5
snd_holster					= weapons\aks_74m\holster, 0.4
snd_shoot					= weapons\aks_74m\shot
snd_empty					= weapons\aks_74m\empty, 0.6
snd_reload					= weapons\aks_74m\reload
snd_shoot_grenade				= weapons\aks_74m\grenshoot
snd_reload_grenade			= weapons\aks_74m\grenload
snd_switch					= weapons\aks_74m\switch
snd_silncer_shot			= weapons\aks_74m\silenser_shoot, 0.4
;------------------------------------------------------------------------
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
silencer_smoke_particles 	= weapons\generic_shoot_00
;------------------------------------------------------------------------
;-- HUD DESCRIPTION
;------------------------------------------------------------------------
 
[wpn_aks74m_hud]
allow_inertion				= true

shell_point					=  0.0, 0.10, -0.13
shell_dir			     	= 0.0, 1.0, 0.0

fire_point               	= 0.0,0.11,0.07
fire_point2              	= 0.019,0.11,-0.43 ;  0.019,0.07,0.07
fire_bone               	= wpn_body

orientation             	= 1, 2, 0		
position                	= 0.09, -0.04, -0.01
visual         		        = weapons\AKS74\wpn_ak74m_hud.ogf

grenade_bone            	= wpn_grenade

; animation names

anim_idle					= idle
anim_idle_aim				= idle_aim
anim_reload				= reload
anim_draw					= draw
anim_holster				= holster
anim_shoot				= shoot

; attached grenade launcher [NORMAL fire mode]
anim_idle_gl				= idle_w_gl
anim_idle_gl_aim			= idle_w_gl_aim
anim_reload_gl				= reload_w_gl
anim_draw_gl				= draw_w_gl
anim_holster_gl			= holster_w_gl
anim_shoot_gl				= shoot_w_gl
anim_idle_sprint			= idle_sprint


anim_idle_g				= idle_w_gl
anim_idle_g_aim			= idle_w_gl_aim
anim_reload_g				= reload_grenade
anim_shoot_g				= shoot_w_gl
anim_switch_grenade_on		= grenade_on
anim_switch_grenade_off		= grenade_off
anim_draw_g				= draw_w_gl
anim_holster_g				= holster_w_gl
			
; attached grenade launcher [GRENADE fire mode]
anim_idle_g					= idle_grenade
anim_idle_g_aim				= idle_grenade  ;idle_g_aim 
anim_reload_g				= reload_grenade
anim_shoot_g				= idle_grenade  ;shoot_grenade   
anim_switch_grenade_on		= grenade_on
anim_switch_grenade_off		= grenade_off
anim_draw_g					= draw_grenade
anim_holster_g				= holster_grenade
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

zoom_offset		= -0.090,0.014050,-0.115000
zoom_rotate_x		= 0.0206
zoom_rotate_y		= 0.0187

zoom_hide_crosshair	= true

grenade_normal_zoom_offset		= -0.090,0.014050,-0.115000
grenade_normal_zoom_rotate_x		= 0.0206
grenade_normal_zoom_rotate_y		= 0.0187


grenade_zoom_offset			= -0.066500,-0.27310,0.00    ; -0.039600,-0.13100,0.000000
grenade_zoom_rotate_x		= -0.38700
grenade_zoom_rotate_y		= 0.01700   ; -0.033800



