[wpn_pkm]:weapon_base
$spawn					= "weapons\pkm"			; option for Level Editor
$npc					= on					; option for Level Editor
$prefetch				= 8

class					= WP_AK74
description				= st_wpn_rp_descr

ef_main_weapon_type		= 2
ef_weapon_type			= 6

;-------------------------------------------------------
cost					= 11000
weapon_class			= assault_rifle		; Type of the weapon
inv_weight				= 7.5
inv_volume				= 16

;upgrades				= up_gr_firstab_pkm, up_gr_seconab_pkm, up_gr_thirdab_pkm, up_gr_fourtab_pkm, up_gr_fifthab_pkm
;installed_upgrades		=
;upgrade_scheme			= upgrade_scheme_pkm

sprint_coeff			= 0.35

;--TTX----------------------------------------------------------------------------
hit_power				= 1.0
hit_impulse				= 1.0
fire_distance			= 1.0
bullet_speed			= 1.0

rpm						= 525

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

hud						= wpn_pkm_hud

;увеличение дисперсии в процентах при максимальном износе
fire_dispersion_condition_factor = 6
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.65
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.1
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob			= 0.007
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.05
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.00035
;увеличение изношености при выстреле очередью
condition_queue_shot_dec	= 0.00029

ammo_elapsed			= 100
ammo_mag_size			= 100

ammo_class				= class_762
ammo_reference			= ammo_pkm_100
fire_modes				= 1, -1

hand_dependence			= 1
single_handed			= 0

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

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

;отдача
cam_return				= 0
cam_relax_speed			= 15			;скорость возврата в исходное положение
cam_relax_speed_ai		= 20			;скорость возврата в исходное положение у АИ
cam_dispersion			= 0.33			;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc		= 0.23			;увеличениe cam_dispersion с каждым выстрелом
cam_dispersion_frac		= 1.0			;ствол будет подыматься на cam_dispersion*cam_dispersion_frac +- cam_dispersion*(1-cam_dispersion_frac)
cam_max_angle			= 10.0			;максимальный угол отдачи
cam_max_angle_horz		= 50.0			;(degree) maximum shot horizontal degree
cam_step_angle_horz		= 1.65			;(degree) size of step camera moved in horizontal position while shooting

;---DOF------------------------------------------------------------------------
;zoom_dof				= 0.5, 1.0, 180
;reload_dof				= 0.0, 0.5, 5, 1.7
;-------------------------------------------------------------------------------
holder_range_modifier	= 1.2			; во сколько раз увеличивается eye_range
holder_fov_modifier		= 0.7			; во сколько раз увеличивается eye_fov

min_radius				= 30
max_radius				= 120

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

inv_name			= st_wpn_rp
inv_name_short		= st_wpn_rp

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

;upgr_icon_x			= 8
;upgr_icon_y			= 593
;upgr_icon_width		= 294
;upgr_icon_height	= 83

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

;-------------------------------------------------------------------------------
position				= -0.027, -0.097, 0.022
orientation				= 0, -2.5, 0

fire_point				= 0.0, 0.168, 0.753

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\762x54l

;--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_pkm\wpn_pkm

light_disabled			= false
light_color				= 1.0,0.83,0.51			; params for light during the fire
light_range				= 9						; radius
light_var_color			= 0.1
light_var_range			= 1.0
light_time				= 0.2

ph_mass					= 4

;addons
scope_status			= 0
silencer_status			= 0
grenade_launcher_status	= 0

zoom_enabled			= true		; (on,off)zoom mode (right mouse button)
aim_zoom_factor			= 55
zoom_rotate_time		= 0.6
zoom_hold_speed			= 0.75

;звуки
snd_draw				= weapons\pkm\pkm_draw, 1, 0.2
snd_holster				= weapons\pkm\pkm_holster, 1, 0.05
snd_shoot				= weapons\pkm\pkm_shoot
snd_empty				= weapons\pkm\pkm_empty,	0.5
snd_reload				= weapons\pkm\pkm_reload
snd_reload_misfire		= weapons\pkm\pkm_misfire



[wpn_pkm_hud]:hud_base_wpn
item_visual				= dynamics\weapons\wpn_pkm\wpn_pkm_hud

aim_inertion_offset		= 0.04
aim_inertion_roll		= 0.2
aim_inertion_speed		= 10
inertion_move			= 0.5, 1.1, -0.5, 1.0

lean_dist				= 0.3, 1.2
lean_dist_aim			= 0.3, 1.1
lean_dist_reload		= 0.3, 1.2

hands_position			= -0.064,-0.18,0.14
hands_orientation		= 2,2,0

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

hud2world_trans_pos		= 0,-0.056,0

aim_hud_offset_pos		= -0.0961,0.05345,-0.1
aim_hud_offset_rot		= 0.03895,0.0352,0.0

reload_hud_offset_pos	= 0,0.0165,-0.0500
reload_hud_offset_rot	= 0.0575,0,0

lean_hud_offset_pos		= 0.5045,-0.0860,0.0280
lean_hud_offset_rot		= -0.0650,-0.9513,0.0000

custom_hud_offset_rot	= 0.07,0,0

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

fire_point				= 0,0,0
fire_bone				= muzzle

anm_show				= pkm_draw, 0.6
anm_hide				= pkm_holster, 0.75			;DUR 1.07
anm_idle				= pkm_idle
anm_idle_sprint			= pkm_idle_sprint
anm_idle_moving			= pkm_idle_moving
anm_idle_moving_walk	= pkm_idle_moving, 0.85
anm_idle_moving_aim		= pkm_idle_moving, 0.85
anm_shots				= pkm_shoot, shoot
anm_reload				= pkm_reload, reload
anm_reload_misfire		= pkm_misfire, misfire
anm_idle_aim			= pkm_idle_aim
;anm_bore				= pkm_idle_aim

; additional parameters
prm_reload				= 8|0.9
prm_show				= 9|0.2
prm_hide				= 9|1

mrk_show				= 0.6
mrk_reload				= 0.53, 0.96
mrk_reload_misfire		= 0.4, 0.85