[wpn_gravigun]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency	= 
$spawn              	= "weapons\wpn_gravigun"	
$npc					= on				
$prefetch 				= 8
scheduled				= off         
cform               	= skeleton
class               	= WP_SVD ;LR300	
min_radius          	= 250			
max_radius          	= 250			
description			= "Грави-пушка"

script_binding  = bind_ggun.init
	
ef_main_weapon_type		= 2
ef_weapon_type			= 6

;-----------------------------------------------------------------------------------
holder_range_modifier	= 2.0		       
holder_fov_modifier		= 1.0      
;-----------------------------------------------------------------------------------


cost					= 55000			
weapon_class			= assault_rifle			
	
ammo_limit			= 250				
ammo_elapsed			= 250			
	
ammo_mag_size			= 1			
;fire_modes			= 1

ammo_class			= ammo_gravi    

hand_dependence		= 1	
single_handed			= 0
	
slot 				= 2	
animation_slot			= 2	


inv_name	        	     = "Грави-пушка"	
inv_name_short			= "Грави-пушка"	
inv_weight				= 7.5			

inv_grid_width			= 5	 ; position and size of the icon that will be used to display weapon in the inventory menu
inv_grid_height		= 2	 ; all icons are on the texture ui_icon_equipment.dds,   
inv_grid_x			= 34	 ; position and size are in terms of 64x64 squares
inv_grid_y			= 51

kill_msg_x			= 0
kill_msg_y			= 123
kill_msg_width		     = 69
kill_msg_height		= 30

;params of weapon recoil
fire_dispersion_base			= 0.009	
control_inertion_factor			= 2.74f

;отдача					
cam_relax_speed         		=	5.477		;скорость возврата в исходное положение
cam_dispersion          		=	0.062		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc		=	0.012		;увеличениe cam_dispersion с каждым выстрелом
cam_dispertion_frac		=	0.050		;ствол будет подыматься на cam_dispersion*cam_dispertion_frac +- cam_dispersion*(1-cam_dispertion_frac)
cam_max_angle		=	0.193	    	;максимальный угол отдачи
cam_max_angle_horz		=	0.193		;(degree) maximum shot horizontal degree 
cam_step_angle_horz		=	0.062		;(degree) size of step camera moved in horizontal position while shooting
					
fire_dispersion_condition_factor 		=	5	    	;увеличение дисперсии в процентах при максимальном износе 
misfire_probability 		=	0.005		;вероятность осечки при максимальном износе 
misfire_condition_k		=	0.05		
condition_shot_dec 		=	0.0001		;увеличение износа при каждом выстреле
;-----------------------------------------------------------------------------------					
					
PDM_disp_base 		=	0.58		
PDM_disp_vel_factor 		=	1.0		
PDM_disp_accel_factor 		=	1.0		
PDM_crouch	 	=	1.0		
PDM_crouch_no_acc 		=	1.0		

fire_point             		=  0.0, 0.27109, 0.87317		; position (3rd person view) for particles of fire 
;fire_point2            		=  0.0, 0.262, 0.547		; position (3rd person view) for particles of fire (when shooting with secondary fire)

;flame_particles				= weapons\generic_weapon03	; particles for shooting effects
;smoke_particles				= weapons\generic_shoot_00
;grenade_flame_particles		= weapons\generic_weapon01
	
shell_point		 			= 0.00, 0.262, 0.189			; position (3rd person view) for shell to throw out
;shell_particles	 			= weapons\generic_shells	; name of the particles for shells

; ttc
hit_power           	    = 1		
hit_type 					= fire_wound 	
bullet_speed				= 1000		

fire_distance            	= 10		
hit_impulse		 			= 5000		
rpm                    		= 120		

use_aim_bullet				= true	
time_to_aim				= 1.0	

silencer_hit_power       		= 0.64
silencer_hit_impulse	 		= 6
silencer_fire_distance   		= 250
silencer_bullet_speed	 		= 600

hud                      	= wpn_gravigun_hud		; name of the section of the hud

position         	        = -0.026, -0.215, -0.03		; position (offset) and orientation of the weapon in the hands of character
orientation      	        = 0,0,0						; (3rd person view)

;--STRAP PARAMETERS-----------------------------------------------------------------
strap_position         		= -0.18,-0.45,0.2			; position (offset) and orientation of the weapon when it is strapped
strap_orientation      		= -10,-5,10					; (3rd person view in degrees)
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1

visual                  	= weapons\gravigun\wpn_gravigun.ogf

light_color					= 0.0,0.0,0.0				; params for light during the fire
light_range					= 0.0							; radius
light_var_color				= 0.0						
light_var_range				= 0.0
light_time 					= 0.0						


ph_mass						= 5							; physic mass (kg)


;addons
scope_status				= 0							; 0 - no addon
silencer_status				= 0							; 1 - permanent
grenade_launcher_status		= 0							; 2 - attachable

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

;sounds (name of the sound, volume (0.0 - 1.0), delay (sec))
snd_draw					= weapons\generic_draw
snd_holster					= weapons\generic_holster
snd_shoot					= weapons\gen_empty, 0.0, 0.0;weapons\pkm_shot.ogg
snd_empty					= weapons\gen_empty, 0.0, 0.0 ;weapons\gen_empty, 0.5
snd_reload					= weapons\gen_empty, 0.0, 0.0 ;weapons\pkm_reload.ogg


snd_switch					= weapons\gen_empty, 0.0, 0.0 ;weapons\groza_switch, 1.0, 0.5

;-----------------------------------------------------------------------------
;-- Активация артефактов
;-----------------------------------------------------------------------------

;"Трамплин"
af_medusa = zone_mosquito_bald_weak, 2, 4, 1, 3
af_cristall_flower = zone_mosquito_bald_weak, 3, 5, 3, 9
af_night_star = zone_mosquito_bald_weak, 4, 6, 9, 20

;"Воронка"
af_vyvert = zone_gravi_zone_weak, 3.5, 4, 500, 600
af_gravi = zone_gravi_zone_weak, 4, 5, 750, 850
af_gold_fish = zone_gravi_zone_weak, 5, 6, 900, 1000

;"Карусель"
af_blood = zone_mincer_weak, 3.5, 4, 500, 600
af_mincer_meat = zone_mincer_weak, 4, 5, 750, 850
af_soul = zone_mincer_weak, 5, 6, 900, 1000

;"Электра"
af_electra_sparkler = zone_witches_galantine, 2, 4, 2, 5
af_electra_flash = zone_witches_galantine, 3, 5, 5, 10
af_electra_moonlight = zone_witches_galantine, 4, 6, 10, 25

;"Жарка"
af_drops = zone_zharka_static_weak, 1, 2, 5, 10
af_fireball = zone_zharka_static_average, 1, 2, 10, 20
af_cristall = zone_zharka_static_strong, 1, 2, 20, 40

;"Студень/Кисель"
af_ameba_slime = zone_buzz_weak, 2, 4, 15, 20
af_ameba_slug = zone_buzz_average, 2, 4, 15, 20
af_ameba_mica = zone_buzz_strong, 2, 4, 15, 20

;"Жгучий пух"
;af_rusty_thorn
;af_rusty_kristall
;af_rusty_sea-urchin

;Неизвестные
;af_dummy_spring
;af_dummy_dummy
;af_dummy_battery
;af_dummy_pellicle
;af_dummy_glassbeads
;af_fuzz_kolobok

;-----------------------------------------------------------------------------
;-- HUD DESCRIPTION
;-----------------------------------------------------------------------------
 
[wpn_gravigun_hud]

;similar to corresponding params in weapon section but for 1st person view

shell_point          		= 0, 0, 0
shell_dir		 	= 0.0, 1.0, 0.0

fire_point       	        = 0,0,0
fire_bone               	= gun_end

orientation             	= 0, 0, 0		
position                	= 0.2, -0.18, 0.5 
visual                  	= weapons\gravigun\wpn_gravigun_hud.ogf

; animation names

anim_idle					= idle_closed
anim_idle_aim				= idle_open
anim_reload					= idle_closed_stop
anim_draw					= draw
anim_holster				= holster
anim_shoot					= fire
anim_idle_sprint			= idle_sprint

zoom_offset             = 0,0,0
zoom_rotate_x			= 0
zoom_rotate_y			= 0
zoom_rotate_time 		= 0.0001


zoom_hide_crosshair	= true					;to hide crosshair in zoom 

[ammo_gravi]:identity_immunities
GroupControlSection	= spawn_group
discovery_dependency = 
$spawn			= "weapons\ammo\ammo_12x76_zhekan" ; option for Level Editor
class			= AMMO
cform                   = skeleton
visual                  = weapons\ammo\ammo_12x76_zhekan.ogf
description				= "Грави-пушка"
$prefetch 		= 64

cost					 = 216

box_size		= 1

inv_name		= "Грави-пушка"
inv_name_short	= "Грави-пушка"
inv_weight		= 0.0

inv_grid_width		= 0
inv_grid_height		= 0
inv_grid_x			= 33
inv_grid_y			= 6

k_dist			= 1
k_disp			= 1
k_hit			= 0
k_impulse		= 1
k_pierce		= 0.5
impair			= 1
buck_shot		= 0
tracer			= off
wm_size         = 0.0000001
explosive		= off

