[wpn_desert_eagle]:weapon_base
GroupControlSection			= spawn_group
$spawn						= "weapons\Desert Eagle"
$npc						= on
$prefetch					= 8

class						= WP_PM
min_radius					= 5
max_radius					= 30
description					= enc_weapons1_wpn-desert-eagle

ef_weapon_type				= 5

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

cost						= 5000

ammo_mag_size				= 8
ammo_class					= class_1143


hand_dependence				= 1
single_handed				= 1

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

inv_name					= wp_desert_eagle
inv_name_short				= wp_desert_eagle
inv_weight					= 1.7
inv_volume					= 2

inv_grid_width				= 2
inv_grid_height				= 1
inv_grid_x					= 14
inv_grid_y					= 8

;kill_msg_x			= 194
;kill_msg_y			= 123
;kill_msg_width		= 46
;kill_msg_height		= 27

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

;parent dispersion modifiers
PDM_disp_base			= 0.6
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			= 7.0	;скорость возврата в исходное положение
cam_dispersion			= 4.0	;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc		= 0.0	;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac		= 0.8	;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle			= 40.0	;максимальный угол отдачи
cam_max_angle_horz		= 10.0	;(degree) maximum shot horizontal degree
cam_step_angle_horz		= 1.5	;(degree) size of step camera moved in horizontal position while shooting

;увеличение дисперсии в процентах при максимальном износе
fire_dispersion_condition_factor = 3
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.7
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.15
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob			= 0
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.2
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.0012
;-----------------------------------------------------------------------------------

fire_point					= -0.005000,0.130000,0.220000

flame_particles				= weapons\generic_weapon05
smoke_particles				= weapons\generic_shoot_00

shell_point					= 0.0, 0.133, 0.047
shell_dir					= 0.0, 0.0, 0.4
shell_particles				= weapons\45acp

; ttc
hit_power				= 1.25
hit_impulse				= 1.6
armor_piercing_k		= 1.25
bullet_speed			= 1.2
fire_distance			= 1.25

rpm						= 200
; end ttc

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

hud							= wpn_desert_eagle_hud
position					= -0.021, -0.09, -0.01
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						= dynamics\weapons\wpn_desert_eagle\wpn_desert_eagle

light_color					= 0.75,0.62,0.38
light_range					= 7.0
light_var_color				= 0.05
light_var_range				= 0.5
light_time					= 0.2

ph_mass						= 1

;addons
scope_status				= 0
silencer_status				= 0
grenade_launcher_status		= 0

zoom_enabled				= true
zoom_rotate_time			= 0.25
zoom_hold_speed				= 1.5

;Звуки
snd_draw					= weapons\deagle\de_draw
snd_holster					= weapons\pistol_holster
snd_shoot					= weapons\deagle\de_shoot
snd_shoot1					= weapons\deagle\de_shoot1
snd_empty					= weapons\deagle\de_empty
snd_reload					= weapons\deagle\de_reload
snd_reload_empty			= weapons\deagle\de_reload_empty
snd_close					= weapons\deagle\de_close
snd_silncer_shot			= weapons\deagle\de_shot_sil

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; silencer
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

;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_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_desert_eagle_hud]:hud_base_pistol
item_visual				= dynamics\weapons\wpn_desert_eagle\wpn_desert_eagle_hud

bobbing_factor			= 0

item_position			= 0.000746,-0.000321,0.003479
item_orientation		= 1.239378,-0.134046,-2.052052

aim_hud_offset_pos		= -0.0984,0.04805,-0.035
aim_hud_offset_rot		= 0.0151,0.0129,-0.01

shell_point				= 0,0,0
shell_bone				= gilza

fire_point				= 0,0,0
fire_bone				= muzzle

anm_show					= desert_eagle_draw
anm_show_empty				= desert_eagle_draw, desert_eagle_opened
anm_hide					= desert_eagle_holster
anm_hide_empty				= desert_eagle_holster, desert_eagle_opened
anm_idle					= desert_eagle_idle
anm_idle_empty				= desert_eagle_idle, desert_eagle_opened
anm_shots					= desert_eagle_shoot, 0.75
anm_shot_l					= desert_eagle_shoot, desert_eagle_shoot_last, 0.5
anm_idle_aim				= desert_eagle_idle_aim
anm_idle_aim_empty			= desert_eagle_idle_aim, desert_eagle_opened
anm_reload					= desert_eagle_reload
anm_reload_empty			= desert_eagle_reload_empty
anm_idle_moving				= desert_eagle_idle_moving
anm_idle_moving_walk		= desert_eagle_idle_moving, 0.85
anm_idle_moving_aim			= desert_eagle_idle_moving, 0.85

anm_idle_moving_empty			= desert_eagle_idle_moving, desert_eagle_opened
anm_idle_moving_walk_empty		= desert_eagle_idle_moving, desert_eagle_opened, 0.85
anm_idle_moving_aim_empty		= desert_eagle_idle_moving, desert_eagle_opened, 0.85
anm_idle_sprint					= desert_eagle_idle_sprint
anm_idle_sprint_empty			= desert_eagle_idle_sprint, desert_eagle_opened
;anm_bore						= desert_eagle_idle_aim
;anm_bore_empty					= desert_eagle_idle_aim, desert_eagle_opened

mrk_reload					= 0.7, 0.9
mrk_reload_empty			= 0.56, 0.85