;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[wpn_sig550]:weapon_base
GroupControlSection		= spawn_group
$spawn					= "weapons\sig550"
$npc					= on
$prefetch 				= 8

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

ef_main_weapon_type		= 2
ef_weapon_type			= 6

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

cost					= 7500
weapon_class			= assault_rifle	; Type of the weapon

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

hand_dependence			= 1
single_handed			= 0

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

inv_name				= wpn-sig550
inv_name_short			= wpn-sig550
inv_weight				= 4.1
inv_volume				= 10

inv_grid_width			= 5
inv_grid_height			= 2
inv_grid_x				= 5
inv_grid_y				= 7

;kill_msg_x			= 80
;kill_msg_y			= 59
;kill_msg_width		= 87
;kill_msg_height		= 24

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

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

;отдача
cam_relax_speed			= 5.2;0.25	;скорость возврата в исходное положение
cam_dispersion			= 0.25	;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc		= 0.1	;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac		= 1.0	;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle			= 8.2	;максимальный угол отдачи
cam_max_angle_horz		= 6.0	;(degree) maximum shot horizontal degree
cam_step_angle_horz		= 0.5;0.4	;(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.006
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.1
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.0003
;увеличение изношености при выстреле очередью
condition_queue_shot_dec	= 0.0002
;-----------------------------------------------------------------------------------

fire_point					= 0.0, 0.142, 0.595
fire_point2					= 0.0, 0.083, 0.602

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

shell_point					= -0.020000,0.167000,0.082000
;shell_dir					= 0.0, 0.0, 0.4
shell_particles				= weapons\556x45

; ttc
hit_power				= 1.05
hit_impulse				= 1.0

fire_distance			= 1.0
bullet_speed			= 1.02

rpm						= 700
; end ttc

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

hud						= wpn_sig550_hud

;----------------------------------------------------------
position					= -0.026, -0.099, -0.005
orientation					= 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
;под мишкой
strap_position				= -0.26,-0.11,0.25			; 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_sig550\wpn_sig550

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

;addons
scope_status				= 2
silencer_status				= 2
grenade_launcher_status		= 2

zoom_enabled				= true						; (on,off)zoom mode (right mouse button)

scopes_sect					= scope_susat_sig, scope_susat_x16_sig, scope_susat_custom_sig, scope_susat_dusk_sig, scope_susat_night_sig
scope_x						= 66
scope_y						= 0
silencer_name				= wpn_addon_silencer
silencer_x					= 226
silencer_y					= 19
grenade_launcher_name		= wpn_addon_grenade_launcher_m203
grenade_launcher_x			= 108
grenade_launcher_y			= 30

;звуки
snd_draw					= weapons\sig550\sig550_draw
snd_holster					= weapons\rifle_holster
snd_shoot					= weapons\sig550\sig550_shoot
snd_empty					= weapons\sig550\sig550_empty
snd_reload					= weapons\sig550\sig550_reload
snd_reload_misfire			= weapons\sig550\sig550_misfire
snd_silncer_shot			= weapons\sig550\sig550_shot_sil
snd_shoot_grenade			= weapons\m203\M203_grenshoot
snd_reload_grenade			= weapons\sig550\sig550_grenload
;snd_switch					= $no_sound
;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_sig550_hud]:hud_base_wpn
item_visual					= dynamics\weapons\wpn_sig550\wpn_sig550_hud

hands_position				= -0.064,-0.18,0.1355
hands_orientation			= 0.55,2.4,0.15

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

aim_hud_offset_pos			= -0.08835,0.07775,-0.12
aim_hud_offset_rot			= 0.04345,0.0095,-0.01

aim_alt_hud_offset_pos		= -0.0883,0.0447,-0.12
aim_alt_hud_offset_rot		= 0.0435,0.0095,-0.01

scope_hud_offset_pos		= -0.09235,0.07375,-0.256
scope_hud_offset_rot		= 0.05345,0.0195,-0.01

gl_hud_offset_pos			= -0.090,-0.0105,0
gl_hud_offset_rot			= -0.050,0.010125,0

reload_hud_offset_pos		= 0.0000,0.0200,0.0000
reload_hud_offset_rot		= 0.0975,0.0000,0.0000

sprint_hud_offset_pos		= 0.2660,0.0080,0.2660
sprint_hud_offset_rot		= 0.1050,-0.7988,0.1612

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.099
fire_bone2					= muzzle_gl

anm_show						= sg550_draw
anm_hide						= sg550_holster			;DUR 0.8
anm_idle						= sg550_idle
anm_idle_sprint					= sg550_sprint
anm_idle_moving					= sg550_move
anm_idle_moving_walk			= sg550_move, 0.85
anm_idle_moving_aim				= sg550_move, 0.85
anm_shots						= sg550_shoot, shoot
anm_reload						= sg550_reload_empty, reload_empty
anm_reload_misfire				= sg550_misfire, misfire
anm_idle_aim					= sg550_aim
;anm_bore						= sg550_aim
anm_switch						= sg550_switch_off
anm_switch_g					= sg550_switch_on
anm_hide_w_gl					= sg550_holster_w_gl
anm_show_w_gl					= sg550_draw_w_gl
anm_idle_w_gl					= sg550_idle_w_gl
anm_shots_w_gl					= sg550_shoot_w_gl, shoot
anm_reload_w_gl					= sg550_reload_empty_w_gl, reload_empty
anm_reload_misfire_w_gl			= sg550_misfire_w_gl, misfire
anm_idle_w_gl_aim				= sg550_aim_w_gl
anm_idle_sprint_w_gl			= sg550_sprint_w_gl
anm_idle_moving_w_gl			= sg550_move_w_gl
anm_idle_moving_walk_w_gl		= sg550_move_w_gl, 0.85
anm_idle_moving_w_gl_aim		= sg550_move_w_gl, 0.85
;anm_bore_w_gl					= sg550_aim_w_gl
anm_show_g						= sg550_draw_g
anm_hide_g						= sg550_holster_g
anm_idle_g						= sg550_idle_g
anm_reload_g					= sg550_reload_g, reload_g
anm_idle_g_aim					= sg550_idle_g	;sg550_aim_g
anm_shots_g						= sg550_shoot_g, shoot_g
anm_idle_sprint_g				= sg550_sprint_g
anm_idle_moving_g				= sg550_move_g
anm_idle_moving_walk_g			= sg550_move_g, 0.85
anm_idle_moving_g_aim			= sg550_move_g, 0.85
;anm_idle_moving_crouch_g		= sg550_crouch_g
;anm_bore_g						= sg550_aim_g

; additional parameters
prm_reload					= 8|0.54
prm_reload_w_gl				= 8|0.54
prm_idle_sprint				= 0		; disable sprint offset wo gl

mrk_show					= 0.65
mrk_show_w_gl				= 0.65
mrk_show_g					= 0.65
mrk_reload					= 0.46, 0.9
mrk_reload_misfire			= 0.36, 0.8
mrk_reload_w_gl				= 0.46, 0.9
mrk_reload_misfire_w_gl		= 0.36, 0.8
mrk_reload_g				= 0.63, 0.96

[scope_susat_sig]
scope_name				= wpn_addon_scope_susat
scope_x					= 0
scope_y					= 0

[scope_susat_x16_sig]
scope_name				= wpn_addon_scope_susat_x16
scope_x					= 0
scope_y					= 0

[scope_susat_custom_sig]
scope_name 				= wpn_addon_scope_susat_custom
scope_x					= 0
scope_y					= 0

[scope_susat_dusk_sig]
scope_name				= wpn_addon_scope_susat_dusk
scope_x					= 0
scope_y					= 0

[scope_susat_night_sig]
scope_name				= wpn_addon_scope_susat_night
scope_x					= 0
scope_y					= 0