;-----FN P90-----;
;-----Base Setup-----;
[wpn_p90]:identity_immunities
GroupControlSection		= spawn_group
discovery_dependency 		= 
$spawn                   	= "weapons\p90"
$npc                     	= on
$prefetch 		         	= 8
scheduled                	= off
cform                    	= skeleton
class                    	= WP_LR300
min_radius               	= 0
max_radius               	= 75

inv_name	        		= wpn-p90_name
inv_name_short				= wpn-p90_name
description		= enc_weapons1_wpn-p90

upg = nil
upg_last = nil

cost						= 11000
inv_weight					= 2.8

visual                   	= weapons\p90\wpn_p90.ogf

ef_main_weapon_type			= 2
ef_weapon_type				= 6

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			= 3	 ; position and size of the icon that will be used to display weapon in the inventory menu
inv_grid_height			= 1	 ; all icons are on the texture ui_icon_equipment.dds,   
inv_grid_x			= 10	 ; position and size are in terms of 64x64 squares
inv_grid_y			= 5

kill_msg_x					= 72
kill_msg_y					= 82
kill_msg_width				= 56
kill_msg_height				= 23

ammo_limit		         	= 210
ammo_current		     	= 90
ammo_elapsed		     	= 30

ph_mass						= 3


;-----Ballistics, Handling & Accuracy-----;
hit_power                	= 0.58
hit_impulse		        	= 190
hit_type 					= fire_wound

silencer_hit_power       		= 0.46
silencer_hit_impulse	 		= 1
silencer_fire_distance   		= 1
silencer_bullet_speed	 		= 450

fire_distance            	= 500
bullet_speed				= 600
rpm                      	= 800

ammo_mag_size				= 50
ammo_class					= ammo_5.7x28_ss190
fire_modes					= 1, -1
	
tri_state_reload			= off

control_inertion_factor		= 1.0f

fire_dispersion_base		= 0.85
handling_factor				= 1.00
use_aim_bullet				= true
time_to_aim					= 0.50

PDM_disp_base 				= 1.75
PDM_disp_vel_factor 		= 0.50
PDM_disp_accel_factor 		= 1.50
PDM_crouch	 				= 0.50
PDM_crouch_no_acc 			= 0.50

cam_relax_speed        	 	= 0.0
cam_relax_speed_ai      	= 360
cam_dispersion         	 	= 0.45
cam_step_angle_horz			= 1.50
cam_dispersion_inc			= 0.15
cam_dispertion_frac			= 1.00
cam_max_angle				= 180.0
cam_max_angle_horz			= 180.0

fire_dispersion_condition_factor 	= 2.000
misfire_probability 				= 0.0085
misfire_condition_k					= 0.15
condition_shot_dec 					= 0.00055


;-----Sights & Attachments-----;
;--Scope & Sight--
zoom_enabled				= true

scope_status				= 0
scope_name 					= wpn_addon_scope
scope_x 					= 42
scope_y 					= 1

scope_zoom_factor = 70;	    	= 90.0
;max_zoom_factor			= 5
;scope_texture				= wpn\wpn_crosshair_g36

;--Silencer--
silencer_status				= 2

silencer_name  				= wpn_addon_sil_5728_p
silencer_x 					= 147
silencer_y 					= 22

;--Grenade Launcher--
grenade_launcher_status		= 0
grenade_vel					= 75
grenade_class				= ammo_vog-25, ammo_vog-25p
launch_speed				= 75

grenade_launcher_name 		= wpn_addon_grenade_launcher
grenade_launcher_x 			= 105
grenade_launcher_y 			= 18


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

snd_draw					= weapons\p90\p90_draw
snd_holster					= weapons\holster
snd_shoot					= weapons\p90\p90_shoot 
snd_empty					= weapons\empty
snd_reload					= weapons\p90\p90_reload
snd_empty					= weapons\empty
snd_silncer_shot			= weapons\p90\p90_silent

rpm_empty_click 	 		= 200

light_disabled				= false

light_color					= 0.6,0.5,0.3				; params for light during the fire
light_range					= 5							; radius
light_var_color				= 0.05						
light_var_range				= 0.5
light_time 					= 0.2	

silencer_light_color		= 0.6,0.5,0.3
silencer_light_range		= 0.01
silencer_light_var_color	= 0.05
silencer_light_var_range	= 0.5
silencer_light_time 		= 0.2

flame_particles				= weapons\generic_weapon06
smoke_particles				= weapons\generic_shoot_00

silencer_smoke_particles 	= weapons\generic_shoot_00

shell_point		 			= 0.00, 0.262, -0.05
;shell_dir		 			= 0.0, 1.0, 0.0
shell_particles	 			= weapons\generic_shells

;normal                   	= 0, 1, 0
position         	    	= -0.026, -0.185, -0.0
orientation              	= 0, 0, 0

;direction                	= 0, 0, 1

fire_point            	 	= 0.0, 0.262, 0.27

weapon_remove_time			= 1000

strap_position         		= -0.18,-0.45,0.2
strap_orientation      		= -10,-5,10
strap_bone0					= bip01_spine2
strap_bone1					= bip01_spine1


hud                      	= wpn_p90_hud
[wpn_p90_hud]
shell_point          		= -0.,-0.1, -0.8
shell_dir		 			= 0.0, 1.0, 0.0

fire_point               	= 0,0,-0.54
fire_bone                	= muzzle
orientation              	= 0, 0, 0
position             	  	= 0.10,-0.04,0.1
visual                   	= weapons\p90\wpn_p90_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.25
zoom_offset					= -0.10,0.04,-0.1
zoom_rotate_x				= 0.0
zoom_rotate_y				= 0.0
