; Армейский пистолет Colt M1911
;-(правлено SR)-------------------------------------
; калибр 				11.43x23 мм
; длина ствола 				127 мм
; магазин				15
; вес без магазина			1.105
; эффективная дальность стрельбы	62 м
; прицельная дальность			---
; дульная скорость пули			285 м/с
; темп стрельбы				30 в/с
;---------------------------------------------------
[wpn_colt1911]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency 		= 
$spawn 				= "weapons\colt1911"	; option for Level Editor
$npc				= on			; option for Level Editor
$prefetch 			= 8
scheduled 			= off			; option for ALife Simulator
cform 				= skeleton
class 				= WP_PM
min_radius 			= 1
max_radius 			= 10
description			= enc_weapons1_wpn-colt1911

ef_main_weapon_type		= 0
ef_weapon_type			= 5

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

upg = nil
upg_last = nil

cost				= 2200

ammo_limit			= 120
ammo_current			= 120
ammo_elapsed			= 7
ammo_mag_size			= 7

ammo_class			= ammo_11.43x23_hydro, ammo_11.43x23_fmj

hand_dependence			= 1
single_handed			= 1

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

inv_name			= wpn-colt1911
inv_name_short			= wpn-colt1911
inv_weight					= 1.1

inv_grid_width				= 2
inv_grid_height				= 1
inv_grid_x					= 16
inv_grid_y					= 7

;спавнить автоматически боеприпасы при подъеме оружия
;auto_spawn_ammo		= false

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

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

fire_dispersion_condition_factor= 5		;увеличение дисперсии в процентах при максимальном износе 
misfire_probability 		= 0.001		;вероятность осечки при максимальном износе 
misfire_condition_k		= 0.05
condition_shot_dec		= 0.00125 	;увеличение износа при каждом выстреле
;-----------------------------------------------------------------------------------

direction           	        = 0, 0, 1
fire_point               	= 0.0, 0.217, 0.155
flame_particles		 	= weapons\generic_weapon03
smoke_particles		 	= weapons\generic_shoot_00

shell_point		 	= 0.0, 0.222, 0.044
shell_dir		 	= 0.0, 0.0, 0.4
shell_particles	 		= weapons\generic_shells

PDM_disp_base 			= 1.0
PDM_disp_vel_factor 		= 1.4
PDM_disp_accel_factor 		= 1.6
PDM_crouch	 		= 0.8
PDM_crouch_no_acc 		= 0.6

; ttc
hit_power 			= 0.65
hit_impulse		 	= 94
hit_type 			= fire_wound

fire_distance 			= 62
bullet_speed			= 285		;начальная скорость пули
rpm 				= 200
rpm_empty_click 	 	= 100
; end ttc

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

hud 				= wpn_colt1911_hud
normal 				= 0, 1, 0
position                 	= -0.026,-0.172,0.0
orientation 			= 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
;strap_position 		= -0.1, -0.45, 0.2	; position (offset) and orientation of the weapon when it is strapped
;strap_orientation 		= 1.57,0,0		; (3rd person view)
;strap_bone0			= bip01_spine2
;strap_bone1			= bip01_spine1

visual 				= weapons\colt1911\wpn_colt1911.ogf

light_color		 	= 0.6, 0.5, 0.3
light_range		 	= 3.0
light_var_color		 	= 0.05
light_var_range		 	= 0.5
light_time 		 	= 0.2

ph_mass			 	= 1

;addons
scope_status			= 0
silencer_status			= 2
grenade_launcher_status		= 0

zoom_enabled			= true
scope_zoom_factor	 	= 55

;глушитель
silencer_name 			= wpn_addon_silencer		; section name for the attachable silencer
silencer_x 			= 62				; offset in inventory icon
silencer_y 			= -15					

;sounds (name of the sound, volume (0.0 - 1.0), delay (sec))
snd_draw					= weapons\draw
snd_holster					= weapons\holster
snd_shoot					= weapons\colt\shot
snd_empty					= weapons\empty
snd_reload					= weapons\colt\reload
snd_close					= weapons\holster
snd_silncer_shot				= weapons\silshot\762mm-1

;params when silencer is attached 
;similar to corresponding params without prefix silencer_

;silencer_flame_particles 	= weapons\generic_weapon01
silencer_smoke_particles 	= weapons\generic_shoot_00

silencer_hit_power 		= 0.588, 0.588, 0.588, 0.588
silencer_hit_impulse	 	= 64
silencer_fire_distance 		= 57
silencer_bullet_speed	 	= 271

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

;-----------------------------------------------------------------------------
;-- HUD DESCRIPTION
;-----------------------------------------------------------------------------
[wpn_colt1911_hud]
allow_inertion			= true

shell_point				= 0,0,-0.5
shell_dir		 		= 0.0, 1.0, 0.0
fire_point				= 0.000000,0.000000,-0.500000
fire_bone                	= muzzle
orientation              	= 0,0,0
position                	= 0.10,-0.06,0.01

visual                   	= weapons\colt1911\wpn_colt1911_hud.ogf

anim_holster			= holster
anim_idle				= idle
anim_empty				= empty
anim_reload				= reload_full
anim_reload_empty			= reload
anim_draw				= draw
anim_draw_empty			= draw_empty
anim_shoot				= shoot
anim_shot_last			= shoot_last
anim_close				= holster
anim_idle_aim			= idle_aim
anim_idle_sprint			= idle_sprint

;смещения HUD для режима приближения
zoom_offset					= -0.10,0.06,0.0
zoom_rotate_x				= 0.0
zoom_rotate_y				= 0.0

;-----------------------------------------------------------------------------
;прячем перекрестие прицела в зуме
zoom_hide_crosshair		= true

;время поворота HUD (сек)
zoom_rotate_time			= 0.2
rotate_time				= 0.2
