;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[wpn_bizon]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
$spawn              	= "weapons\bizon"	; name and section in level editor
$npc					= on				
$prefetch 				= 8
scheduled				= off               ;[] option for ALife Simulator
cform               	= skeleton
class               	= WP_LR300
min_radius          	= 1			
max_radius          	= 100
description				= enc_weapons1_wpn-bizon

ef_main_weapon_type		= 2
ef_weapon_type			= 6

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

upg = nil
upg_last = nil

cost					= 10000
weapon_class			= assault_rifle		
	
ammo_limit				= 210
ammo_elapsed			= 64	
	
ammo_mag_size			= 64	
fire_modes				= 1, 3, -1

ammo_class				= ammo_9x18_fmj, ammo_9x18_pmm

hand_dependence			= 1
single_handed			= 0
	
slot 					= 2
animation_slot			= 2  ;8

inv_name	        	= "Бизон 2"
inv_name_short			= "Бизон 2"
inv_weight			= 2.1

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

kill_msg_x	= 0
kill_msg_y	= 28
kill_msg_width	= 84
kill_msg_height	= 28

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

;отдача
cam_relax_speed         		= 5.5; 8.5; 0.15		;скорость возврата в исходное положение
cam_dispersion          		= 0.15		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc			= 0.13		;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac			= 0.39		;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle				= 5.0	    	;максимальный угол отдачи
cam_max_angle_horz			= 8.0		;(degree) maximum shot horizontal degree 
cam_step_angle_horz			= 0.5;1		;(degree) size of step camera moved in horizontal position while shooting

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

fire_point             		=  0,0.235,0.434			; position (3rd person view) for particles of fire 

flame_particles				= weapons\generic_weapon05
smoke_particles				= weapons\generic_shoot_00

shell_point		 			= 0,0.216,0.174
shell_particles	 			= weapons\arsenal_shells1  ;shell_particles	 			= weapons\generic_shells	; 

PDM_disp_base 				= 1.0
PDM_disp_vel_factor 		= 1.3
PDM_disp_accel_factor 		= 1.3
PDM_crouch	 				= 1.0
PDM_crouch_no_acc 			= 1.0

; ttc
hit_power                	=  0.66
hit_impulse		 			= 54
hit_type 					= fire_wound
hit_rate	        = 1.85
fire_distance            	= 120
bullet_speed				= 340
rpm                      	= 680

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


silencer_hit_power       	= 0.63
silencer_hit_impulse	 	= 120
silencer_fire_distance   	= 100
silencer_bullet_speed	 	= 450

hud                      	= wpn_bizon_hud

position         	        = -0.026,-0.172,0
orientation      	        = 0,0,0	

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position         		= -0.16,-0.40,0.15
strap_orientation      		= -10,-5,10
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1

visual         		        = weapons-new\bizon\wpn_bizon.ogf

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						
ph_mass						= 5

;addons
scope_status				= 2
silencer_status				= 2
grenade_launcher_status		= 0

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

scope_name 					= wpn_tulip_scope			; section name for the attachable scope
scope_x 					= 79						; offset in inventory icon
scope_y 					= 10
silencer_name  				= wpn_addon_silencer		; section name for the attachable silencer
silencer_x 					= 205						; offset in inventory icon
silencer_y 					= 16					

;sounds (name of the sound, volume (0.0 - 1.0), delay (sec))

snd_draw					= weapons-new\bizon\draw, 0.5
snd_holster					= weapons\generic_holster, 0.3
snd_shoot					= weapons-new\bizon\shoot	
snd_empty					= weapons\gen_empty, 0.5
snd_reload					= weapons-new\bizon\reload, 0.4
snd_silncer_shot		    = weapons-new\bizon\bizon_sil_shot

;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


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

shell_point     	   	 	= 0.04,0,-0.7
shell_dir			     	= 0.0, 1.0, 0.0

fire_point					= 0,-0.015,-0.6

fire_bone               	= muzzle

orientation             	= 0, 1, 0 
position                	= 0.1,-0.04,-0.01

visual                  	= weapons-new\bizon\wpn_bizon_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.10,0.023,-0.1
zoom_rotate_x		= 0 
zoom_rotate_y		= 0
;прячем перекрестие прицела в зуме
zoom_hide_crosshair	= true

;----------------------------------------------------------------------------
;-- УНИК
;----------------------------------------------------------------------------

[wpn_bizon_kol]:wpn_bizon
description				= "Модификация пистолета-пулемета «Бизон ПП-19» под патрон 9х19 мм. Парабеллум. Ёмкость магазина - 53 патрона. Оснащён коллиматорным прицелом «Кобра-ЭКП-1С-03»"
ammo_mag_size			= 53
ammo_class				= ammo_9x19_fmj, ammo_9x19_pbp

cost					= 20000
--------------------;иконка;--------------------
inv_grid_width			= 5
inv_grid_height			= 2
inv_grid_x				= 36
inv_grid_y				= 4
-------------------------------------------------

inv_name	        	= "Бизон 2-01"
inv_name_short			= "Бизон 2-01"
inv_weight			= 2.7 
hit_power                	=  0.75
hit_impulse		= 65	
fire_distance            	= 120
bullet_speed		= 480
rpm                      	= 750
hud                      	= wpn_bizon_kol_hud
visual                  	= weapons-new\bizon\wpn_bizon_kol.ogf
scope_status				= 0

;отдача
cam_relax_speed         		= 6.5; 8.5; 0.15	
cam_dispersion          		= 0.2
cam_dispersion_inc			= 0.15
cam_dispertion_frac			= 0.42
cam_max_angle				= 6.0

[wpn_bizon_kol_hud]:wpn_bizon_hud
shell_point     	   	 	= 0.04,0,-0.7
shell_dir			     	= 0.0, 1.0, 0.0
fire_point					= 0,-0.015,-0.6
fire_bone               	= muzzle
orientation             	= 0, 1, 0 
position                	= 0.1,-0.04,-0.01
visual                  	= weapons-new\bizon\wpn_bizon_kol_hud.ogf
zoom_offset			= -0.1005,0.002,-0.1 
zoom_rotate_x		= -0.0
zoom_rotate_y		= 0.00025

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;	WEAPON ADDON
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[wpn_tulip_scope]:identity_immunities
GroupControlSection	= spawn_group
discovery_dependency = 
$spawn			= "weapons\addons\scope" ; option for Level Editor
class			= WP_SCOPE
cform           = skeleton
visual          = weapons\upgrade\wpn_scope.ogf
$prefetch 		= 32
description		= "Унифицированный стрелковый прицел УСП-1 (индекс ГРАУ - 1П29) предназначен для ведения прицельной стрельбы из пистолета-пулемета "Бизон" в светлое время суток и ночью по светящимся и подсвечиваемым целям."
cost			= 200

holder_range_modifier	= 1.2
holder_fov_modifier		= 0.3

inv_name		= "УСП-1 "Тюльпан"
inv_name_short	= "УСП-1 "Тюльпан"
inv_weight		= .8

inv_grid_width		= 1
inv_grid_height		= 1
inv_grid_x			= 51
inv_grid_y			= 49
scope_texture		= wpn\wpn_crosshair_1p21
scope_zoom_factor	= 20		;ПСО-1 2X
