; Самодельный пистолет с электрозамком.
[wpn_samopal]:identity_immunities
GroupControlSection			= spawn_group
discovery_dependency 		= 
$spawn                   	= "weapons\samopal"
$npc			 			= on
$prefetch 					= 8
scheduled            		= off
cform                    	= skeleton
class                    	= WP_PM
min_radius               	= 1
max_radius               	= 40
description					= enc_weapons_wpn-samopal

ef_weapon_type				= 5

holder_range_modifier	    = 1.0
holder_fov_modifier		    = 1.0

cost				        = 100

ammo_limit		 	        = 120
ammo_current		 	    = 90
ammo_elapsed		 	    = 12

ammo_mag_size		        = 1
ammo_class		 	        = ammo_samopal


hand_dependence		        = 1
single_handed			    = 1

slot 				        = 1
animation_slot		 	    = 1

inv_name			        = wpn-samopal
inv_name_short			    = wpn-samopal
inv_weight			        = 1.38

inv_grid_width			    = 2
inv_grid_height			    = 1
inv_grid_x			        = 28
inv_grid_y			        = 2

kill_msg_x			        = 194
kill_msg_y			        = 123
kill_msg_width		        = 46
kill_msg_height		        = 27

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

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

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

direction                	= 0, 0, 1
fire_point		            = -0.005000,0.130000,0.220000

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

shell_point		            = 0.0, 0.133, 0.06
shell_dir		            = 0.0, 0.0, 0.4
shell_particles	 	        = 

PDM_disp_base 		        = 1.0
PDM_disp_vel_factor 		= 1.1
PDM_disp_accel_factor 		= 1.1
PDM_crouch	 		        = 1.0
PDM_crouch_no_acc 		    = 1.0

;;;;;;  Для Народной солянки 2009
hit_power           = 0.41
hit_impulse	        = 2
hit_type 	        = fire_wound
hit_rate	        = 1.60
fire_distance       = 30
bullet_speed		= 210
rpm                 = 200

use_aim_bullet	            = true
time_to_aim	                = 1.0	

silencer_hit_power       	= 0.6
silencer_hit_impulse	    = 120
silencer_fire_distance   	= 75
silencer_bullet_speed	    = 250

hud                      	= wpn_podjik_hud
normal                   	= 0, 1, 0
position                 	= -0.021, -0.09, 0.0
orientation              	= 0, 0, 0


startup_ammo             	= 90
visual                   	= wpn_podjik1.ogf

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

ph_mass		                = 1



scope_status                = 0
silencer_status             = 0
grenade_launcher_status     = 0

zoom_enabled		        = true
scope_zoom_factor	        = 70

snd_draw		= weapons\fort_draw, 0.0
snd_holster		= weapons\generic_holster, 0.0
snd_shoot		= weapons\fire_samopal
snd_empty		= weapons\pistol_empty, 0.0
snd_reload		= weapons\reload_samopal
snd_close		= weapons\generic_close, 0.0

silencer_name  				= wpn_addon_silencer
silencer_x 					= 77
silencer_y 					= -17					

silencer_smoke_particles 	= weapons\generic_shoot_00
snd_silncer_shot			= weapons\w_ak74_shot1 
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_podjik_hud]

shell_point                 = -0.000000,0.040000,-0.235000
fire_point                  = 0.0, -0.001, -0.01

fire_bone                   = wpn_body
orientation                 = 5.5, 1.25, -0,07
position                    = -0.06, -0.235, 0.25
visual                      = wpn_podjik_hud.ogf

anim_holster                = close
anim_idle                   = idle
anim_empty                  = idle
anim_reload                 = reload1
anim_reload_empty           = reload1
anim_draw                   = draw1
anim_draw_empty             = draw1
anim_shoot                  = shoot2
anim_shot_last              = shoot2
anim_close                  = close
anim_idle_aim               = idle
anim_idle_sprint	        = sprint2

zoom_offset			= -0.223600,0.096800,-0.20000 ;-0.18,0.008,-0.2 (yxz)
zoom_rotate_x		= 0.06300 
zoom_rotate_y		= 0.05400