[wpn_g36]:weapon_base
GroupControlSection			= spawn_group
$spawn						= "weapons\g36"		; 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-g36
ef_main_weapon_type			= 2
ef_weapon_type				= 6

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

cost						= 8000
weapon_class				= assault_rifle	; Type of the weapon

ammo_mag_size				= 30
ammo_class					= class_556
fire_modes					= 1, 3, -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-g36
inv_name_short				= wpn-g36
inv_weight					= 3.8
inv_volume					= 10

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

;kill_msg_x					= 157
;kill_msg_y					= 29
;kill_msg_width				= 78
;kill_msg_height				= 31

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

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

;отдача
cam_relax_speed         	= 5.7		;скорость возврата в исходное положение
cam_dispersion          	= 0.2		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc			= 0.1		;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac			= 0.95		;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle				= 7.0		;максимальный угол отдачи
cam_max_angle_horz			= 9.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.75
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.15
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob			= 0.012
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.1
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.0003
;увеличение изношености при выстреле очередью
condition_queue_shot_dec	= 0.0002
;-----------------------------------------------------------------------------------

fire_point					= 0.0, 0.195, 0.590
fire_point2					= 0.0,0.119,0.617

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

shell_point		 			= 0.0, 0.21, 0.12
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.0

rpm							= 850
; end ttc

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

hud							= wpn_g36_hud

;-----------------------------------------------------------------------------------
position					= -0.026, -0.132, -0.01
orientation					= 0, -2, 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_g36\wpn_g36

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

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

zoom_enabled				= true						; (on,off)zoom mode (right mouse button)
scope_zoom_factor			= 30 			;2X(3.5x)	; fov for zoom mode
aim_zoom_factor				= 55
zoom_rotate_time			= 0.25
zoom_rotate_time_scope		= 0.4

scope_texture				= wpn\wpn_crosshair_g36

;scope_name 					= wpn_addon_scope_susat
;scope_x 					= 78
;scope_y 					= 0
silencer_name				= wpn_addon_silencer
silencer_x					= 244
silencer_y					= 13
grenade_launcher_name		= wpn_addon_grenade_launcher_m203
grenade_launcher_x			= 138
grenade_launcher_y			= 31

;звуки
snd_draw					= weapons\g36\g36_draw
snd_holster					= weapons\rifle_holster
snd_shoot					= weapons\g36\g36_shoot
snd_empty					= weapons\g36\g36_empty,		0.8
snd_reload					= weapons\g36\g36_reload
;snd_reload_empty			= weapons\g36\g36_reload_empty
snd_silncer_shot			= weapons\g36\g36_shot_sil
snd_shoot_grenade			= weapons\m203\M203_grenshoot
snd_reload_grenade			= weapons\g36\g36_grenload
snd_switch					= weapons\m203\M203_switch, 1.0, 0.45
;snd_bore 					= $no_sound

;настройки для глушителя

;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_g36_hud]:hud_base_wpn
item_visual				= dynamics\weapons\wpn_g36\wpn_g36_hud

hands_position			= -0.034,-0.2,0.14
hands_orientation		= 2,2,0

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

bobbing_factor			= 0.6

aim_alt_hud_offset_pos	= -0.12185,0.0278,-0.25
;aim_alt_hud_offset_pos	= -0.12185,0.0278,-0.03
aim_alt_hud_offset_rot	= 0.0415,0.0335,0

scope_hud_offset_pos	= -0.12185,0.02580,-0.28
scope_hud_offset_rot	= -0.0285,0.0335,0

gl_hud_offset_pos		= -0.12,-0.0975,0
gl_hud_offset_rot		= -0.125,0.0327,0

sprint_hud_offset_pos	= 0.1770,0.0445,0.0905
sprint_hud_offset_rot	= 0.1150,-0.7475,0.2675

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

anm_show				= g36k_draw, 0.9
anm_hide				= g36k_holster			;DUR 0.8
anm_idle				= g36k_idle
anm_idle_sprint			= g36k_idle_sprint
anm_idle_moving 		= g36k_idle_moving
anm_idle_moving_walk	= g36k_idle_moving, 0.85
anm_idle_moving_aim		= g36k_idle_aim						;g36k_idle_moving, 0.85
anm_shots				= g36k_shoot, shoot
anm_reload				= g36k_reload_empty, reload_empty	;g36k_reload, reload
;anm_reload_empty		= g36k_reload_empty, reload_empty
anm_idle_aim			= g36k_idle_aim

anm_switch				= g36k_switch_off, switch_off
anm_switch_g			= g36k_switch_on, switch_on
;anm_bore				= g36k_idle_aim

anm_show_w_gl			= g36k_draw_w_gl, idle_w_gl, 0.9
anm_hide_w_gl			= g36k_holster_w_gl, idle_w_gl
anm_idle_w_gl			= g36k_idle_w_gl, idle_w_gl
anm_shots_w_gl			= g36k_shoot_w_gl, shoot_w_gl
anm_reload_w_gl			= g36k_reload_empty_w_gl, reload_empty_w_gl	;g36k_reload_w_gl, reload_w_gl
;anm_reload_empty_w_gl	= g36k_reload_empty_w_gl, reload_empty_w_gl
anm_idle_w_gl_aim		= g36k_idle_aim_w_gl, idle_w_gl
anm_idle_sprint_w_gl	= g36k_idle_sprint_w_gl, idle_w_gl
anm_idle_moving_w_gl	= g36k_idle_moving_w_gl, idle_w_gl
anm_idle_moving_walk_w_gl	= g36k_idle_moving_w_gl, idle_w_gl, 0.85
anm_idle_moving_w_gl_aim	= g36k_idle_aim_w_gl, idle_w_gl;		g36k_idle_moving_w_gl, idle_w_gl, 0.85
;anm_bore_w_gl			= g36k_idle_aim_w_gl, idle_w_gl

anm_show_g				= g36k_draw_grenade, idle_grenade, 0.9
anm_hide_g				= g36k_holster_grenade, idle_grenade
anm_idle_g				= g36k_idle_grenade, idle_grenade
anm_reload_g			= g36k_reload_grenade, reload_grenade, 0.95
anm_idle_g_aim			= g36k_idle_grenade, idle_grenade	;g36k_idle_aim_grenade
anm_shots_g				= g36k_shoot_grenade, shoot_grenade
anm_idle_sprint_g		= g36k_idle_sprint_grenade, idle_grenade
anm_idle_moving_g		= g36k_idle_moving_grenade, idle_grenade
anm_idle_moving_walk_g	= g36k_idle_moving_grenade, idle_grenade, 0.85
anm_idle_moving_g_aim	= g36k_idle_moving_grenade, idle_grenade, 0.85
;anm_bore_g				= g36k_idle_aim_grenade, idle_grenade

; additional parameters: #p1, #p2
prm_idle_sprint			= 0			; disable sprint offset wo gl
; motion marks
mrk_show				= 0.65
mrk_show_w_gl			= 0.65
mrk_show_g				= 0.65
mrk_reload				= 0.48, 0.9
mrk_reload_w_gl			= 0.48, 0.9
mrk_reload_g			= 0.65, 0.98
; move sync
syn_idle_sprint			= 0.05
syn_idle_sprint_w_gl	= 0.05
syn_idle_sprint_g		= 0.05