[wpn_groza]:weapon_base
GroupControlSection		= spawn_group
$spawn					= "weapons\groza"
$npc					= on
$prefetch 				= 16

class					= WP_GROZA
min_radius				= 30
max_radius				= 100
description				= enc_weapons1_wpn-groza

ef_main_weapon_type		= 2
ef_weapon_type			= 6

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

cost					= 8500
weapon_class			= assault_rifle

ammo_mag_size			= 20
ammo_class				= class_9x39
fire_modes				= 1, -1
launch_speed			= 0

hand_dependence			= 1
single_handed			= 0

slot					= 2,1		; // secondary
animation_slot			= 8		; type of the animation that will be used

inv_name				= wpn-groza
inv_name_short		 	= wpn-groza
inv_weight		 		= 3.2
inv_volume				= 8

inv_grid_width			= 4
inv_grid_height			= 2
inv_grid_x				= 0
inv_grid_y				= 14

;kill_msg_x			= 67
;kill_msg_y			= 123
;kill_msg_width		= 64
;kill_msg_height		= 30

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

;parent dispersion modifiers
PDM_disp_base			= 1.0
PDM_disp_vel_factor		= 1.1
PDM_disp_accel_factor	= 1.0
PDM_disp_crouch			= 1.0
PDM_disp_crouch_no_acc	= 1.0

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

;увеличение дисперсии в процентах при максимальном износе
fire_dispersion_condition_factor = 4
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.8
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.15
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob			= 0
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.1
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.00025
;увеличение изношености при выстреле очередью
condition_queue_shot_dec	= 0.00025
;-----------------------------------------------------------------------------------

fire_point				= 0.0, 0.197, 0.310
fire_point2				= 0.0, 0.150, 0.255

flame_particles			= weapons\generic_weapon05
smoke_particles			= weapons\generic_shoot_00
grenade_flame_particles	= weapons\generic_weapon01


shell_point				= 0.0, 0.23, -0.17
shell_dir				= 0.0, 0.0, 0.4
shell_particles			= weapons\9x39

; ttc
hit_power				= 1.1
hit_impulse				= 1.5

fire_distance			= 1.0
bullet_speed			= 1.15

rpm						= 750

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

hud						= wpn_groza_hud

;----------------------------------------------------------
position				= -0.026, -0.144, 0.0
orientation				= 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position			= -0.15,-0.38,0.35			; 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					= dynamics\weapons\wpn_groza\wpn_groza

light_color				= 0.75,0.62,0.38			; params for light during the fire
light_range				= 7.5						; radius
light_var_color			= 0.05
light_var_range			= 0.5
light_time				= 0.2

ph_mass					= 5

;addons
scope_status			= 2;2
silencer_status			= 0;2
grenade_launcher_status	= 1

zoom_enabled			= true

scopes_sect					= scope_ak74, scope_x27_ak74, scope_detector_ak74, scope_nv_ak74, scope_dz_ak74, scope_pso1_m2, scope_pso1_m201
;scope_name					= wpn_addon_scope			; section name for the attachable scope
scope_x						= 47						; offset in inventory icon
scope_y						= -4
silencer_name				= wpn_addon_silencer		; section name for the attachable silencer
silencer_x					= 182						; offset in inventory icon
silencer_y					= 19

grenade_launcher_name		= wpn_addon_grenade_launcher

;звуки
snd_draw				= weapons\groza\groza_draw
snd_holster				= weapons\rifle_holster
snd_shoot				= weapons\groza\groza_shoot
snd_empty				= weapons\ak_empty
snd_reload				= weapons\groza\groza_reload_empty	;weapons\groza\groza_reload
;snd_reload_empty		= weapons\groza\groza_reload_empty
snd_reload_misfire		= weapons\groza\groza_misfire
snd_shoot_grenade		= weapons\GP30\GP30_grenshoot
snd_reload_grenade		= weapons\groza\groza_grenload
snd_switch				= weapons\groza\groza_switch
;snd_bore				= weapons\draw_silent
snd_silncer_shot		= weapons\groza\groza_shot_sil
snd_zoominc				= weapons\binoculars_zoominc
snd_zoomdec				= weapons\binoculars_zoomdec

;params when silencer is attached
;silencer_flame_particles 	= weapons\generic_weapon01
silencer_smoke_particles 	= weapons\generic_shoot_00

silencer_light_color		= 0.3,0.25,0.15
silencer_light_range		= 0.01
silencer_light_var_color	= 0.05
silencer_light_var_range	= 0.01
silencer_light_time			= 0.1


[wpn_groza_hud]:hud_base_wpn
item_visual					= dynamics\weapons\wpn_groza\wpn_groza_hud

lean_dist					= 0.25, 0.8
lean_dist_aim				= 0.25, 0.7
lean_dist_reload			= 0.25, 0.75
lean_reload_allow_offset	= false
lean_hud_fov_reload			= 0.35

hands_position				= -0.0685,-0.1750,0.2010
hands_orientation			= 0.2000,3.5500,0

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

aim_hud_offset_pos			= -0.08392,0.03979,0.00633
aim_hud_offset_rot			= 0.04904,0.00349,-0.00060

aim_alt_hud_offset_pos		= -0.1004,0.0238,0.0063		;-0.0964,0.0378,0.0063
aim_alt_hud_offset_rot		= 0.0490,0.0035,0.1419		;0.0490,0.0035,-0.0006

scope_hud_offset_pos		= -0.07992,0.01379,-0.10767
scope_hud_offset_rot		= 0.04904,0.00349,-0.00060

gl_hud_offset_pos			= -0.0842,-0.1510,0.0473
gl_hud_offset_rot			= -0.2278,0.0045,0.0080

gl_scope_hud_offset_pos		= -0.0572,-0.0860,0.0473
gl_scope_hud_offset_rot		= -0.0998,0.0045,0.0080

lean_hud_offset_pos			= -0.0406,-0.4191,0.1718
lean_hud_offset_rot			= -0.8981,-0.1101,0.4420

sprint_hud_offset_pos		= 0.2699,-0.0789,0.2886
sprint_hud_offset_rot		= -0.2951,-0.8323,0.5631

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,0
fire_bone2					= muzzle_gl

anm_show					= groza_draw
anm_hide					= groza_holster, 1.05			;DUR 0.76
anm_idle					= groza_idle
anm_shots					= groza_shoot, shoot
anm_reload					= groza_reload_empty, reload_empty	;groza_reload, reload
;anm_reload_empty			= groza_reload_empty, reload_empty
anm_reload_misfire			= groza_misfire, misfire
anm_idle_aim				= groza_idle_aim
anm_idle_sprint				= groza_idle_sprint
anm_idle_moving				= groza_idle_moving
anm_idle_moving_walk		= groza_idle_moving, 0.85
anm_idle_moving_aim			= groza_idle_moving, 0.85
;anm_bore					= groza_idle_aim
anm_switch					= groza_sw_off, sw_off
anm_switch_g				= groza_sw_on, sw_on

anm_show_w_gl				= groza_draw
anm_hide_w_gl				= groza_holster, 1.05
anm_idle_w_gl				= groza_idle
anm_shots_w_gl				= groza_shoot, shoot
anm_reload_w_gl				= groza_reload_empty, reload_empty	;groza_reload, reload
;anm_reload_empty_w_gl		= groza_reload_empty, reload_empty
anm_reload_misfire_w_gl		= groza_misfire, misfire
anm_idle_w_gl_aim			= groza_idle_aim
anm_idle_sprint_w_gl		= groza_idle_sprint
anm_idle_moving_w_gl		= groza_idle_moving
anm_idle_moving_walk_w_gl	= groza_idle_moving, 0.85
anm_idle_moving_w_gl_aim	= groza_idle_moving, 0.85
;anm_bore_w_gl				= groza_idle_aim

anm_show_g					= groza_draw, idle_g
anm_hide_g					= groza_holster, idle_g, 1.05
anm_idle_g					= groza_idle, idle_g
anm_shots_g					= groza_shoot_g, shoot_g
anm_reload_g				= groza_reload_g, reload_g
anm_idle_g_aim				= groza_idle, idle_g	;groza_idle_aim
anm_idle_sprint_g			= groza_idle_sprint, idle_g
anm_idle_moving_g			= groza_idle_moving, idle_g
anm_idle_moving_walk_g		= groza_idle_moving, idle_g, 0.85
anm_idle_moving_g_aim		= groza_idle_moving, idle_g, 0.85
;anm_bore_g					= groza_idle_aim, idle_g

mrk_show_w_gl				= 0.75
mrk_show_g					= 0.75
mrk_reload_w_gl				= 0.37, 0.92	;0.66, 0.9
;mrk_reload_empty_w_gl		= 0.37, 0.92
mrk_reload_misfire_w_gl		= 0.29, 0.88
mrk_reload_g				= 0.47, 0.9
mrk_switch					= 0.65, 0.85
mrk_switch_g				= 0.27, 0.85
