; Пистолет-пулемет Heckler-Koch MP5A3
;-(TrickSR)-----------------------------------------
; калибр 							9х19 мм
; длина ствола 						225 мм
; магазин							30
; вес без магазина					3.08
; максимальная дальность стрельбы	810 м
; эффективная дальность стрельбы	25-100 м
; прицельная дальность				---
; дульная скорость пули				400 м/с
; темп стрельбы						800 в/м
;---------------------------------------------------

[wpn_mp5]:weapon_probability,default_weapon_params,wpn_mp5_sounds
GroupControlSection 				= spawn_group
$spawn								= "weapons\mp5"			; option for Level Editor
$npc								= on					; option for Level Editor
$prefetch							= 8
scheduled							= off					; option for ALife Simulator
cform								= skeleton
class								= WP_LR300
description 						= st_wpn_mp5_descr

ef_main_weapon_type					= 2
ef_weapon_type						= 6

;-------------------------------------------------------------------------------
inv_name							= st_wpn_mp5			; name in inventory
inv_name_short						= st_wpn_mp5

inv_grid_width						= 3
inv_grid_height						= 1
inv_grid_x							= 5
inv_grid_y							= 11

upgr_icon_x							= 561
upgr_icon_y							= 129
upgr_icon_width						= 292
upgr_icon_height 					= 114

kill_msg_x							= 72
kill_msg_y							= 82
kill_msg_width						= 56
kill_msg_height						= 23

;-------------------------------------------------------------------------------
cost								= 3600					; the price of the item
weapon_class						= assault_rifle			; the type of the box that will be used in buy-menu in multiplayer mode
inv_weight							= 3.08
hud									= wpn_mp5_hud
visual								= dynamics\weapons\wpn_mp5\wpn_mp5.ogf

upgrades							= up_gr_firstab_mp5, up_gr_seconab_mp5, up_gr_thirdab_mp5, up_gr_fourtab_mp5, up_gr_fifthab_mp5, up_gr_fifthcd_mp5
installed_upgrades					=
upgrade_scheme						= upgrade_scheme_mp5

ph_mass								= 4

;-------------------------------------------------------------------------------
ammo_class							= ammo_9x19_fmj, ammo_9x19_pbp

startup_ammo						= 90
ammo_current		 				= 180
ammo_elapsed		 				= 30
ammo_limit		 					= 210
ammo_mag_size		 				= 30

fire_modes							= 1, 3, -1

grenade_class						= ammo_vog-25			; name of the ltx-section of used grenades

launch_speed						= 0
hand_dependence						= 1
single_handed						= 0

;-TTX---------------------------------------------------------------------------
;hit_power							= 0.50, 0.50, 0.50, 0.50
;hit_impulse						= 10					; size of physic impulse by bullet
hit_type							= fire_wound			; [] type of the wound
fire_distance						= 810					; maximum fire distance that bullet can fly
bullet_speed						= 400					; starting bullet speed
rpm									= 800
rpm_empty_click						= 200

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

misfire_probability					= 0.005					; вероятность осечки при максимальном износе !!!old - now not working
misfire_start_condition				= 0.6					; изношенность, при которой появляется шанс осечки
misfire_end_condition				= 0.1					; изношеность при которой шанс осечки становится константным
misfire_start_prob	 				= 0.004					; шанс осечки при изношености больше чем misfireStartCondition
misfire_end_prob	 				= 0.057					; шанс осечки при изношености больше чем misfireEndCondition
condition_shot_dec 					= 0.00025				; увеличение изношености при одиночном выстреле
condition_queue_shot_dec			= 0.0005				; увеличение изношености при выстреле очередью

;-DOF---------------------------------------------------------------------------
zoom_dof							= 0.5, 1.0, 180
reload_dof							= 0.0, 0.5, 5, 2

;-дисперсия---------------------------------------------------------------------
fire_dispersion_base				= 0.32					; угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
fire_dispersion_condition_factor	= 9						; увеличение дисперсии в процентах при максимальном износе
control_inertion_factor				= 1.1f
crosshair_inertion 					= 4.35

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

zoom_cam_relax_speed				= 10					; scope & ironsight
zoom_cam_relax_speed_ai				= 120.75
zoom_cam_dispersion					= 0.5
zoom_cam_dispersion_inc				= 0.25
zoom_cam_dispersion_frac			= 1.0
zoom_cam_max_angle					= 50.0
zoom_cam_max_angle_horz				= 50.0
zoom_cam_step_angle_horz			= 1.5

PDM_disp_base 						= 0.5
PDM_disp_vel_factor 				= 1.5
PDM_disp_accel_factor 				= 1.5
PDM_disp_crouch	 					= 1.0
PDM_disp_crouch_no_acc 				= 1.0

;- for AI ----------------------------------------------------------------------
min_radius							= 30
max_radius							= 40

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

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

position							= -0.026, -0.125, -0.03
orientation							= 0, -10, 0

fire_point							= 0.0, 0.188, 0.392
fire_point2							= 0.0, 0.188, 0.392

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

shell_point							= 0.0, 0.188, 0.082
shell_dir							= 0.0, 1.0, 0.0
shell_particles						= weapons\generic_shells

;-STRAP PARAMETERS--------------------------------------------------------------
;на плечо (подмышка)
strap_position 						= -0.16,-0.36,0.15		; 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

light_disabled						= false
light_color							= 0.6,0.5,0.3
light_range							= 5
light_var_color						= 0.05
light_var_range						= 0.5
light_time							= 0.2

;-addons------------------------------------------------------------------------
scope_status						= 0						; 0 - no addon
silencer_status						= 2						; 1 - permanent
grenade_launcher_status				= 0						; 2 - attachable

zoom_enabled						= true					; (on,off)zoom mode (right mouse button)
zoom_rotate_time					= 0.25
scope_zoom_factor					= 50					; fov for zoom mode

scope_name							= wpn_addon_scope		; section name for the attachable scope
scope_x 							= 47					; offset in inventory icon
scope_y								= 0

grenade_launcher_name				= 
grenade_launcher_x					= 
grenade_launcher_y					= 

silencer_name						= wpn_addon_silencer	; section name for the attachable silencer
silencer_x							= 130					; offset in inventory icon
silencer_y							= -13

;silencer_hit_power 				= 0.45, 0.45, 0.45, 0.45
;silencer_hit_impulse			 	= 10
silencer_fire_distance 				= 430
silencer_bullet_speed	 			= 290

;silencer_flame_particles			= weapons\generic_weapon01
silencer_smoke_particles			= weapons\generic_shoot_00

silencer_light_color				= 0.6,0.5,0.3
silencer_light_range				= 0.01
silencer_light_var_color			= 0.05
silencer_light_var_range			= 0.5
silencer_light_time					= 0.2

[wpn_mp5_hud]:hud_base
zoom_hide_crosshair					= true

attach_place_idx					= 0
item_visual							= dynamics\weapons\wpn_mp5\wpn_mp5_hud.ogf

hands_position						= -0.106500, -0.162000,  0.113001
hands_orientation					= -6.700007, -0.800001, -5.400002

hands_position_16x9					= -0.100500, -0.191500,  0.135500
hands_orientation_16x9				= -3.999999,  3.199998, -6.000006

aim_hud_offset_pos					= -0.080500,  0.002200, -0.018000
aim_hud_offset_rot					= -0.036400, -0.032200,  0.007000

aim_hud_offset_pos_16x9				= -0.088900,  0.039000,  0.029000
aim_hud_offset_rot_16x9				=  0.032200,  0.014600, -0.017500

gl_hud_offset_pos 					=  0.000000,  0.000000,  0.000000
gl_hud_offset_rot 					=  0.000000,  0.000000,  0.000000

gl_hud_offset_pos_16x9 				=  0.000000,  0.000000,  0.000000
gl_hud_offset_rot_16x9 				=  0.000000,  0.000000,  0.000000

lean_hud_offset_pos					=  0.000000,  0.000000,  0.000000
lean_hud_offset_rot					=  0.000000,  0.000000,  0.000000

item_position						=  0.014173, -0.001619, -0.004513
item_orientation					=  4.899572,  0.078592, 366.138245

shell_point							= 0.021,0.099,0.286
shell_dir							= 0.0, 1.0, 0.0
shell_bone							= wpn_body

fire_point							= 0,0.068,0.439
fire_bone							= wpn_body
fire_point2							= -0.030000,0.074500,-0.037000
fire_bone2							= wpn_body

anm_show							= mp5_draw
anm_hide							= mp5_holster
anm_idle							= mp5_idle
anm_idle_sprint						= mp5_idle_sprint
anm_idle_moving						= mp5_idle_moving
anm_shots							= mp5_shoot
anm_reload							= mp5_reload
anm_idle_aim						= mp5_idle_aim
anm_bore							= mp5_idle_bore

;-----------------------------------------------------------------------------
; Уникальные
;-----------------------------------------------------------------------------
[wpn_mp5_nimble]:wpn_mp5,wpn_mp5_nimble_sounds
$spawn 								= "weapons\wpn_mp5_nimble"		; option for Level Editor
inv_name							= st_wpn_mp5_nimble
description							= st_wpn_mp5_nimble_descr

cost								= 5500

upgrades							= up_gr_firstab_mp5, up_gr_seconab_mp5, up_gr_thirdab_mp5, up_gr_fourtab_mp5, up_gr_fifthab_mp5
installed_upgrades					=
upgrade_scheme						= upgrade_scheme_mp5_nimble

ammo_elapsed						= 20
ammo_mag_size						= 20					; clip (magazine) size

fire_modes							= 1, 3, -1

ammo_class							= ammo_11.43x23_fmj, ammo_11.43x23_hydro

fire_distance						= 1200					; maximum fire distance that bullet can fly
bullet_speed						= 476					; starting bullet speed
rpm									= 700

fire_dispersion_base				= 0.26
cam_dispersion						= 0.75

silencer_fire_distance 				= 450