[wpn_lr300]:weapon_base
GroupControlSection			= spawn_group
$spawn						= "weapons\lr-300"
$npc			 			= on
$prefetch 		 			= 8

class						= WP_AK74
min_radius					= 0
max_radius					= 50
description					= enc_weapons1_wpn-lr300

ef_main_weapon_type			= 2
ef_weapon_type				= 6

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

cost						= 5000
weapon_class				= assault_rifle

ammo_mag_size				= 30
ammo_class					= class_556
fire_modes					= 1, 3, -1
launch_speed = 0

hand_dependence		 		= 1
single_handed				= 0

inv_name					= wpn-lr300
inv_name_short				= wpn-lr300
inv_weight					= 3.1
inv_volume					= 10

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

;kill_msg_x			= 175
;kill_msg_y			= 0
;kill_msg_width		= 82
;kill_msg_height		= 28

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

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

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

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

;увеличение дисперсии в процентах при максимальном износе
fire_dispersion_condition_factor = 4
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.85
;изношеность при которой шанс осечки становится константным
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.0002
;-----------------------------------------------------------------------------------

fire_point					= 0.0, 0.199, 0.475
fire_point2					= 0.0, 0.123, 0.554

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

shell_point					= 0.0, 0.189, 0.06
;shell_dir					= 0.0, 1.0, 0.0
shell_particles				= weapons\556x45

; ttc
hit_power				= 1.0
hit_impulse				= 1.0

fire_distance			= 1.0
bullet_speed			= 0.98

rpm						= 750
; end ttc

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

hud						= wpn_lr300_hud
position				= -0.026, -0.130, -0.005
orientation				= 0.0, -4, 0.0

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position				= -0.15,-0.37,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						= dynamics\weapons\wpn_lr300\wpn_lr300

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						= 3

;addons
scope_status				= 2
silencer_status				= 2
grenade_launcher_status		= 2

zoom_enabled				= true

scopes_sect					= scope_susat_sig, scope_susat_x16_sig, scope_susat_custom_sig, scope_susat_dusk_sig, scope_susat_night_sig
;scope_name 					= wpn_addon_scope_susat
scope_x 					= 76
scope_y 					= -6

silencer_name				= wpn_addon_silencer
silencer_x					= 238
silencer_y					= 12

grenade_launcher_name		= wpn_addon_grenade_launcher_m203
grenade_launcher_x			= 143
grenade_launcher_y			= 28

;звуки
snd_draw					= weapons\lr300\lr300_draw
snd_holster					= weapons\rifle_holster, 1, 0.1
snd_shoot					= weapons\lr300\lr300_shoot
snd_empty					= weapons\lr300\lr300_empty,	0.8
snd_reload					= weapons\lr300\lr300_reload
snd_shoot_grenade			= weapons\m203\M203_grenshoot
snd_reload_grenade			= weapons\m203\M203_reload
snd_switch					= weapons\groza_switch, 1.0, 0.3
snd_silncer_shot			= weapons\lr300\lr300_shoot_sil	;lr300_shot_sil
;snd_bore					= $no_sound
snd_zoominc					= weapons\binoculars_zoominc
snd_zoomdec					= weapons\binoculars_zoomdec

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

bobbing_factor			= 1.1

hands_position			= -0.034,-0.21,0.13
hands_orientation		= 0.55,2.4,0.15

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

aim_hud_offset_pos		= -0.1188,0.0672,-0.15
aim_hud_offset_rot		= 0.03985,0.0097,0

aim_alt_hud_offset_pos	= -0.1183,0.0542,-0.15
aim_alt_hud_offset_rot	= 0.0399,0.0097,0

scope_hud_offset_pos	= -0.11680,0.07620,-0.21300
scope_hud_offset_rot	= 0.03985,0.00970,0

gl_hud_offset_pos		= -0.11850,0.00500,-0.04950
gl_hud_offset_rot		= -0.03575,0.00925,0

reload_hud_offset_pos	= -0.0890,-0.0680,-0.0645
reload_hud_offset_rot	= 0.0550,-0.1275,0.6125

sprint_hud_offset_pos	= 0.2230,0.0915,0.0775
sprint_hud_offset_rot	= 0.2400,-0.2850,-0.3200

shell_point				= 0.028,0.078,0.113
;shell_dir				= 0,1,0
shell_bone				= wpn_body

fire_point				= 0,0.072761,0.5244
fire_bone				= wpn_body
fire_point2				= 0,0,0.5545
fire_bone2				= wpn_body

anm_show					= lancew_lr300_draw, 0.8
anm_hide					= lancew_lr300_holster, 0.22			;DUR 0.79
anm_idle					= lancew_lr300_idle
anm_idle_sprint				= lancew_lr300_sprint
anm_idle_moving				= lancew_lr300_moving
anm_idle_moving_walk		= lancew_lr300_moving, 0.85
anm_idle_moving_aim			= lancew_lr300_idle_aim
anm_shots					= lancew_lr300_shoot, shoot
anm_reload					= lancew_lr300_reload, reload
anm_idle_aim				= lancew_lr300_idle_aim, idle_aim

anm_switch					= lancew_lr300_switch_off
anm_switch_g				= lancew_lr300_switch_on
;anm_bore					= lancew_lr300_no_reload

anm_show_w_gl				= lancew_lr300_draw_w_gl, 0.8
anm_hide_w_gl				= lancew_lr300_holster_w_gl, 0.22
anm_idle_w_gl				= lancew_lr300_idle_w_gl
anm_shots_w_gl				= lancew_lr300_shoot_w_gl, shoot
anm_reload_w_gl				= lancew_lr300_reload_w_gl, reload
anm_idle_w_gl_aim			= lancew_lr300_idle_aim_w_gl, idle_aim
anm_idle_sprint_w_gl		= lancew_lr300_sprint_w_gl
anm_idle_moving_w_gl		= lancew_lr300_moving_w_gl
anm_idle_moving_walk_w_gl	= lancew_lr300_moving_w_gl, 0.85
anm_idle_moving_w_gl_aim	= lancew_lr300_idle_aim_w_gl
;anm_bore_w_gl				= lancew_lr300_no_reload_w_gl

anm_show_g					= lancew_lr300_draw_g, 0.8
anm_hide_g					= lancew_lr300_holster_g, 0.22
anm_idle_g					= lancew_lr300_idle_g
anm_reload_g				= lancew_lr300_reload_g, reload_g
anm_idle_g_aim				= lancew_lr300_idle_g	;lancew_lr300_idle_aim_g
anm_shots_g					= lancew_lr300_shoot_g, shoot_g
anm_idle_sprint_g			= lancew_lr300_sprint_g
anm_idle_moving_g			= lancew_lr300_moving_g
anm_idle_moving_walk_g		= lancew_lr300_moving_g, 0.85
anm_idle_moving_g_aim		= lancew_lr300_idle_g
;anm_bore_g					= lancew_lr300_no_reload_g

; additional parameters
prm_reload					=	8|0.3
prm_reload_w_gl				=	8|0.3

mrk_hide					= 0.45
mrk_hide_w_gl				= 0.45
mrk_hide_g					= 0.45
mrk_show					= 0.7
mrk_show_w_gl				= 0.7
mrk_show_g					= 0.7
mrk_reload					= 0.44, 0.92
mrk_reload_w_gl				= 0.44, 0.92
mrk_reload_g				= 0.63, 0.98
