;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; RPG7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[wpn_rpg7]:zero_immunities,weapon_probability,default_weapon_params

GroupControlSection					= spawn_group
discovery_dependency 					=
$spawn						= "weapons\rpg-7"
$prefetch 		 				= 8
scheduled						= off
cform						= skeleton
class						= WP_RPG7
description						= st_wpn_rpg7_descr

ef_main_weapon_type				= 4
ef_weapon_type					= 12

sprint_allowed					= true

inv_name						= st_wpn_rpg7
inv_name_short					= st_wpn_rpg7

inv_grid_width					= 5
inv_grid_height					= 1
inv_grid_x						= 6
inv_grid_y						= 0

upgr_icon_x 					= 323
upgr_icon_y 					= 1211
upgr_icon_width 				= 242
upgr_icon_height 				= 76

kill_msg_x						= 0
kill_msg_y						= 85
kill_msg_width					= 73
kill_msg_height					= 19

cost						= 26000
weapon_class					= heavy_weapon
inv_weight						= 6.3
hud						= wpn_rpg7_hud
visual 						= dynamics\weapons\wpn_rpg7\wpn_rpg7

ph_mass			 			= 6

ammo_class		 			= ammo_og-7b

ammo_current		 			= 6
ammo_elapsed		 			= 1
ammo_limit		 				= 7
ammo_mag_size					 = 1

auto_spawn_ammo					= false

rocket_class					= wpn_rpg7_missile
launch_speed					= 5

hand_dependence					 = 1
single_handed					= 0

;------TTX------------------------------------------------------------------------
hit_power       		= 3.00
hit_impulse				= 100
hit_type 						= explosion
fire_distance					= 1400
bullet_speed					= 150
rpm						= 200

misfire_probability					= 0.005
misfire_start_condition					= 0.6
misfire_end_condition					= 0.1
misfire_start_prob	 				= 0.001
misfire_end_prob	 				= 0.02
condition_shot_dec					= 0.0033
condition_queue_shot_dec				= 0.0040

zoom_dof						= 0.5, 1.0, 180
reload_dof						= 0.0, 0.5, 5, 1.7

fire_dispersion_base					= 1.5
fire_dispersion_condition_factor 			= 5
crosshair_inertion 					= 10

cam_relax_speed					= 2.0
cam_relax_speed_ai					= 360
cam_dispersion					= 10.0
cam_max_angle					= 15
cam_max_angle_horz					= 15
cam_step_angle_horz					= 0.5

PDM_disp_base					= 1.0
PDM_disp_vel_factor					= 1.0
PDM_disp_accel_factor				= 1.0
PDM_disp_crouch					= 1.0
PDM_disp_crouch_no_acc				= 1.0

min_radius 					= 20
max_radius 					= 90

holder_range_modifier 				= 2
holder_fov_modifier					= 1

slot 				 		= 2
animation_slot		 			= 4

position						= -0.027,-0.113,0
orientation						= 0,0,0

smoke_particles		 			= weapons\generic_weapon02

shell_point						= 0.0, 0.0, 0.0
fire_point						= 0.0, 0.162, 0.35

strap_position 					= -0.28,-0.20,0.25
strap_orientation					= -15,-189,110
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1

light_color		 				= 0.95,0.95,0.3
light_range		 			= 20.0
light_var_color		 			= 0.05
light_var_range		 			= 0.5
light_time 		 				= 0.75

scope_status					= 0
silencer_status					= 0
grenade_launcher_status				= 0

zoom_enabled					= true
scope_zoom_factor					= 63.3
max_zoom_factor					= 5

snd_draw					= weapons\rpg7\rpg7_draw
snd_holster				= weapons\shotgun_holster
snd_shoot					= weapons\rpg7\rpg7_shot
snd_empty					= weapons\rpg7\rpg7_empty
snd_reload					= weapons\rpg7\rpg7_reload
snd_explode				= weapons\rpg7\rpg7_explode

[wpn_rpg7_hud]:hud_base
zoom_hide_crosshair        				= true

attach_place_idx					= 0
item_visual             					= dynamics\weapons\wpn_rpg7\wpn_rpg7_hud

fire_point						= 0,0,0
fire_bone               					= grenade

hands_position					= -0.0205,-0.23,0.26
hands_orientation					= 3.35,2.6,-0.05

hands_position_16x9					= -0.0205,-0.23,0.26
hands_orientation_16x9				= 3.35,2.6,-0.05

item_position					= 0,0,0
item_orientation					= 0,0,0

aim_hud_offset_pos					= -0.1336,0.0345,-0.13
aim_hud_offset_rot					= 0.05,0.0445,0

aim_hud_offset_pos_16x9 				= -0.1336,0.0345,-0.13
aim_hud_offset_rot_16x9 				= 0.05,0.0445,0

gl_hud_offset_pos					= 0,0,0
gl_hud_offset_rot					= 0,0,0

lean_hud_offset_pos					= 0,0,0
lean_hud_offset_rot					= 0,0,0

anm_show						= rpg7_draw
anm_hide						= rpg7_holster
anm_reload					= rpg7_reload, reload
anm_shots						= rpg7_shoot, shoot
anm_idle						= rpg7_idle
anm_idle_sprint					= rpg7_sprint
anm_idle_aim					= rpg7_idle_aim
anm_idle_moving					= rpg7_moving
anm_bore						= rpg7_idle_aim

[wpn_rpg7_missile]:identity_immunities,default_weapon_params,weapon_probability
GroupControlSection			= spawn_group
discovery_dependency 			=
visual                  		= dynamics\weapons\wpn_rpg7\wpn_rpg7_grenade.ogf
cform                    		= skeleton
class                    		= G_RPG7
$prefetch 		 		= 32

inv_weight				= 0
kill_msg_x				= 0
kill_msg_y				= 85
kill_msg_width				= 74
kill_msg_height				= 19

cost					= 200
;---------------------------------------------------------------
blast					= 5.00
blast_r					= 10;15
blast_impulse				= 350
blast_impulse_factor 			= 1

frags					= 8
frags_r					= 25
frag_hit				= 1.50
frag_hit_impulse			= 275

hit_type_blast				= explosion
hit_type_frag				= fire_wound

up_throw_factor				= 0.25
;---------------------------------------------------------------

wm_size                  		= 0.1
wallmark_section			= explosion_marks

light_color		         	= 1.9,1.4,0.5
light_range		         	= 24.0
light_time 		         	= 1.28

ph_mass			 			= 5

jump_height 				= 0

explode_particles			= explosions\explosion_04


;трассы от осколков
fragment_speed	     		= 100

explode_duration		 	= 5		;подолжительность взрыва (с)


;звуки
snd_explode 				= weapons\rpg7_explode
snd_fly_sound				= weapons\rocket_fly

;свойства которые читаются, но не используются (надо убрать)
inv_name					= "Og-7b"
inv_name_short				= "Og-7b"
inv_weight					= .2

inv_grid_width				= 4
inv_grid_height				= 1
inv_grid_x					= 15
inv_grid_y					= 5

kill_msg_x			= 0
kill_msg_y			= 85
kill_msg_width		= 73
kill_msg_height		= 19
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Свойства CustomRocket
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
engine_present				= true		;присутствует ли в ракете двигатель
engine_work_time			= 3000		;время работы двигателя (в милисекундах)
engine_impulse				= 300
engine_impulse_up			= 133,906	;137.34 ;137.34 = 2*9.81*7 - значение этого параметра (который является некой подъемной силой, вопреки названию),
										;при котором ракета массой 7кг не опускается под дейсвием
										;гравитации. 2*9.81=19.62 - ускорение свободного падения в мире сталкеров
										;при меньших значениях ракета будет опускаться, при больших подниматься
lights_enabled 				= true		;свет вокруг ракеты, во время полета
trail_light_color 			= 0.6,0.5,0.3
trail_light_range 			= 15.0

engine_particles 			= weapons\rpg_trail_00
;fly_particles	 			= weapons\rpg_trail_01

force_explode_time			= 30000; msec