;;; Rewritten by Panzerdraco for L.U.R.K Mod.
;;; A line with one or more ";"'s before it indicates a comment, and won't be read by the script.

;-----SKS-----;
;-----Base Setup-----;
[wpn_sks]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
weapon_class				= sniper_rifle
$spawn                   	= "weapons\sks"
$npc							= on				
$prefetch 				= 8
scheduled					= off               ;[] option for ALife Simulator
cform                    	= skeleton
class                    		= WP_VINT
min_radius               	= 20
max_radius               = 125

inv_name	        		= СКС
inv_name_short		= СКС
description				= desc_wpn_sks_7.62x39mm

upg = nil
upg_last = nil

cost									= 25000
inv_weight						= 3.85

visual                   			= weapons\sks\wpn_sks.ogf

ef_main_weapon_type		= 3
ef_weapon_type				= 8

holder_range_modifier		= 1
holder_fov_modifier			= 1

hand_dependence		    	= 1
single_handed					= 0

sprint_allowed					= true

slot 			         				= 1
animation_slot			 		= 8

inv_grid_width					= 5
inv_grid_height				= 1
inv_grid_x						= 20
inv_grid_y						= 33

kill_msg_x						= 98
kill_msg_y						= 0
kill_msg_width					= 78
kill_msg_height					= 25

ammo_limit		         		= 100
ammo_current		     		= 50
ammo_elapsed		     		= 10

ph_mass							= 5


;базовая дисперсия
fire_dispersion_base       	= 0.024    ;угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
control_inertion_factor    	= 1.2f
use_aim_bullet					= true		;Поддерживается ли первая суппер пуля
time_to_aim						= 1.0

;отдача
cam_relax_speed             	= 5		;скорость возврата в исходное положение
cam_dispersion              	= 0.37		;увеличения угла (в градусах) с первым выстрелом
cam_dispersion_inc         	= 0.30		;увеличениe cam_dispersion с каждым выстрелом
cam_dispersion_frac        	= 0.6	    ;ствол будет подыматься на cam_dispersion*cam_dispersion_frac +- cam_dispersion*(1-cam_dispersion_frac)
cam_max_angle				= 6.0      ;максимальный угол отдачи
cam_max_angle_horz        = 5.0      ;(degree) maximum shot horizontal degree
cam_step_angle_horz        = 0.8		;(degree) size of step camera moved in horizontal position while shooting

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

;-----Ballistics, Handling & Accuracy-----;
hit_power                			= 1.2
hit_impulse		        		= 150
hit_type 							= fire_wound

fire_distance            		= 1000
bullet_speed						= 735
rpm                      			= 180

ammo_mag_size				= 10
ammo_class						= ammo_7.62x39_fmj, ammo_7.62x39_ap 

fire_modes						= 1
	
tri_state_reload				= off

handling_factor					= 1.00
use_aim_bullet					= true
time_to_aim						= 0.50

PDM_disp_base 					= 2.00
PDM_disp_vel_factor 		= 0.75
PDM_disp_accel_factor 		= 1.75
PDM_crouch	 					= 0.50
PDM_crouch_no_acc 			= 0.50


;-----Sights & Attachments-----;

scope_status					= 1
scope_name 					= wpn_addon_sks
scope_x 						= 46
scope_y 						= -2.5

zoom_enabled				= true
scope_zoom_factor       = 15
max_zoom_factor			= 5
scope_texture				= wpn\wpn_crosshair_green

;--Silencer--
silencer_status				= 0

;silencer_name  			= wpn_addon_silencer
;silencer_x 					= 37
;silencer_y 					= -15

;--Grenade Launcher--
grenade_launcher_status	= 0
;grenade_vel					= 76
;grenade_class					= ammo_m209

grenade_launcher_name 	= wpn_addon_grenade_launcher_m203
grenade_launcher_x 			= 130
grenade_launcher_y 			= 31


;-----Sounds, Particles, Muzzleflash & Miscellaneous-----;

snd_draw						= weapons\sks\sks_draw
snd_holster					= weapons\holster
snd_shoot						= weapons\fn2000_shoot6
snd_empty					= weapons\empty
snd_reload					= weapons\sks\sks_reload

rpm_empty_click 	 		= 200

light_disabled				= false

light_color						= 1.0,1.0,0.4
light_range						= 2.0
light_var_color					= 0.0
light_var_range				= 1.0
light_time 						= 0.1

silencer_light_color			 0.0,0.0,0.0
silencer_light_range			= 0.00
silencer_light_var_color	= 0.00
silencer_light_var_range	= 0.0
silencer_light_time 			= 0.0

flame_particles					= weapons\generic_weapon05
smoke_particles				= weapons\generic_shoot_00

shell_point		 			= 0.0, 0.211, 0.99
shell_dir		 				= 0.0, 1.0, 0.0
shell_particles	 			= weapons\generic_shells

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

direction                		= 0, 0, 1

fire_point               		= 0.0, 0.207, 0.474

weapon_remove_time	= 1000

strap_position         		= -0.26,-0.11,0.20
strap_orientation      	= -15,-9,110
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1


hud                      			= wpn_sks_hud
[wpn_sks_hud]
shell_point          			= -0.15, -0.02, 0.05
shell_dir			 			= 0.0, 1.0, 0.0

fire_point               		= 0,0,-0.5
fire_bone                		= muzzle
orientation              		= 0, 0, 0
position                		= 0.10,-0.06,-0.05
visual                   		= weapons\sks\wpn_sks_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

zoom_hide_crosshair		= true
zoom_rotate_time		= 0.35
zoom_offset					= -0.10,0.06,0.05
zoom_rotate_x				= 0.0
zoom_rotate_y				= 0.0
