;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; RPG7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[wpn_rpg7]:weapon_base
GroupControlSection			= spawn_group
$spawn						= "weapons\rpg-7"					; option for Level Editor
$npc						= on		; option for Level Editor
$prefetch					= 8

class						= WP_RPG7
min_radius					= 20
max_radius					= 200
description					= enc_weapons1_wpn-rpg7

ef_main_weapon_type			= 4
ef_weapon_type				= 9

;-----------------------------------------------------------------------------------
holder_range_modifier		= 1.75	; во сколько раз увеличивается eye_range
holder_fov_modifier			= 0.7	; во сколько раз увеличивается eye_fov
;-----------------------------------------------------------------------------------

cost						= 10000
weapon_class				= heavy_weapon

ammo_mag_size				= 1
ammo_class					= ammo_og-7b

hand_dependence				= 1
single_handed				= 0

slot 						= 2,1
animation_slot				= 4		; type of the animation that will be used

inv_name					= wpn-rpg7
inv_name_short				= wpn-rpg7
inv_weight					= 6.3
inv_volume					= 15

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

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

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

;отдача
cam_relax_speed				= 2.0	;скорость возврата в исходное положение
cam_dispersion				= 1.0	;увеличения угла (в градусах) с каждым выстрелом
cam_max_angle				= 3		;максимальный угол отдачи
cam_max_angle_horz			= 5.0	;(degree) maximum shot horizontal degree
cam_step_angle_horz			= 0.5	;(degree) size of step camera moved in horizontal position while shooting

;увеличение дисперсии в процентах при максимальном износе
fire_dispersion_condition_factor = 1.5
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.75
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.2
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob			= 0.05
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob			= 0.7
;увеличение изношености при одиночном выстреле
condition_shot_dec			= 0.02
condition_shot_dec_ai		= 0.005
;-----------------------------------------------------------------------------------

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

smoke_particles				= weapons\generic_weapon02	;generic_rpg_shot

; ttc
;---------------------------------------------------------------
hit_power					= 0
hit_impulse					= 0
hit_type					= explosion

fire_distance				= 350	;required for ai
bullet_speed				= 43;45	;required for ai
launch_speed				= 5		;rocket launcher
rpm							= 60

aim_gravity_factor			= 0.01	;0.05	;required for ai
;---------------------------------------------------------------
; end ttc

hud							= wpn_rpg7_hud
position					= -0.027, -0.113, -0.01
orientation					= 0, 0, 0

;--STRAP PARAMETERS-----------------------------------------------------------------
;под мишкой стволом в верх
strap_position				= -0.28,-0.20,0.25			; position (offset) and orientation of the weapon when it is strapped
strap_orientation			= -15,-189,110				; (3rd person view in degrees)
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1

visual						= dynamics\weapons\wpn_rpg7\wpn_rpg7

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

ph_mass			 			= 3

;addons
scope_status				= 0	;1
silencer_status				= 0
grenade_launcher_status		= 0

scope_texture				= wpn\wpn_crosshair_rpg
;scope_name 					= wpn_addon_scope

zoom_enabled				= true
aim_zoom_factor				= 55
zoom_rotate_time			= 0.8
zoom_hold_speed				= 0.75

;звуки
snd_draw					= weapons\rpg7\rpg7_draw, 1, 0.4
snd_holster					= weapons\shotgun_holster, 1, 0.2
snd_shoot					= weapons\rpg7\rpg7_shoot
snd_empty					= weapons\rpg7\rpg7_empty
snd_reload					= weapons\rpg7\rpg7_reload
snd_reload_misfire			= weapons\rpg7_reload, 0.3

;запрещение режима Sprint для Актера
sprint_coeff				= 0.5
;sprint_allowed				= false


[wpn_rpg7_hud]:hud_base_wpn
item_visual					= dynamics\weapons\wpn_rpg7\wpn_rpg7_hud

inertion_offset				= -0.06
inertion_roll				= 0.055
inertion_speed				= 3.0
aim_inertion_offset			= -0.012
aim_inertion_roll			= 0.1
aim_inertion_speed			= 5
inertion_move				= 1.2, 0.5, -0.5, 1.2
aim_inertion_move			= 0.0, 2.0, 0.0, 1.5
sprint_strafe_rot			= -0.05, 0.01

lean_dist					= 0.35, 0.85
lean_dist_aim				= 0.35, 0.55
lean_dist_reload			= 0.35, 0.7

fire_point					= 0,-0.0040,0.230
fire_bone					= muzzle

hands_position				= -0.0245,-0.1860,0.2095
hands_orientation			= 0.65,1.75,-0.05

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

aim_hud_offset_pos			= -0.12792,-0.02124,-0.00777
aim_hud_offset_rot			= -0.00380,0.01120,0.00098

lean_hud_offset_pos			= -0.0399,0.0929,-0.0589
lean_hud_offset_rot			= 0.3908,0.0488,-0.0193
;lean_hud_offset_pos		= -0.1015,-0.4380,0.0600
;lean_hud_offset_rot		= -0.9269,0.2728,-0.1275

sprint_hud_offset_pos		= -0.0438,-0.0775,-0.1272
sprint_hud_offset_rot		= -0.3011,0.0752,-0.1086

reload_hud_offset_pos		= -0.0222,-0.0135,0.0039
reload_hud_offset_rot		= 0.0122,-0.0524,0.0001

anm_show					= rpg7_draw, 0.67
anm_hide					= rpg7_holster, 0.7			;DUR 1.13
anm_reload					= rpg7_reload, reload
anm_reload_misfire			= rpg7_reload
anm_shots					= rpg7_shoot, shoot
anm_idle					= rpg7_idle
anm_idle_sprint				= rpg7_idle_sprint
anm_idle_aim				= rpg7_idle_aim
anm_idle_moving				= rpg7_idle_moving
anm_idle_moving_walk		= rpg7_idle_moving, 0.85
anm_idle_moving_aim			= rpg7_idle_moving, 0.85
;anm_bore					= rpg7_idle_aim

mrk_show					= 0.9
mrk_hide					= 0.95
mrk_reload					= 0.6, 0.95

; additional parameters
prm_reload					=	8|0.6
prm_reload_misfire			=	8|0.6

[fake_missile_og7b]:identity_immunities
GroupControlSection			= spawn_group
visual						= dynamics\weapons\wpn_ammo\ammo_og_7b
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						= 6.00
blast_r						= 11
blast_impulse				= 1000

frags						= 50
frags_r						= 50
frag_hit					= 1.50
frag_impulse_hit			= 0.65
frag_hit_impulse			= 375
frag_ap						= 0.25
frag_k_ricochet				= 2.5
frag_k_air_resistance		= 2.8
fragment_speed				= 200
frag_tracer_color_ID		= 1
frag_tracer_size			= 0.6

deferred_arming_dist		= 12
strike_hit					= 2.5

hit_type_blast				= explosion
hit_type_frag				= fire_wound

up_throw_factor				= 0.6
;---------------------------------------------------------------

wm_size					= 0.06
wallmark_section		= explosion_marks

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

ph_mass					= 5

explode_particles		= explosions\explosion_04
explode_duration		= 10		;подолжительность взрыва (с)

;звуки
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

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

engine_particles			= weapons\rpg_trail_00
;fly_particles				= weapons\rpg_trail_01

force_explode_time			= 15000; msec
