;--- Скорострельный АК-74 Стрелка в модификации ААЗа
[wpn_ak74_m1]:identity_immunities
GroupControlSection          = spawn_group
discovery_dependency         =
$spawn                       = "weapons\wpn_ak74_m1" 
$npc                         = on
$prefetch                    = 8
scheduled                    = off 
cform                        = skeleton
class                        = WP_LR300 ; class of the weapon that corresponding to CPP class
min_radius                   = 0 ; [] for AI
max_radius                   = 100 ; [] for AI
description                  = enc_weapons1_wpn-ak74_m1

ef_main_weapon_type          = 2
ef_weapon_type               = 6

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

cost                         = 12300 ; the price of the item
weapon_class                 = assault_rifle 

ammo_elapsed                 = 30
ammo_mag_size                = 45
fire_modes                   = 1, -1

ammo_class                   = ammo_5.45x39_fmj, ammo_5.45x39_ap, ammo_5.45x39_izomorf

hand_dependence              = 1 ; how many hands (1 or 2) we used to hold weapon in
single_handed                = 0

slot                         = 1 
animation_slot               = 2 


inv_name                     = wpn-ak74_m1
inv_name_short               = wpn-ak74_m1
inv_weight                   = 3 

inv_grid_width               = 5
inv_grid_height              = 2
inv_grid_x                   = 16
inv_grid_y                   = 51

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

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

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

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

fire_point                       = 0,0.22,0.43 ; position (3rd person view) for particles of fire
smoke_particles                  = weapons\generic_shoot_00
shell_point                      = 0.00, 0.262, 0.189 ; position (3rd person view) for shell to throw out
shell_particles                  = weapons\generic_shells ; name of the particles for shells

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

; ttc
hit_power                        = 0.53 
hit_impulse                      = 5 
hit_type                         = fire_wound 
hit_rate                         = 1.85
fire_distance                    = 200
bullet_speed                     = 800 ;starting bullet speed
rpm                              = 850

rpm_empty_click                  = 350
use_aim_bullet                   = false 
time_to_aim                      = 0.7

hud = wpn_ak74_m1_hud 

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

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position           = -0.18,-0.45,0.2 ; 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\ak74_m1\wpn_ak74_m1.ogf ; name of the model for 3rd person view

light_color              = 0.0,0.0,0.0 ; params for light during the fire
light_range              = 0 ; radius
light_var_color          = 0.00
light_var_range          = 0.0
light_time               = 0.0

;addons
scope_status             = 0
silencer_status          = 0
grenade_launcher_status  = 0

zoom_enabled             = true ; (on,off)zoom mode (right mouse button)
scope_zoom_factor        = 50 ; fov for zoom mode


;------------------------------ S.T.A.L.K.E.R`s sound remake ------------------------------
;sounds (name of the sound, volume (0.0 - 1.0), delay (sec))
snd_draw                 = weapons\ak74_m1\akmod_draw
snd_holster              = weapons\ak74_m1\akmod_holster
snd_shoot                = weapons\ak74_m1\akmod_shoot
snd_empty                = weapons\ak74_m1\akmod_empty, 0.7
snd_reload               = weapons\ak74_m1\akmod_reload, 0.6, 1
;-----------------------------------------------------------------------------------------
;-- HUD DESCRIPTION
;-----------------------------------------------------------------------------

[wpn_ak74_m1_hud]

allow_inertion               = true

;similar to corresponding params in weapon section but for 1st person view

shell_point     	   	 	= -0.081 , 0.0107  , -0.0525 
shell_dir			     	= 0.0, 1.0, 0.0
fire_point				= -0, 0.1, 0.2
fire_bone               	= wpn_body
;flame_particles			= weapons\generic_weapon05	; particles for shooting effects

orientation                  = -180,0,0
position                     = 0.130, -0.035, 0.300

visual                       = weapons\ak74_m1\wpn_ak74_m1_hud.ogf

;grenade_bone                = wpn_grenade ; name of the bone in the model for grenade launcher

; animation names

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

;-----------------------------------------------------------------------------
;HUD offset in zoom mode (to all)
;(use CONSOLE: hud_adjust_mode 0,1,2, then keys WSADQE and P to show current value in console)

zoom_offset                 = -0.130, 0.01, 0.254
zoom_rotate_x               = 0
zoom_rotate_y               = 0

;прячем перекрестие прицела в зуме
zoom_hide_crosshair         = true

;время поворота HUD (сек)
zoom_rotate_time            = 0.3
rotate_time                 = 0.3

