MP5 = {
	-- DESCRIPTION:
	-- No Single shot
	-- Small recoil, does not travel far (300m), quiet
	-- good stealth gun
	name			= "MP5",
	object		= "Objects/Weapons/MP5/MP5_bind.cgf",
	character	= "Objects/Weapons/MP5/MP5.cgf",

	---------------------------------------------------
	PlayerSlowDown = 0.9,			-- factor to slow down the player when he holds that weapon
	---------------------------------------------------
	ActivateSound = Sound:LoadSound("Sounds/Weapons/MP5/mp5weapact.wav",0,100),	-- sound to play when this weapon is selected
	---------------------------------------------------

	-- if the weapon supports zooming then add this...
	MaxZoomSteps =  1,
	ZoomSteps = { 1.4 },
	ZoomActive = 0,
	AimMode=1,
	
	ZoomOverlayFunc=AimModeZoomHUD.DrawHUD,
	ZoomFixedFactor=1,
	ZoomNoSway=1, --no sway in zoom mode
	
	---------------------------------------------------

	FireParams =
	{													-- describes all supported 	firemodes
		{
		--HasCrosshair=1,
		AmmoType="SMG",
		projectile_class="Flame",
		reload_time=2.8,
		fire_rate=0.02,
		bullet_per_shot=1,
		bullets_per_clip=200,
		FModeActivationTime = 1.0,
		fire_activation=bor(FireActivation_OnPress,FireActivation_OnHold),

		
		FireLoop="Sounds/Weapons/mp5/FINAL_MP5_MONO_LOOP.wav",
		FireLoopStereo="Sounds/Weapons/mp5/FINAL_MP5_STEREO_LOOP.wav",
		TrailOff="Sounds/Weapons/mp5/FINAL_MP5_MONO_TAIL.wav",
		TrailOffStereo="Sounds/Weapons/mp5/FINAL_MP5_STEREO_TAIL.wav",
		DrySound ="Sounds/Weapons/MP5/DryFire.wav",


		
		SoundMinMaxVol = { 200, 4, 500 },

		LightFlash = {
			fRadius = 3.0,
			vDiffRGBA = { r = 1.0, g = 1.0, b = 0.7, a = 1.0, },
			vSpecRGBA = { r = 1.0, g = 1.0, b = 0.7, a = 1.0, },
			fLifeTime = 0.1,
		},
		
		ExitEffect = "fire.FlameGunExit.a",
		
		},	
	
		
	},

		SoundEvents={
		--	animname,	frame,	soundfil
		{	"reload1",	17,			Sound:LoadSound("Sounds/Weapons/MP5/mp5_18.wav",0,100)},
		{	"reload1",	32,			Sound:LoadSound("Sounds/Weapons/MP5/mp5_41.wav",0,100)},
		{	"reload1",	48,			Sound:LoadSound("Sounds/Weapons/MP5/mp5_57.wav",0,100)},
--		{	"swim",		1,			Sound:LoadSound("Sounds/player/water/underwaterswim2.wav",0,255)},
	},
}

CreateBasicWeapon(MP5);

---------------------------------------------------------------
--ANIMTABLE
------------------
MP5.anim_table={}
--AUTOMATIC FIRE
MP5.anim_table[1]={
	idle={
		"Idle11",
		"Idle21",
	},
	reload={
		"Reload1",	
	},
	fidget={
		"fidget11",
		"fidget21",
	},
	fire={
		"Fire11",
		"Fire21",
	},
	melee={
		"Fire23",
	},
	swim={
		"swim",
	},
	activate={
		"Activate1",
	},
}

--SINGLE FIRE
MP5.anim_table[2]=MP5.anim_table[1];
