;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[wpn_fal]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
$spawn              	= "weapons\fal"		; option for Level Editor
$npc					= on				; option for Level Editor
$prefetch 				= 8
scheduled				= off				; option for ALife Simulator
cform               	= skeleton
class               	= WP_AK74
min_radius          	= 0
max_radius          	= 100
description				= st_wpn_fnfal_descr

ef_main_weapon_type		= 2
ef_weapon_type			= 6

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


cost					= 7700
weapon_class			= assault_rifle	; Type of the weapon
	
ammo_limit				= 210
ammo_current			= 180
ammo_elapsed			= 30
	
ammo_mag_size			= 20
ammo_class				= ammo_7.62x51_ap, ammo_7.62x51_fmj
grenade_class			= ammo_m209
fire_modes				= 1, -1
f_mode				= 2

launch_speed			= 0
hand_dependence			= 1
single_handed			= 0	

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

inv_name	        	= wpn_fal
inv_name_short			= wpn_fal
inv_weight				= 4.45

inv_grid_width     = 6
inv_grid_height    = 2
inv_grid_x         = 54
inv_grid_y         = 9

kill_msg_x			= 80
kill_msg_y			= 59
kill_msg_width		= 87
kill_msg_height		= 24

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

;отдача
cam_relax_speed         		= 6 		;скорость возврата в исходное положение
cam_relax_speed_ai         		= 10
cam_dispersion          	= 0.78		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc			= 0.59		;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac			= 0.85	;0.000001	;0.85		;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle					= 18.0		;максимальный угол отдачи
cam_max_angle_horz				= 15.0		;(degree) maximum shot horizontal degree 
cam_step_angle_horz				= 1.35	;0.18		;(degree) size of step camera moved in horizontal position while shooting

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

direction              		=  0, 0, 1
fire_point			= 0.000000,0.137000,0.722
fire_point2            		=  0.0, 0.097, 0.722

flame_particles				= weapons\generic_weapon05
smoke_particles				= weapons\generic_shoot_00
grenade_flame_particles		= weapons\generic_weapon01
	
shell_point			= -0.020000,0.177000,0.098000
shell_dir		 			= 0.0, 0.0, 0.4
shell_particles	 			= weapons\arsenal_shells1

rpm_empty_click 	 		= 200

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

; ttc
hit_power        			= 0.51
hit_impulse		 			= 40
hit_type 					= fire_wound
hit_rate	= 1.95

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

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

hud                      	= wpn_fal_hud
normal                   	= 0, 1, 0

;----------------------------------------------------------
position         	        = -0.026, -0.097, 0.0
orientation      	        = 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
;под мишкой
strap_position         		= -0.26,-0.11,0.25			; 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

startup_ammo   		        = 90
visual         		        = weapons\fal\wpn_fal.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						= 4
;cost						= 2100

;addons
scope_status				= 2
silencer_status				= 2
grenade_launcher_status		= 0

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

;zoom_enabled				= true
;scope_zoom_factor	    	= 15		;SUSAT 4X
;scope_texture				= wpn\wpn_crosshair_l85

scope_name 					= wpn_addon_doster ;wpn_addon_scope_susat
scope_x 					= 66
scope_y 					= 7
silencer_name  				= wpn_addon_silencer ;wpn_addon_sil_762_ar
silencer_x 					= 248
silencer_y 					= 15
grenade_launcher_name 		= wpn_addon_grenade_launcher_m203
grenade_launcher_x 			= 138
grenade_launcher_y 			= 31

;звуки
snd_draw                = weapons\ak74_draw
snd_holster             = weapons\generic_holster
snd_shoot		= weapons\fal\ar_fnfal_shot
snd_empty					= weapons\fal\empty
snd_reload              	= weapons\fal\reload
snd_shoot_grenade			= weapons\gen_grenshoot
snd_reload_grenade      = weapons\sig550_grenload
snd_switch					= weapons\groza_switch, 1.0, 0.5


;настройки для глушителя
silencer_hit_power       	= 0.56
silencer_hit_impulse	 	= 110
silencer_fire_distance   	= 170
silencer_bullet_speed	 	= 515

;silencer_flame_particles 	= weapons\generic_weapon01
silencer_smoke_particles 	= weapons\generic_shoot_00

snd_silncer_shot        = weapons\sil\sil_ar_fnc

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

 
[wpn_fal_hud]

shell_point			= 0.120000,0.000000,0.070000
shell_dir			     	= 0.0, 1.0, 0.0

fire_point			= -0.000000,0.062000,0.134000
fire_point2              	= 0.30, 0.00, 0.05
fire_bone               	= wpn_body
orientation             	= -0.050000,1.20090,-0.000000
position                	=  -0.053000,-0.139400,0.121000 
visual                  	= weapons\fal\wpn_fal_hud.ogf

grenade_bone = grenade

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
anim_idle_bore = idle_bore
anim_idle_move = idle_bore

;анимации с подключенным подствольником
;(режим стрельбы из подствольника)
anim_idle_g = idle
anim_idle_g_aim = idle
anim_reload_g = idle
anim_shoot_g = idle
anim_switch_grenade_on = idle
anim_switch_grenade_off = idle
anim_draw_g = idle
anim_holster_g = idle

;(режим обычной стрельбы)
anim_idle_gl = idle
anim_idle_gl_aim = idle
anim_reload_gl = idle
anim_draw_gl = idle
anim_holster_gl = idle
anim_shoot_gl = idle
			
;смещения HUD для режима приближения
zoom_offset			= -0.1090, 0.036900, -0.000000
zoom_rotate_x		= 0.012
zoom_rotate_y		= 0.0155

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

;тоже самое, но для прицепленого подствольника
;режим обычной стрельбы
zoom_offset			= -0.1090, 0.036900,-0.000000
zoom_rotate_x		= 0.012
zoom_rotate_y		= 0.0155

zoom_hide_crosshair	= true						;to hide crosshair in zoom 


grenade_normal_zoom_offset			= -0.121800,0.036900,-0.000000
grenade_normal_zoom_rotate_x		= 0.042200
grenade_normal_zoom_rotate_y		= 0.040000

; same as above, but for attached grenade launcher for
; in GRENADE mode

grenade_zoom_offset			= 0,0,0 ;-0.039600,-0.433100,0.000000
grenade_zoom_rotate_x		= 0;-0.538700
grenade_zoom_rotate_y		= -0.033800

[wpn_addon_doster]:identity_immunities
GroupControlSection	= spawn_group
discovery_dependency = 
$spawn			= "weapons\addons\scope_doster" ; option for Level Editor
class			= WP_SCOPE
cform           = skeleton
visual          = weapons\upgrade\wpn_addon_scope_doster.ogf
$prefetch 		= 32
description		= "Leupold FX-II 6x36 mm tбvcsх (FN FAL-hoz): Kivбllу minхsйgы, robosztus felйpнtйsы fix nagyнtбsъ tбvcsх, amely nagy pontossбgot йs legendбsan tiszta йs vilбgos kйpet biztosнt a hasznбlуjбnak. Garantбlja ezt a Leupold sajбt fejlesztйsы bevonattal ellбtott, kivбlу fйnyбteresztх kйpessйgы йs tьkrцzхdйsmentes lencse rendszere. Magas tыrхkйpessйgы,teljesen vнzбllу йs minden kцrьlmйnyek kцzt helyt бll egy йleten бt. Leupold FX-II teljes йlettartam garanciбval rendelkezik."
cost			= 4000

holder_range_modifier	= 1.2
holder_fov_modifier		= 0.3

inv_name		= "Leupold FX-II 6x36"
inv_name_short	= "Leupold FX-II 6x36"
inv_weight		= 0.6

inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 67
inv_grid_y         = 40

scope_texture		= wpn\wpn_crosshair_FNFAL
scope_zoom_factor	= 20		


