[wpn_l85]:weapon_base
GroupControlSection		= spawn_group
$spawn					= "weapons\l85"		; option for Level Editor
$npc					= on				; option for Level Editor
$prefetch 				= 8

class					= WP_AK74
min_radius				= 30
max_radius				= 100
description				= enc_weapons1_wpn-l85

ef_main_weapon_type		= 2
ef_weapon_type			= 6

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

cost					= 4500
weapon_class			= assault_rifle	; Type of the weapon
launch_speed			= 0

ammo_mag_size			= 30
ammo_class				= class_556
fire_modes				= 1, -1

hand_dependence			= 1
single_handed			= 0

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

inv_name				= wpn-l85
inv_name_short			= wpn-l85
inv_weight				= 4.2
inv_volume				= 10

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

;kill_msg_x				= 84
;kill_msg_y				= 28
;kill_msg_width			= 73
;kill_msg_height			= 30

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

;parent dispersion modifiers
PDM_disp_base				= 0.8
PDM_disp_vel_factor			= 1.4
PDM_disp_accel_factor		= 1.0
PDM_disp_crouch				= 1.0
PDM_disp_crouch_no_acc		= 1.0

;отдача
cam_relax_speed				= 5			;скорость возврата в исходное положение
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.0		;(degree) size of step camera moved in horizontal position while shooting

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

fire_point					= 0.0, 0.186, 0.410
;fire_point2				= 0.0, 0.106, 0.468

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

shell_point		 			= 0.0, 0.186, -0.17
;shell_dir		 			= 0.0, 0.0, 0.4
shell_particles				= weapons\556x45

; ttc
hit_power					= 1.0
hit_impulse					= 1.0

fire_distance				= 1.0
bullet_speed				= 1.0

rpm							= 650
; end ttc

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

hud							= wpn_l85_hud

;----------------------------------------------------------
position					= -0.026, -0.135, -0.01
orientation					= 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position				= -0.15,-0.36,0.25			; 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_l85\wpn_l85

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

ph_mass						= 5

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

zoom_enabled				= true
scope_zoom_factor			= 30		;SUSAT 2X
scope_texture				= wpn\wpn_crosshair_l85

silencer_name				= wpn_addon_silencer
silencer_x					= 236
silencer_y					= 12
grenade_launcher_name		= wpn_addon_grenade_launcher_m203
grenade_launcher_x			= 128
grenade_launcher_y			= 28

;звуки
snd_draw				= weapons\l85\l85_draw
snd_holster				= weapons\rifle_holster
snd_shoot				= weapons\l85\l85_shoot
snd_empty				= weapons\l85\l85_empty,	0.7
snd_reload				= weapons\l85\l85_reload_empty	;l85_reload
;snd_reload_empty		= weapons\l85\l85_reload_empty
snd_reload_misfire		= weapons\l85\l85_misfire
snd_shoot_grenade		= weapons\m203\M203_grenshoot
snd_reload_grenade		= weapons\m203\M203_reload
snd_switch				= weapons\m203\M203_switch
snd_silncer_shot		= weapons\l85\l85_shot_sil

;настройки для глушителя
;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_l85_hud]:hud_base_wpn
item_visual					= dynamics\weapons\wpn_l85\wpn_l85_hud

lean_dist					= 0.25, 0.85
lean_dist_aim				= 0.25, 0.75
lean_dist_reload			= 0.25, 0.75
lean_reload_allow_offset	= false
lean_hud_fov_reload			= 0.4

hands_position				= -0.062,-0.2,0.2655
hands_orientation			= 1.5,3.0,-0.85

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

aim_alt_hud_offset_pos		= -0.0960,0.0600,-0.1959
aim_alt_hud_offset_rot		= 0.0627,0.0269,-0.0145

scope_hud_offset_pos		= -0.09602,0.07246,-0.1974
scope_hud_offset_rot		= 0.047,0.0265,-0.0145

sprint_hud_offset_pos		= 0.1275,-0.1555,-0.0075
sprint_hud_offset_rot		= -0.2800,-0.3900,0.3100

custom_hud_offset_pos		= 0,-0.06,0

shell_point				= 0,0,0
;shell_dir				= 0,1,0
shell_bone				= gilza

fire_point				= 0,0,0
fire_bone				= muzzle

anm_show				= l85_draw, 0.8
anm_hide				= l85_holster, 0.9			;DUR 0.85
anm_idle				= l85_idle
anm_idle_sprint			= l85_idle_sprint
anm_idle_moving			= l85_idle_moving
anm_idle_moving_walk	= l85_idle_moving, 0.85
anm_idle_moving_aim		= l85_idle_moving, 0.85
anm_shots				= l85_shoot, shoot
anm_reload				= l85_reload_empty, reload_empty ;l85_reload, reload
;anm_reload_empty		= l85_reload_empty, reload_empty
anm_reload_misfire		= l85_misfire, misfire
anm_idle_aim			= l85_idle_aim
;anm_bore				= l85_idle_aim

prm_show				= 9|0.15

mrk_hide				= 0.95
mrk_show				= 0.55
mrk_reload				= 0.4, 0.9
mrk_reload_misfire		= 0.3, 0.9