;-------------------------------------------------------------------------------
;   Mod: TrickSR
; Autor: steelrat
;-------------------------------------------------------------------------------
#include "weapons_addons.ltx"			;-->> 'TrickSR'
#include "weapons_sounds.ltx"			;-->> 'TrickSR'
#include "weapons_sounds_up.ltx"			;-->> 'TrickSR'

#include "delayed_action_fuse.ltx"
#include "upgrades_properties.ltx"
#include "explosive.ltx"

#include "upgrades\w_abakan_up.ltx"
#include "upgrades\w_ak74_up.ltx"
#include "upgrades\w_ak74u_up.ltx"
#include "upgrades\w_beretta_up.ltx"
#include "upgrades\w_bm16_up.ltx"
#include "upgrades\w_colt1911_up.ltx"
#include "upgrades\w_desert_eagle_up.ltx"
#include "upgrades\w_fn2000_up.ltx"
#include "upgrades\w_fort_up.ltx"
#include "upgrades\w_g36_up.ltx"
#include "upgrades\w_groza_up.ltx"
#include "upgrades\w_hpsa_up.ltx"
#include "upgrades\w_l85_up.ltx"
#include "upgrades\w_lr300_up.ltx"
#include "upgrades\w_mp5_up.ltx"
#include "upgrades\w_pb_up.ltx"
#include "upgrades\w_pkm_up.ltx"
#include "upgrades\w_pm_up.ltx"
#include "upgrades\w_protecta_up.ltx"
#include "upgrades\w_sig220_up.ltx"
#include "upgrades\w_sig550_up.ltx"
#include "upgrades\w_spas12_up.ltx"
#include "upgrades\w_svd_up.ltx"
#include "upgrades\w_svu_up.ltx"
#include "upgrades\w_toz34_up.ltx"
#include "upgrades\w_usp45_up.ltx"
#include "upgrades\w_val_up.ltx"
#include "upgrades\w_vintorez_up.ltx"
#include "upgrades\w_walther_up.ltx"
#include "upgrades\w_wincheaster1300_up.ltx"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Штурмовые винтовки
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "9a91.ltx"
#include "abakan.ltx"
#include "aek971.ltx"
#include "ak.ltx"
#include "ak12.ltx"
#include "ak74.ltx"
#include "ak74m.ltx"
#include "ak101.ltx"
#include "ak102.ltx"
#include "ak103.ltx"
#include "ak104.ltx"
#include "ak105.ltx"
#include "akm.ltx"
#include "akms.ltx"
#include "aks.ltx"
#include "aks74.ltx"
#include "aks74u.ltx"
#include "aug.ltx"
#include "famas.ltx"
#include "fn2000.ltx"
#include "g3.ltx"
#include "g36.ltx"
#include "g36c.ltx"
#include "g36k.ltx"
#include "galil.ltx"
#include "groza.ltx"
#include "hk416.ltx"
#include "l85.ltx"
#include "lr300ml.ltx"
#include "m4.ltx"
#include "m4a1.ltx"
#include "m16.ltx"
#include "m16a2.ltx"
#include "scar.ltx"
#include "sg550.ltx"
#include "val.ltx"
#include "vihr.ltx"
#include "vsk94.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Пистолеты
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "aps.ltx"
#include "beretta92.ltx"
#include "colt1911.ltx"
#include "cz75.ltx"
#include "deagle.ltx"
#include "fn57.ltx"
#include "fnp45.ltx"
#include "fort12.ltx"
#include "glock.ltx"
#include "grach.ltx"
#include "gsh18.ltx"
#include "hpsa.ltx"
#include "oc33.ltx"
#include "p99.ltx"
#include "p220.ltx"
#include "pb.ltx"
#include "pm.ltx"
#include "pmm.ltx"
#include "tt33.ltx"
#include "usp.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Дробовики/Ружья
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "mossberg590.ltx"
#include "mp133.ltx"
#include "mp153.ltx"
#include "protecta.ltx"
#include "remington870.ltx"
#include "saiga.ltx"
#include "spas12.ltx"
#include "toz34.ltx"
#include "toz66.ltx"
#include "toz194.ltx"
#include "usas12.ltx"
#include "vepr.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Снайперские винтовки
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "g3sg1.ltx"
#include "gauss.ltx"
#include "l96a1.ltx"
#include "m95.ltx"
#include "m98b.ltx"
#include "sr25.ltx"
#include "sv98.ltx"
#include "svd.ltx"
#include "svt40.ltx"
#include "svu.ltx"
#include "vintorez.ltx"
#include "vssk.ltx"
#include "wa2000.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Пулемёты
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "m249.ltx"
#include "pkm.ltx"
#include "rpd.ltx"
#include "rpk.ltx"
#include "rpk74.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Гранаты
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "rdg-m.ltx"
#include "rgd5.ltx"
#include "f1.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Гранатомёты
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "m79.ltx"
#include "rg6.ltx"
#include "rpg7.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Пистолеты-пулемёты
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "bizon.ltx"
#include "mp5.ltx"
#include "p90.ltx"
#include "pp2000.ltx"
#include "ump45.ltx"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Разное
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "mounted.ltx"
#include "binoc.ltx"
#include "bolt.ltx"
#include "knife.ltx"
;-------------------------------------------------------------------------------
; Огнестрельное оружие
;-------------------------------------------------------------------------------

[bullet_manager]
tracer_shader					= effects\bullet_tracer 	; hud\default
tracer_texture					= fx\fx_tracer_weapons
fire_circle_k					= 2.0f 						; means tracer_width*2

tracer_width					= 0.08
tracer_length_max				= 225
tracer_length_min				= 0

hit_probability_max_dist		= 0.001						; расстояние после которого учитывается hit_probabilty полностью

gravity_const					= 9.81

air_resistance_k				= 1							; сопротивление воздуха, процент, который отнимается от скорости полета пули

time_step						= 5							; размер шага времени (в милисекундах), по которому проигрываются

min_bullet_speed				= 0.001						; минимальная скорость (м/с), на которой пуля еще считается и показывается

collision_energy_min			= 0.001						; cколько процентов энергии потеряет пуля при столкновении с материалом (при падении под прямым углом)
collision_energy_max			= 0.999						; сколько процентов энергии останется у пули при любом столкновении

whine_sounds					= weapons\whine_1, weapons\whine_2, weapons\whine_3, weapons\whine_4, weapons\whine01, weapons\whine02
explode_particles				= explosions\expl_bullet,explosions\expl_bullet_00,explosions\expl_bullet_01

[tracers_color_table]
color_0 						= 255,	130,	0,		255	; yellow
color_1 						= 255,	255,	255,	255	; white
color_2 						= 255,	25,		0,		255	; red
color_3 						= 77,	255,	77,		255	; green
color_4 						= 0,	0,		25,		255	; blue
color_5 						= 255,	127,	63,		150	;

;-------------------------------------------------------------------------------
; Fake Missiles and Grenades
;-------------------------------------------------------------------------------

[wpn_fake_og-7b]:ammo_base,wpn_fake_og-7b_sounds
visual					= dynamics\weapons\wpn_rpg7\wpn_rpg7_grenade.ogf
cform					= skeleton
class					= G_RPG7
$prefetch 				= 32

inv_weight				= 0

cost					= 200

blast					= 2
blast_r					= 4
blast_impulse				= 350
blast_impulse_factor 			= 1

frags					= 8
frags_r					= 20.44
frag_hit					= 5.30
frag_hit_impulse				= 10
frag_ap					= 5.76

hit_type_blast				= explosion
hit_type_frag				= fire_wound

up_throw_factor				= 0.25

explode_particles				= explosions\explosion_04

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

ph_mass			 		= 3

jump_height 				= 0

wm_size					= 0.5

fragment_speed	 			= 150
explode_duration		 		= 5

wallmark_section				= explosion_marks	

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					= 74
kill_msg_height					= 19

;- Свойства CustomRocket -------------------------------------------------------
engine_present					= true		;присутствует ли в ракете двигатель
engine_work_time				= 3000		;время работы двигателя (в милисекундах)
engine_impulse					= 300
engine_impulse_up				= 133,906	;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

;-------------------------------------------------------------------------------
[wpn_fake_vog-25]:default_weapon_params,wpn_fake_vog-25_sounds
visual							= dynamics\weapons\wpn_ammo\ammo_vog_25.ogf
cform							= skeleton
class							= G_FAKE
$prefetch 						= 32

inv_weight						= 0

cost							= 150

blast							= 1.5
blast_r							= 2
blast_impulse					= 240
;delete
blast_impulse_factor			= 1

frags							= 100
frags_r							= 6.50
frag_hit						= 5.50
frag_hit_impulse				= 100
frag_ap							= 5.46

hit_type_blast					= explosion
hit_type_frag					= fire_wound

up_throw_factor					= 0.7

;trail							= weapons\rpg_trail_01, weapons\rpg_trail_02

explode_particles				= explosions\explosion_01

light_color						= 1.9, 1.2, 0.5
light_range						= 25.0
light_time 						= 0.5

ph_mass							= 1
;engine_f						= 530
;engine_u						= 90

jump_height						= 0

wm_size							= 0.5

fragment_speed					= 150						; скорость осколков (м/с)

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

wallmark_section				= explosion_marks			; wallmarks

;свойства которые читаются, но не используются
inv_name						= ammo-vog-25
inv_name_short					= ammo-vog-25
inv_weight						= 0.2

inv_grid_width					= 1
inv_grid_height					= 1
inv_grid_x						= 19
inv_grid_y						= 10

kill_msg_x						= 17
kill_msg_y						= 232
kill_msg_width					= 21
kill_msg_height					= 22

;-Свойства CustomRocket---------------------------------------------------------
engine_present					= false		;присутствует ли в ракете двигатель
lights_enabled					= false		;свет вокруг ракеты, во время полета
force_explode_time				= 10000

;-------------------------------------------------------------------------------
[wpn_fake_vog-25p]:default_weapon_params,wpn_fake_vog-25p_sounds
$prefetch 						= 32
visual							= dynamics\weapons\wpn_ammo\ammo_vog_25p.ogf
cform							= skeleton
class							= G_FAKE

inv_weight						= 0

cost							= 150

blast							= 1.50
blast_r							= 2
blast_impulse					= 240
;delete
blast_impulse_factor			= 1

frags							= 150
frags_r							= 6.50
frag_hit						= 5.50
frag_hit_impulse				= 100
frag_ap							= 5.46

hit_type_blast					= explosion
hit_type_frag					= fire_wound

up_throw_factor					= 0.7

;trail							= weapons\rpg_trail_01, weapons\rpg_trail_02

explode_particles				= explosions\explosion_01

light_color						= 1.9,1.4,0.5
light_range						= 14.0
light_time 						= 0.85

ph_mass							= 1
;engine_f						= 530
;engine_u						= 90

jump_height						= 1.2

wm_size 						= 0.5

fragment_speed					= 100						; скорость осколков (м/с)

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

wallmark_section				= explosion_marks			; wallmarks

;свойства которые читаются, но не используются
inv_name						= ammo-vog-25p
inv_name_short					= ammo-vog-25p
inv_weight						= .2

inv_grid_width					= 1
inv_grid_height					= 1
inv_grid_x						= 19
inv_grid_y						= 9

kill_msg_x						= 38
kill_msg_y						= 233
kill_msg_width					= 21
kill_msg_height					= 22

;-Свойства CustomRocket---------------------------------------------------------
engine_present					= false						; присутствует ли в ракете двигатель
lights_enabled 					= true						; свет вокруг ракеты, во время полета
trail_light_color 				= 0.6, 0.5, 0.3
trail_light_range 				= 8.0
force_explode_time				= 10000

;-------------------------------------------------------------------------------
[wpn_fake_m209]:default_weapon_params,wpn_fake_m209_sounds
$prefetch 						= 32
visual							= dynamics\weapons\wpn_ammo\ammo_m209.ogf
cform							= skeleton
class							= G_FAKE

inv_weight						= 0

cost							= 150

blast							= 1.50
blast_r							= 2
blast_impulse					= 240
;delete
blast_impulse_factor			= 1

frags							= 100
frags_r							= 5.82
frag_hit						= 5.50
frag_hit_impulse				= 100
frag_ap							= 5.46

hit_type_blast					= explosion
hit_type_frag					= fire_wound

up_throw_factor					= 0.7

;trail							= weapons\rpg_trail_01, weapons\rpg_trail_02

explode_particles				= explosions\explosion_01

light_color						= 1.9,1.4,0.5
light_range						= 14.0
light_time 						= 0.85

ph_mass							= 1
;engine_f						= 530
;engine_u						= 90

jump_height						= 1

wm_size							= 0.5

fragment_speed					= 100						; скорость осколков (м/с)

wallmark_section				= explosion_marks			; wallmarks

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

;свойства которые читаются, но не используются
inv_name						= ammo-m209
inv_name_short					= "M209"
inv_weight						= .2

inv_grid_width					= 1
inv_grid_height					= 1
inv_grid_x						= 5
inv_grid_y						= 13

kill_msg_x						= 61
kill_msg_y						= 232
kill_msg_width					= 19
kill_msg_height					= 22

;-Свойства CustomRocket---------------------------------------------------------
engine_present					= false						; присутствует ли в ракете двигатель
lights_enabled 					= true						; свет вокруг ракеты, во время полета
trail_light_color 				= 0.6,0.5,0.3
trail_light_range 				= 8.0
force_explode_time				= 10000

[wpn_rpg7_missile]:wpn_fake_og-7b
[wpn_fake_missile]:wpn_fake_vog-25
[wpn_fake_missile1]:wpn_fake_vog-25p
[wpn_fake_missile2]:wpn_fake_m209
