[wpn_toz34]:weapon_base
GroupControlSection		= spawn_group
$spawn					= "weapons\toz-34"
$npc					= on
$prefetch				= 8

class					= WP_BM16
min_radius				= 0
max_radius				= 50

ef_main_weapon_type		= 1
ef_weapon_type			= 7
weapon_class			= shotgun

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

cost					= 1200
inv_weight				= 3.1
inv_volume				= 7

ammo_mag_size			= 2
ammo_class				= class_12_a

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

; модификаторы разброса для актора вне режима прицеливания
PDM_disp_base			= 1.0
PDM_disp_vel_factor		= 1.0
PDM_disp_accel_factor	= 1.5
PDM_disp_crouch			= 1.0
PDM_disp_crouch_no_acc	= 1.0

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

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

hand_dependence		= 1
single_handed		= 0

slot				= 2,1
animation_slot		= 3		; type of the animation that will be used

inv_name			= wpn-toz34
inv_name_short		= wpn-toz34
description			= enc_weapons1_wpn-toz34

inv_grid_width		= 5
inv_grid_height		= 1
inv_grid_x			= 12
inv_grid_y			= 2

;kill_msg_x			= 127
;kill_msg_y			= 82
;kill_msg_width		= 97
;kill_msg_height		= 23

;shell_point			 = 0.0, 0.183, 0.07
fire_point				= 0.0, 0.183, 0.730
fire_point2				= 0.0, 0.155, 0.730

flame_particles			= weapons\generic_weapon05
smoke_particles			= weapons\generic_shoot_00

; ttc
hit_power			= 1.05
hit_impulse			= 1.0

fire_distance		= 1.0
bullet_speed		= 1.0	;начальная скорость пули

rpm					= 300
; end ttc

hud						= wpn_toz34_hud
position				= -0.026, -0.125, 0.082
orientation				= 0, 35.5, 0		;значение устанавливается в градусах

;--STRAP PARAMETERS-----------------------------------------------------------------
;под мишкой
strap_position			= -0.26,-0.11,0.15			; position (offset) and orientation of the weapon when it is strapped
strap_orientation		= -15,-9,110				; (3rd person view in degrees)
strap_bone0				= bip01_spine2
strap_bone1				= bip01_spine1

visual					= dynamics\weapons\wpn_toz34\wpn_toz34

light_color				= 0.75,0.62,0.38
light_range				= 8.5
light_var_color			= 0.05
light_var_range			= 0.5
light_time 				= 0.2

ph_mass					= 3

;addons
scope_status			= 0
silencer_status			= 0
grenade_launcher_status	= 0

zoom_enabled			= true
duplet_effect			= effector_shoot_duplet
duplet_shock_time		= 1.45

;звуки
snd_draw				= weapons\toz34\toz34_draw
snd_holster				= weapons\shotgun_holster
snd_shoot				= weapons\toz34\toz34_shoot, 2.5
;snd_shoot_duplet		= weapons\toz34\toz34_shoot_both, 3.0
snd_empty				= weapons\toz34\toz34_empty
snd_reload				= weapons\toz34\toz34_reload
snd_reload_1			= weapons\toz34\toz34_reload_one


[wpn_toz34_hud]:hud_base_wpn
item_visual					= dynamics\weapons\wpn_toz34\wpn_toz34_hud

shoot_effect				= toz34
lean_hud_fov_reload			= 0.3

aim_inertion_move			= 0.0, 1.0, 0.0, 3.0

hands_position				= -0.1590,-0.1510,0.0100
hands_orientation			= 0.1500,0.4500,0

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

aim_hud_offset_pos			= -0.06893,0.07337,0.01667
aim_hud_offset_rot			= 0.00978,0.00273,-0.00126

fire_point					= 0,0.0105,-0.0320
fire_bone					= muzzle
fire_point2					= 0,-0.013,-0.0320
fire_bone2					= muzzle

anm_show_0					= toz34_draw
anm_show_1					= toz34_draw
anm_show_2					= toz34_draw

anm_hide_0					= toz34_holster, 1.1			;DUR 0.73
anm_hide_1					= toz34_holster, 1.1
anm_hide_2					= toz34_holster, 1.1

anm_idle_0					= toz34_idle
anm_idle_1					= toz34_idle
anm_idle_2					= toz34_idle

anm_idle_aim_0				= toz34_idle_aim
anm_idle_aim_1				= toz34_idle_aim
anm_idle_aim_2				= toz34_idle_aim

anm_idle_moving_0			= toz34_idle_moving
anm_idle_moving_1			= toz34_idle_moving
anm_idle_moving_2			= toz34_idle_moving

anm_idle_moving_walk_0		= toz34_idle_moving, 0.85
anm_idle_moving_walk_1		= toz34_idle_moving, 0.85
anm_idle_moving_walk_2		= toz34_idle_moving, 0.85

anm_idle_moving_aim_0		= toz34_idle_moving, 0.85
anm_idle_moving_aim_1		= toz34_idle_moving, 0.85
anm_idle_moving_aim_2		= toz34_idle_moving, 0.85

anm_idle_sprint_0			= toz34_sprint		;toz34_idle_sprint
anm_idle_sprint_1			= toz34_sprint		;toz34_idle_sprint
anm_idle_sprint_2			= toz34_sprint		;toz34_idle_sprint

anm_reload_1				= toz34_reload_l, reload_l
anm_reload_2				= toz34_reload_lr, reload_lr

anm_shot_1					= toz34_shoot, shoot, 0.7	;, 1.0
anm_shot_2					= toz34_shoot, shoot, 0.7	;, 1.0
anm_shots_both				= toz34_shoot, shoot, 0.5	;, 1.0

;anm_bore_0					= toz34_idle_aim
;anm_bore_1					= toz34_idle_aim
;anm_bore_2					= toz34_idle_aim

mrk_show_0					= 0.65
mrk_show_1					= 0.65
mrk_show_2					= 0.65
mrk_reload_1				= 0.15, 0.59, 0.95
mrk_reload_2				= 0.11, 0.41, 0.71, 0.95

syn_idle_sprint_0			= 0.5
syn_idle_sprint_1			= 0.5
syn_idle_sprint_2			= 0.5

[wpn_toz34_premium]:wpn_toz34
$spawn				= "weapons\toz-34_premium"
visual				= dynamics\weapons\wpn_toz34\wpn_toz34_sk1
hud					= wpn_toz34_premium_hud
cost				= 6000

inv_name			= wpn-toz34_premium
inv_name_short		= wpn-toz34
description			= enc_weapons1_wpn-toz34_premium

inv_grid_x			= 12
inv_grid_y			= 3

;hit_power			= 1.1
hit_impulse			= 1.3
fire_distance		= 1.2
bullet_speed		= 1.1

fire_dispersion_base				= 0.75
fire_dispersion_both				= 1.75	;дуплет
fire_dispersion_condition_factor	= 2.5
misfire_start_condition				= 0.65
condition_shot_dec					= 0.002
condition_queue_shot_dec			= 0.0024

[wpn_toz34_premium_hud]:wpn_toz34_hud
item_visual			= dynamics\weapons\wpn_toz34\wpn_toz34_sk1_hud

[wpn_toz34_mark4]:wpn_toz34_premium
$spawn				= "weapons\toz-34_ell"

description 		= enc_weapons1_wpn-toz34_mark4
visual				= dynamics\weapons\wpn_toz34\wpn_toz34_mark4
hud 				= wpn_toz34_mark4_hud

inv_name				= wpn-toz34_mark4
inv_name_short			= wpn-toz34_mark4

inv_grid_width			= 6
inv_grid_height			= 2
inv_grid_x				= 0
inv_grid_y				= 38

cost					= 8000
inv_weight				= 3.7
inv_volume				= 8

ammo_class				= class_12_ad

hit_power				= 1.07

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

fire_dispersion_base	= 0.5	;угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
fire_dispersion_both	= 0.75	;дуплет

control_inertion_factor	= 1.3
sprint_coeff			= 0.9

scope_texture			= wpn\wpn_crosshair_mark4
scope_status			= 1
zoom_enabled			= true
scope_zoom_factor		= 20
zoom_rotate_time		= 0.35
zoom_rotate_time_scope	= 0.45
scope_dynamic_zoom		= on
scope_zoom_step_count	= 5
scope_zoom_min_k		= 0.6

fire_distance			= 1.5

holder_range_modifier	= 1.8
holder_fov_modifier		= 0.6

snd_zoominc				= weapons\binoculars_zoominc
snd_zoomdec				= weapons\binoculars_zoomdec

[wpn_toz34_mark4_hud]:wpn_toz34_hud
item_visual				= dynamics\weapons\wpn_toz34\wpn_toz34_mark4_hud

shoot_effect			= toz34_mark4

torso_roll_shift		= 0.14	;0.05
;anm_shots_scope		= toz34_shoot_scope

hands_position			= -0.1280,-0.1850,0.0420
hands_orientation		= -0.2500,0.3500,0.0000

aim_alt_hud_offset_pos	= -0.1014,0.0994,-0.0147
aim_alt_hud_offset_rot	= 0.00804,-0.01425,-0.00132

scope_hud_offset_pos	= -0.09748,0.06133,-0.24825
scope_hud_offset_rot	= 0.03053,0.00575,-0.00148

sprint_hud_offset_rot	= 0.03,0,0

;lean_hud_offset_pos			= -0.1046,-0.4526,0.0753
;lean_hud_offset_rot			= -0.9247,-0.0949,0.4205

[wpn_toz34_sawed]:wpn_toz34
$spawn				= "weapons\toz-34_sawed"

visual				= dynamics\weapons\wpn_toz34\wpn_toz34_obrez
hud					= wpn_toz34_sawed_hud

description			= enc_weapons1_wpn-toz34_sawed
inv_name			= wpn-toz34_sawed
inv_name_short		= wpn-toz34_sawed

inv_grid_width		= 3
inv_grid_height		= 1
inv_grid_x			= 9
inv_grid_y			= 1

cost				= 500
inv_weight			= 2.1
inv_volume			= 3.0

slot				= 1,2
;-----------------------------------------------------------------------------------
;базовая дисперсия
fire_dispersion_base	= 1.35	;угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
fire_dispersion_both	= 2.7	;дуплет
control_inertion_factor	= 1.0

; модификаторы разброса для актора вне режима прицеливания
PDM_disp_base			= 1.0
PDM_disp_vel_factor		= 0.4
PDM_disp_accel_factor	= 0.5
PDM_disp_crouch			= 1.0
PDM_disp_crouch_no_acc	= 1.0

fire_dispersion_condition_factor	= 4
condition_shot_dec					= 0.0029

; ttc
hit_power			= 0.85
hit_impulse			= 0.9
armor_piercing_k	= 0.9

fire_distance		= 0.8
bullet_speed		= 0.8

zoom_rotate_time	= 0.25
zoom_hold_speed		= 2.0

holder_fov_modifier	= 0.8
duplet_shock_time	= 1.0

fire_point			= 0.0, 0.183, 0.425
fire_point2			= 0.0, 0.155, 0.425

snd_reload			= weapons\toz34\toz34_reload_n
snd_reload_1		= weapons\toz34\toz34_reload_one_n

[wpn_toz34_sawed_hud]:wpn_toz34_hud
item_visual					= dynamics\weapons\wpn_toz34\wpn_toz34_obrez_hud
allow_secondary_item		= true
reload_start_with_sec_item	= false

bobbing_factor				= 1.25
bobbing_section				= bm16_bobbing_effector

inertion_offset				= -0.03
inertion_roll				= 0.05
aim_inertion_offset			= 0.02
aim_inertion_roll			= 0.08
aim_inertion_speed			= 11
inertion_move				= 1.0, 1.5, -0.7, 1.5
aim_inertion_move			= 1.0, 1.5, 0.0, 2.5

lean_dist					= 0.25, 0.6
lean_dist_aim				= 0.25, 0.65
lean_hud_fov_reload			= 0.45

hands_position				= -0.1625,-0.1430,-0.0005
hands_orientation			= 0.2,0.45,0

aim_hud_offset_pos			= -0.06094,0.07262,0.03388
aim_hud_offset_rot			= 0.00978,0.00273,-0.00126

lean_hud_offset_pos			= -0.0540,-0.4437,0.0725
lean_hud_offset_rot			= -1.0555,0.0901,-0.0425

fire_point					= 0,0.0055,-0.3365
fire_bone					= muzzle
fire_point2					= 0,-0.017,-0.3365
fire_bone2					= muzzle

anm_show_0					= toz34_draw_n
anm_show_1					= toz34_draw_n
anm_show_2					= toz34_draw_n

anm_hide_0					= toz34_holster_n			;DUR 0.64
anm_hide_1					= toz34_holster_n
anm_hide_2					= toz34_holster_n

anm_idle_0					= toz34_idle_n
anm_idle_1					= toz34_idle_n
anm_idle_2					= toz34_idle_n

anm_idle_aim_0				= toz34_idle_aim_n
anm_idle_aim_1				= toz34_idle_aim_n
anm_idle_aim_2				= toz34_idle_aim_n

anm_idle_moving_0			= toz34_idle_moving_n
anm_idle_moving_1			= toz34_idle_moving_n
anm_idle_moving_2			= toz34_idle_moving_n

anm_idle_moving_walk_0		= toz34_idle_moving_n, 0.85
anm_idle_moving_walk_1		= toz34_idle_moving_n, 0.85
anm_idle_moving_walk_2		= toz34_idle_moving_n, 0.85

anm_idle_moving_aim_0		= toz34_idle_n
anm_idle_moving_aim_1		= toz34_idle_n
anm_idle_moving_aim_2		= toz34_idle_n

anm_idle_sprint_0			= toz34_sprint
anm_idle_sprint_1			= toz34_sprint
anm_idle_sprint_2			= toz34_sprint

anm_reload_1				= toz34_reload_one, reload_one
anm_reload_2				= toz34_reload_both, reload_both

anm_shot_1					= toz34_shoot_n, shoot, 0.7	;, 1.0
anm_shot_2					= toz34_shoot_n, shoot, 0.7	;, 1.0
anm_shots_both				= toz34_shoot_n, shoot, 0.5	;, 1.0

mrk_show_0					= 0.75
mrk_show_1					= 0.75
mrk_show_2					= 0.75
mrk_reload_1				= 0.14, 0.54, 0.93
mrk_reload_2				= 0.14, 0.54, 0.93

syn_idle_moving_aim_0		= 0, 0
syn_idle_moving_aim_1		= 0, 0
syn_idle_moving_aim_2		= 0, 0
syn_idle_moving_0			= 0.5
syn_idle_moving_1			= 0.5
syn_idle_moving_2			= 0.5
syn_idle_moving_walk_0		= 0.5
syn_idle_moving_walk_1		= 0.5
syn_idle_moving_walk_2		= 0.5
