;однозарядное ружье-гранатомёт 

[wpn_m79]:identity_immunities
GroupControlSection			= spawn_group
discovery_dependency 		= 
$spawn                   	= "weapons\m79"	
$npc			 			= on				
$prefetch 		 		= 2
scheduled                	= off              
cform                    	= skeleton
class                    	= WP_RG6
min_radius               	= 20
max_radius               	= 50
description				= enc_weapons_wpn-m79

ef_main_weapon_type			= 4
ef_weapon_type				= 9

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

cost					 	= 5000
weapon_class			 	= heavy_weapon

tri_state_reload			= on

ammo_limit		 		= 60
ammo_current		 		= 10
ammo_elapsed		 		= 0

f_mode				     = 1

ammo_mag_size		 		= 1
ammo_class		 		= ammo_m209	
launch_speed				= 76;50 ;for rocket
sprint_allowed			     = true
;-----------------------------------------------------------------------------------
;базовая дисперсия
fire_dispersion_base		= 0.5  ;угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
disp_rate = 1.5

;отдача
cam_relax_speed         	= 2.0	;скорость возврата в исходное положение
cam_dispersion          	= 4.0	;увеличения угла (в градусах) с каждым выстрелом
cam_max_angle				= 12		;максимальный угол отдачи
cam_max_angle_horz			= 5.0	;(degree) maximum shot horizontal degree 
cam_step_angle_horz			= 0.5	;(degree) size of step camera moved in horizontal position while shooting

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

hand_dependence 	 		= 1
single_handed				= 0

slot 				 	= 1		
animation_slot		 		= 10	

inv_name					= "Ружье-гранатомёт m79"
inv_name_short				= "Ружье-гранатомёт m79"
inv_weight				= 2.7

inv_grid_width				= 4
inv_grid_height			= 1
inv_grid_x				= 34
inv_grid_y				= 49

kill_msg_x			     = 0
kill_msg_y			     = 172
kill_msg_width		          = 68
kill_msg_height		     = 30

direction                	= 0, 0, 1
shell_point				= 0.0, 0.120, 0.20
fire_point               	= 0.0, 0.120, 0.452
fire_point2              	= 0.0, 0.120, 0.452

flame_particles		   	= weapons\generic_weapon05
smoke_particles		   	= weapons\generic_shoot_00
rpm_empty_click 	   		= 200
; ttc

hit_power        			= 0.95
hit_impulse      			= 10
hit_type 					= fire_wound
hit_rate	                   = 1.95

fire_distance            	= 100
bullet_speed			 	= 80			;начальная скорость пули
rpm                      	= 20
; end ttc

hud                      	= wpn_m79_hud
normal                   	= 0, 1, 0
position                 	= -0.026, -0.111, 0.
orientation              	= 0, 0, 0
startup_ammo             	= 0
visual                   	= weapons\m79\wpn_m79.ogf

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

ph_mass			 			= 3
;cost			 			= 900

;addons
scope_status				= 0
silencer_status			= 0
grenade_launcher_status		= 0

zoom_enabled				= true
scope_zoom_factor	    	     = 55

;звуки
snd_draw					= weapons\generic_draw
snd_holster				= weapons\generic_holster
snd_shoot					= weapons\tm_toz34_shot
snd_empty					= weapons\generic_empty
snd_reload				= weapons\toz34_reload
snd_shoot_duplet			= weapons\toz34_shoot_both

snd_open_weapon			= weapons\pistol_empty		;change me
snd_add_cartridge			= weapons\w1300_load		;was gen_grenload
snd_close_weapon			= weapons\pistol_empty		;change me

 
[wpn_m79_hud]
shell_point		 		= 0.0, 0.0, 0.0
fire_point			     = -0.090000,0.100000,0.000000
fire_point			     = -0.090000,0.100000,0.000000
fire_bone                	= wpn_body
orientation              	= 0, 0, 0
position                 	= 0, 0, 0
visual                   	= weapons\m79\wpn_m79_hud.ogf

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

anim_open_weapon			= reload1
anim_add_cartridge			= reload2
anim_close_weapon			= reload3


;смещения HUD для режима приближения
zoom_offset			= -0.172,0.04,-0.3 ; -0.172,0.094,-0.1
zoom_rotate_x			= -0.03
zoom_rotate_y		     = -0.003900
;время поворота HUD (сек)
;zoom_rotate_time		= 0.7

