[wpn_ak74]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
$spawn              	= "weapons\ak-74"
$npc					= on				
$prefetch 				= 8
scheduled				= off
cform               	= skeleton
class               	= WP_AK74
min_radius          	= 0
max_radius          	= 200
description				= enc_weapons1_wpn-ak74
	
ef_main_weapon_type		= 2
ef_weapon_type			= 6

;-----------------------------------------------------------------------------------
holder_range_modifier	= 1.0
holder_fov_modifier		= 0.7
;-----------------------------------------------------------------------------------

cost				= 2000
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 
grenade_class		= ammo_vog-25, ammo_vog-25p
launch_speed		= 0

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

inv_name	        	= AK-74								; name in inventory	
inv_name_short			= AK-74
inv_weight			= 3.3								; weight in inventory

inv_grid_width			= 5	 ; position and size of the icon that will be used to display weapon in the inventory menu
inv_grid_height			= 2	 ; all icons are on the texture ui_icon_equipment.dds,   
inv_grid_x				= 5  ; position and size are in terms of 64x64 squares
inv_grid_y				= 5

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

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

cam_relax_speed         	= 5 ;3.5; 0.15		;скорость возврата в исходное положение
cam_dispersion          	= 0.15		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc			= 0.3		;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac			= 0.9		;ствол будет подыматься на 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.0001	;увеличение износа при каждом выстреле
;-----------------------------------------------------------------------------------

fire_point             		=  0,0.219,0.66
fire_point2            		=  0,0.170,0.550

flame_particles				= weapons\generic_weapon05
smoke_particles				= weapons\generic_shoot_00
grenade_flame_particles		= weapons\generic_weapon01
	
shell_point		 		    = 0,0.230,0.154
shell_particles	 			= weapons\545x39

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

hit_power                	= 0.55
hit_impulse		 		    = 30
hit_type 					= fire_wound
hit_rate	                = 1.5

fire_distance            	= 150
bullet_speed				= 900
rpm                      	= 600

use_aim_bullet				= true
time_to_aim				    = 1.0

hud                      	= wpn_ak74_hud

position         	        = -0.026,-0.166,-0.015
orientation      	        = 0,0,0

;-----------------------------------------------------------------------------------
;Стволом вниз
;strap_position         		= -0.37,-0.09,0.10
;strap_orientation      		= -05,-5,110

;Стволом вверх
strap_position         		= 0.02,-0.24,0.40
strap_orientation      		= -01,-183, -109
strap_bone0			        = bip01_spine2
strap_bone1			        = bip01_spine1
;-----------------------------------------------------------------------------------

visual                  	= weapons\ak74\wpn_ak74.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

scope_status				= 2
silencer_status				= 2
grenade_launcher_status		= 2

zoom_enabled				= true
scope_zoom_factor	    	= 70

scope_name 					= wpn_addon_scope
scope_x 					= 72
scope_y 					= -3

silencer_name  			    = wpn_addon_silencer
silencer_x 				    = 274
silencer_y 				    = 9

grenade_launcher_name 		= wpn_addon_grenade_launcher
grenade_launcher_x 			= 163
grenade_launcher_y 			= 23

;-----------------------------------------------------------------------------------
snd_draw					= weapons\generic_draw
snd_holster					= weapons\generic_holster
snd_shoot					= weapons\ak_74x\ak74_shoot
snd_empty					= weapons\ak_74x\rifle_empty, 0.7
snd_reload					= weapons\ak_74x\ak74_reload
snd_silncer_shot			= weapons\silencer\ak74_sil_nlc

snd_shoot_grenade			= weapons\gp25\gp25_grenshoot_vanila
snd_reload_grenade			= weapons\gp25\gp25_grenload_nlc
snd_switch					= weapons\gp25\gp25_switch, 1.0, 0.5
;-----------------------------------------------------------------------------------

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
silencer_flame_particles	= weapons\generic_shoot_00

;-----------------------------------------------------------------------------
;-------------------------- HUD DESCRIPTION ----------------------------------
;-----------------------------------------------------------------------------
 
[wpn_ak74_hud]
shell_point					    = 0.020000,0.020000,-0.370000
shell_dir			     	    = 0.0, 1.0, 0.0

fire_point					    = 0.000000,-0.020000,0.170000
fire_point2              	    = 0.000000,-0.020000,0.170000
fire_bone               	    = wpn_body

position			            = 0.030000,-0.050000,-0.110000
orientation			            = 1.999828,1.981898,0.000000

visual                  	    = weapons\ak74\wpn_ak74_hud.ogf

grenade_bone            	    = wpn_grenade

anim_idle						= normal_idle
anim_idle_aim					= normal_idle_aim
anim_reload						= normal_reload
anim_draw						= normal_draw
anim_holster					= normal_holster
anim_shoot						= normal_shoot
anim_idle_sprint				= normal_idle_sprint ;_v2
anim_idle_moving				= normal_idle_moving
	
anim_idle_g						= g_idle
anim_idle_g_aim					= g_idle_aim
anim_reload_g					= g_reload
anim_shoot_g					= g_shoot
anim_switch_grenade_on			= w_gl_switch_on
anim_switch_grenade_off			= w_gl_switch_off
anim_draw_g						= g_draw
anim_holster_g					= g_holster
anim_idle_sprint_g				= w_gl_idle_sprint
anim_idle_g_moving				= g_idle_moving

anim_idle_gl					= w_gl_idle
anim_idle_gl_aim				= w_gl_idle_aim
anim_reload_gl					= w_gl_reload
anim_draw_gl					= w_gl_draw
anim_holster_gl					= w_gl_holster
anim_shoot_gl					= w_gl_shoot
anim_idle_sprint_gl				= w_gl_idle_sprint
anim_idle_gl_moving				= w_gl_idle_moving

zoom_offset			            = -0.129450,0.039120,-0.085000
zoom_rotate_x		            = 0.016100
zoom_rotate_y		            = 0.035700

grenade_normal_zoom_offset		= -0.129450,0.039120,-0.085000
grenade_normal_zoom_rotate_x	= 0.016100
grenade_normal_zoom_rotate_y	= 0.035700

grenade_zoom_offset			    = -0.065020,-0.351511,-0.300000
grenade_zoom_rotate_x		    = -0.403901
grenade_zoom_rotate_y		    = 0.015900

zoom_hide_crosshair			    = true
zoom_rotate_time			    = 0.2
rotate_time			            = 0.2
