;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[wpn_ak103]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
$spawn              	= "weapons\ak_103"	; name and section in level editor
$npc					= on				
$prefetch 				= 8
scheduled				= off               ;[] option for ALife Simulator
cform               	= skeleton
class               	= WP_AK74			; class of the weapon that corresponding to CPP class
min_radius          	= 0				; [] for AI
max_radius          	= 120				; [] for AI
description				= enc_weapons1_wpn_ak74m
	
ef_main_weapon_type		= 2
ef_weapon_type			= 6

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

cost					= 5650
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, ammo_vog-25_teg, ammo_vog-25_hbgteg
launch_speed			= 0

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

inv_name	        	= "AK-74M"
inv_name_short			=  "AK-74M"
inv_weight			= 3.6

inv_grid_width     = 5
inv_grid_height    = 2
inv_grid_x         = 34
inv_grid_y         = 30

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

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

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

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

fire_point             		=  0,0.216,0.68			; position (3rd person view) for particles of fire 
fire_point2            		=  0,0.1650,0.730			; position (3rd person view) for particles of fire (when shooting with secondary fire)

flame_particles				= amik\weapons\ak_shoot_00	;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	 			= amik\weapons\ak_shells_r		;weapons\generic_shells

PDM_disp_base 				= 2.2
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.60, 0.62, 0.64, 0.62
hit_impulse		 			= 78
hit_type 					= fire_wound
fire_distance            	= 350
bullet_speed				= 750
rpm                      	= 700

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

silencer_hit_power       	= 0.58
silencer_hit_impulse	 	= 108
silencer_fire_distance   	= 250
silencer_bullet_speed	 	= 700

hud                      	= wpn_ak74m_hud

position         	        = -0.026,-0.172,0			; position (offset) and orientation of the weapon in the hands of character
orientation      	        = 0,0,0						; (3rd person view)

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position         		= -0.16,-0.40,0.15			; position (offset) and orientation of the weapon when it is strapped
strap_orientation      		= -10,-5,10					; (3rd person view in degrees)
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1

visual         		        = weapons\ak74m_rw\wpn_ak74m.ogf

light_color					= 0.6,0.5,0.3				; params for light during the fire
light_range					= 5							; radius
light_var_color				= 0.05						
light_var_range				= 0.5
light_time 					= 0.2						

ph_mass						= 3

;addons
scope_status				= 2		; 
silencer_status				= 2		; 
grenade_launcher_status		= 2		; 

zoom_enabled				= true
scope_zoom_factor	    	= 85	
scope_texture				= wpn\wpn_crosshair

scope_name 					= wpn_addon_scope
scope_x 					= 44
scope_y 					= 4
silencer_name  				= wpn_addon_silencer
silencer_x 					= 213
silencer_y 					= 13	
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\ak103_shot0
snd_shoot1					= weapons\ak103_shot1
snd_shoot2					= weapons\ak103_shot2
snd_shoot3					= weapons\ak103_shot3
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_ak74m_hud]
allow_inertion				= true

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

fire_point               	= -0.0121,0.12,0.091	;-0.006,0.12,0.091;-0.0111,0.12,0.091_готовая	;0.0,0.09,0.099
fire_point2              	= 0.019,0.07,-0.47 ;  0.019,0.07,0.07
fire_bone               	= wpn_body

orientation             	= 1, 2, 0		
position                	= 0.09, -0.04, -0.01
visual                  	= weapons\ak74m_rw\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_grenade
anim_idle_g_aim				= idle_grenade
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
			
; 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.029050,-0.115000
zoom_rotate_x		= 0.02700
zoom_rotate_y		= 0.01700

zoom_hide_crosshair	= true

grenade_normal_zoom_offset			= -0.090,0.029050,-0.115000
grenade_normal_zoom_rotate_x		= 0.02700
grenade_normal_zoom_rotate_y		= 0.01700


grenade_zoom_offset			= -0.069500,0.03500,0.00    ; -0.039600,-0.13100,0.000000
grenade_zoom_rotate_x		=  0.030
grenade_zoom_rotate_y		= -0.00471   ; -0.033800

====================================================================

