; Винтовка системы Мосина-Нагана образца 1891\1930г.
[wpn_m1891_30_scope]:identity_immunities
GroupControlSection	= spawn_group
discovery_dependency = 
$spawn                  = "weapons\svd"		; option for Level Editor
$npc			 		= on				; option for Level Editor
$prefetch 		 		= 8
scheduled               = off              	; option for ALife Simulator
cform                   = skeleton
class                   = WP_SHOTG
min_radius              = 0
max_radius              = 50

inv_name	        = wpn-m1891_30_scope							; name in inventory	
inv_name_short		= wpn-m1891_30_scope
description		= enc_weapons1_wpn-m1891_30_scope
ef_main_weapon_type		 = 3
ef_weapon_type			 = 8

;--- scope weapons -----------------------------------------------------------------
holder_range_modifier	= 2.15               ; во скьJЃEЃEраЃEувеличивается eye_range 
holder_fov_modifier		= 0.3              ; во скьJЃEЃEраЃEувеличивается eye_fov
;-----------------------------------------------------------------------------------

cost					= 15000
weapon_class			= sniper_rifle
tri_state_reload			= on

ammo_limit				= 60
ammo_current			= 5
ammo_elapsed			= 0

ammo_mag_size			= 5
ammo_class				= ammo_7.62x54_7h1, ammo_7.62x54_7h14, ammo_7.62x54_ap 

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

cam_relax_speed         	= 9.5	;скорость возврата в исходное положение

cam_dispersion          	= 2.0	;увеличения угла (в градусах) с каждым выстрелом

cam_dispersion_inc		= 0.3	;увеличениe cam_dispersion с каждым выстрелом

cam_dispertion_frac	= 0.8	;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*ispertion_frac)
cam_max_angle			= 9.5	;максимальный угол отдачи
cam_max_angle_horz		= 4.5	;(degree) maximum shot horizontal degree 
cam_step_angle_horz		= 0.35	;(degree) size of step camera moved in horizontal position while shooting

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

hand_dependence 		= 1
single_handed			= 0

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

inv_weight			= 4.1

inv_grid_width			= 6
inv_grid_height			= 2
inv_grid_x			= 26
inv_grid_y			= 18

kill_msg_x			= 0
kill_msg_y			= 0
kill_msg_width		= 0
kill_msg_height		= 0

direction               = 0, 0, 1

fire_point              = 0.0, 0.129, 0.942

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

shell_point		 		= 0.0, 0.129, 0.192	
shell_dir		 		= 0.0, 0.0, 0.4

PDM_disp_base 			= 6.0
PDM_disp_vel_factor 		= 0.9
PDM_disp_accel_factor 		= 1.0
PDM_crouch	 		= 1.0
PDM_crouch_no_acc 		= 1.0

;;;;;;  Для Народной солянки 2009
hit_power           = 0.68, 0.70, 0.73, 0.75
hit_impulse	        = 2
hit_type 	        = fire_wound
hit_rate	        = 1.98
fire_distance       = 210
bullet_speed		= 845
rpm                 = 25

use_aim_bullet				= true		;ПьCдерживается ЃE ЃEрвЃE суЃEер ЃEЃE
time_to_aim					= 1.0	

hud                     = wpn_m1891_30_scope_hud
normal                  = 0, 1, 0
position                = -0.026, -0.077, 0.00
orientation             = 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
;ЃEЃEЃEшкьH
strap_position         		= -0.15,-0.15,0.45			; position (offset) and orientation of the weapon when it is strapped
strap_orientation      		= -25,-189,65				; (3rd person view in degrees)
;strap_position         		= -0.26,-0.11,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

startup_ammo            = 10
visual                  = weapons\m1891_30_scope\wpn_m1891_30_scope.ogf

light_color		 		= 0.6,0.5,0.3
light_range		 		= 4.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	    = 20	;ПСО-1 4X

scope_texture			= wpn\wpn_crosshair_m1891_3

;звукЃE
snd_draw		= weapons\svd_draw
snd_holster		= weapons\generic_holster
snd_shoot		= weapons\m1891_shot
snd_empty		= weapons\gen_empty, 0.3
snd_reload		= weapons\svd_reload

snd_shoot_duplet			= weapons\toz34_shoot_both

snd_open_weapon				=weapons\m1891_open		;
snd_add_cartridge			= weapons\m1891_load		;was gen_grenload
snd_close_weapon			= weapons\m1891_close		;
 
[wpn_m1891_30_scope_hud]

shell_point          		= 0.0, 0.0, -10.0
shell_dir		 	= 0.0, 1.0, 0.0

fire_point			= 0.29,-0.06,0.0;0.25,-0.03,-0.02
fire_bone               = wpn_body
orientation             = 0, 0, 0
position                = 0.10, 0.0, -0.0
visual                  = weapons\m1891_30_scope\wpn_m1891_30_scope_hud.ogf

anim_holster	= holster
anim_idle		= idle
anim_idle_aim	= idle_aim_1
anim_draw		= draw
anim_holster	= holster
anim_shoot		= shoot_1
anim_reload	= reload
anim_idle_sprint			= idle_sprint

anim_shoot_both 			= shoot_1

anim_open_weapon			= reload1
anim_add_cartridge			= reload2
anim_close_weapon			= reload3


;смещение HUD для режима приближения
zoom_offset             = -0.2025,-0.00625,0.184;-0.202,-0.006,0.184;-0.177250,-0.005, 0.0
zoom_rotate_x		= 0.00
zoom_rotate_y		= 0;-0.075