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

class					= WP_SHOTG
description				= st_wpn_protecta_descr
ef_main_weapon_type		= 1
ef_weapon_type			= 7
weapon_class			= shotgun

;-----------------------------------------------------------------------------
cost					= 6000
inv_weight				= 4.2
inv_volume				= 7

;--TTX---------------------------------------------------------------------------
hit_power				= 1.0
hit_impulse				= 0.9
armor_piercing_k		= 0.95
fire_distance			= 0.9
bullet_speed			= 0.95

rpm						= 120	;155	;60 = 1 секунда

hud						= wpn_protecta_hud

;увеличение дисперсии в процентах при максимальном износе
fire_dispersion_condition_factor = 3.3
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.7
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.1
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob			= 0
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.2
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.0015
;увеличение изношености при выстреле очередью
condition_queue_shot_dec	= 0.0016

ammo_mag_size				= 12
ammo_class					= class_12_a
fire_modes					= 1

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

; модификаторы разброса для актора вне режима прицеливания
PDM_disp_base				= 0.5
PDM_disp_vel_factor			= 1.2
PDM_disp_accel_factor		= 2.0
PDM_disp_crouch				= 1.0
PDM_disp_crouch_no_acc		= 1.0

;отдача
cam_relax_speed			= 10	;скорость возврата в исходное положение
cam_dispersion			= 3.0	;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc		= 2.0	;увеличениe cam_dispersion с каждым выстрелом
cam_dispersion_frac		= 0.7
cam_max_angle			= 15.0	;максимальный угол отдачи
cam_max_angle_horz		= 15.0	;(degree) maximum shot horizontal degree
cam_step_angle_horz		= 3.0	;(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.0	; во сколько раз увеличивается eye_range
holder_fov_modifier		= 0.8	; во сколько раз увеличивается eye_fov

min_radius				= 0
max_radius				= 50

;-------------------------------------------------------------------------------
position				= -0.024, -0.097, 0.
orientation				= 0, -4, 0      ;значение устанавливается в градусах

shell_point				= 0.0, 0.115, -0.045
fire_point				= 0.0, 0.145, 0.525

hand_dependence			= 1
single_handed			= 0

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

inv_name				= st_wpn_protecta
inv_name_short			= st_wpn_protecta

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

;upgr_icon_x			= 0
;upgr_icon_y			= 909
;upgr_icon_width		= 297
;upgr_icon_height   	= 113

;kill_msg_x			= 258
;kill_msg_y			= 3
;kill_msg_width		= 94
;kill_msg_height		= 21

flame_particles			= weapons\generic_weapon05
smoke_particles			= weapons\generic_shoot_00
shell_particles			= weapons\12ga

;--STRAP PARAMETERS-----------------------------------------------------------------
;под мишкой
strap_position			= -0.26,-0.15,0.15			; 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_protecta\wpn_protecta

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

ph_mass					= 3

;addons
scope_status			= 0	;2
silencer_status			= 0
grenade_launcher_status	= 0
;scopes_sect				= scope_susat_proecta, scope_susat_x1.6_proecta, scope_susat_custom_proecta, scope_susat_dusk_proecta, scope_susat_night_proecta

zoom_enabled			= true		; (on,off)zoom mode (right mouse button)
zoom_rotate_time		= 0.25
zoom_hold_speed			= 1.5

scope_texture			= wpn_crosshair_l85

;scope_x					= 63
;scope_y					= -1

;звуки
snd_draw				= weapons\protecta\protecta_draw
snd_holster				= weapons\shotgun_holster
snd_shoot				= weapons\protecta\protecta_shoot, 1.6
snd_empty				= weapons\protecta\protecta_empty
snd_reload				= weapons\protecta\protecta_load
;snd_open_weapon		= $no_sound
snd_add_cartridge		= weapons\protecta\protecta_load
;snd_close_weapon		= $no_sound

[wpn_protecta_hud]:hud_base_wpn
item_visual					= dynamics\weapons\wpn_protecta\wpn_protecta_hud

bobbing_factor				= 1.1
lean_dist					= 0.25, 0.7
lean_dist_aim				= 0.25, 0.6
lean_dist_reload			= 0.25, 0.6

hands_position				= 0.0066,-0.0480,0.2495
hands_orientation			= 1.0650,-0.3900,0

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

hud2world_trans_pos			= 0,-0.03,0

aim_hud_offset_pos			= -0.0751,0.0214,-0.2044
aim_hud_offset_rot			= -0.0461,0.0172,0

reload_hud_offset_rot		= -0.0225,0.4050,-0.0000

lean_hud_offset_pos			= -0.0355,-0.4895,0.0365
lean_hud_offset_rot			= -0.9569,0.1228,0.0150

shell_point					= 0.0220,0.0560,0.0515
;shell_dir					= 0,1,0
shell_bone					= wpn_body

fire_point					= 0,0.0595,0.4815
fire_bone					= wpn_body

anm_show					= protecta_draw
anm_hide					= protecta_holster, 0.75			;DUR 0.66
anm_idle					= protecta_idle
anm_idle_aim				= protecta_idle_aim
anm_idle_moving				= protecta_idle_moving
anm_idle_moving_walk		= protecta_idle_moving, 0.85
anm_idle_moving_aim			= protecta_idle_aim
anm_idle_sprint				= protecta_idle_sprint
;anm_bore					= protecta_idle_bore
anm_shots					= protecta_shoot, shoot, 0.7
;anm_shots_when_aim			= protecta_shoot_scope, shoot
anm_open					= protecta_reload_start, reload_start, 1.25	;, 0.85
anm_add_cartridge			= protecta_reload, reload
anm_close					= protecta_reload_end, reload_end,0.5	;, 0.85

; additional parameters
prm_open					=	8
prm_add_cartridge			=	8
prm_close					=	8|0.1

mrk_hide					= 0.75
mrk_show					= 0.85
mrk_add_cartridge			= 0.2
mrk_close					= 0.62

syn_idle_moving				= 0.6
syn_idle_moving_walk		= 0.6
syn_idle_moving_aim			= 0.6
syn_idle_sprint				= 0.3
