[wpn_fn_p90]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency		= 
$spawn				= "weapons\fn_P90"	; name and section in level editor
$npc				= on
$prefetch			= 8
scheduled			= off	; option for ALife Simulator
cform				= skeleton
class                   	= WP_LR300
min_radius			= 0
max_radius			= 150
description			= enc_weapons_wpn-fn_p90

ef_main_weapon_type		= 2
ef_weapon_type			= 6

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

cost				= 12000
weapon_class			= assault_rifle

ammo_limit			= 300
ammo_current			= 100
ammo_elapsed			= 50

ammo_mag_size			= 50

hand_dependence			= 1
single_handed			= 0

ammo_class			= ammo_5.7x28_fmj, ammo_5.7x28_ap
fire_modes			= 1, 3, -1

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

inv_name			= wpn-fn_p90
inv_name_short			= wpn-fn_p90
inv_weight			= 2.54

inv_grid_width			= 3
inv_grid_height			= 2
inv_grid_x			= 25
inv_grid_y			= 20

kill_msg_x			= 131
kill_msg_y			= 123
kill_msg_width			= 64
kill_msg_height			= 30

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

;отдача
cam_relax_speed			= 5.6	;скорость возврата в исходное положение
cam_dispersion			= 0.11	;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc		= 0.05	;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac		= 0.2	;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle			= 2.5	;максимальный угол отдачи
cam_max_angle_horz		= 9.0	;(degree) maximum shot horizontal degree 
cam_step_angle_horz		= 0.4	;(degree) size of step camera moved in horizontal position while shooting

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

direction			= 0, 0, 1

fire_point			= 0.01,0.1,0.24

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

shell_point			= -0.020000,0.186000,0.200000
shell_dir			= 0.0, 1.0, 0.0
shell_particles			= weapons\generic_shells
rpm_empty_click			= 200

PDM_disp_base			= 1.0
PDM_disp_vel_factor		= 1.05
PDM_disp_accel_factor		= 1.05
PDM_crouch			= 1.0
PDM_crouch_no_acc		= 1.0

; ttc
hit_power			= 0.71, 0.75, 0.78, 0.81
hit_impulse			= 20
hit_type			= fire_wound

fire_distance			= 600
bullet_speed			= 700	;начальная скорость пули
rpm				= 900
; end ttc

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

hud				= wpn_fn_p90_hud
normal				= 0, 1, 0
position			= -0.01, -0.06, 0.0
orientation			= 3, 1, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position			= -0.15,-0.35,0.27	; position (offset) and orientation of the weapon when it is strapped
strap_orientation		= -10,-3,10		; (3rd person view in degrees))
strap_bone0			= bip01_spine2
strap_bone1			= bip01_spine1

startup_ammo			= 1000
visual				= weapons\fn_P90\wpn_fn_p90.ogf

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


ph_mass				= 3

;addons
scope_status			= 0
silencer_status			= 2
grenade_launcher_status		= 0


silencer_name			= wpn_addon_p90_silencer
silencer_x			= 133 ;132		; offset in inventory icon
silencer_y			= 19 ;18

zoom_enabled			= true
scope_zoom_factor		= 50 ;90		; fov for zoom mode

;звуки
snd_draw			= weapons\generic_draw, 0.5
snd_holster			= weapons\generic_holster, 0.5
snd_shoot			= weapons\t_groza_shot, 0.9
snd_empty			= weapons\gen_empty, 0.5
snd_reload			= weapons\fn2000_reload, 0.7, 0.3

;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

snd_silncer_shot		= weapons\w_ak74_shot1, 0.6

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

silencer_hit_power       	= 0.61
silencer_hit_impulse	 	= 10
silencer_fire_distance   	= 350
silencer_bullet_speed	 	= 550


[wpn_fn_p90_hud]
shell_point			= 0.11,-0.06,0.01
shell_dir			= 0.0, 1.0, 0.0

fire_point			= -0.17,0.0,-0.04
fire_bone			= wpn_body

orientation			= 0, 0, 0
position			= 0, 0.03, 0
visual				= weapons\fn_P90\wpn_fn_P90_hud.ogf

anim_idle			= idle
anim_idle_aim			= idle_aim
anim_reload			= reload
anim_draw			= draw
anim_holster			= holster
anim_shoot			= shoot
anim_idle_sprint		= idle_sprint

;смещения HUD для режима приближения
zoom_offset			= -0.189,0.067,-0.0651
zoom_rotate_x			= 0.07
zoom_rotate_y			= 0.035

zoom_hide_crosshair		= true