VehicleMountedMG = {
	name = "VehicleMountedMG",
	
	PlayerSlowDown = 1.0,									-- factor to slow down the player when he holds that weapon
--	character	= "Objects/Vehicles/Mounted_gun/m2.cga",
	---------------------------------------------------
	ActivateSound = Sound:Load3DSound("Sounds/Weapons/M4/m4weapact.wav"),	-- sound to play when this weapon is selected
	AimMode=1,
	
	ZoomNoSway=1, 			--no sway in zoom mode
	ZoomOverlayFunc=AimModeZoomHUD.DrawHUD,
	---------------------------------------------------
	ZoomFixedFactor=1,
	FireParams ={													-- describes all supported firemodes
	{
		vehicleWeapon = 1,
		no_zoom = 1,
		HasCrosshair=1,
--		draw_thirdperson = 1,--if 1 the crosshair will be showed also in thirdperson view
		AmmoType="VehicleMG",
		projectile_class="NeutronBolt",						--mod added
		min_recoil=0,
		max_recoil=0,
		reload_time=0.1, -- default 2.8
		fire_rate=0.4,
		distance=1600,
		damage=20, -- default =7
		damage_drop_per_meter=.004,
		bullet_per_shot=1,
		bullets_per_clip=140,
		FModeActivationTime = 2.0,
		iImpactForceMul = 50,
		iImpactForceMulFinal = 140,
		
		FireSounds = {
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_MONO.wav",			
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_MONO.wav",
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_MONO.wav",
		},
		FireSoundsStereo = {
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_LOOP.wav",				
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_LOOP.wav",
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_LOOP.wav",
		},
		DrySound = "Sounds/Weapons/S500/dryfire1.wav",
		
		LightFlash = {
			fRadius = 5.0,
			vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
			vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
			fLifeTime = 0.75,
		},

		SoundMinMaxVol = { 255, 10, 4000 },
	},
	{
		vehicleWeapon = 1,		
		HasCrosshair=1,
		no_zoom = 1,
--		draw_thirdperson = 1,--if 1 the crosshair will be showed also in thirdperson view
		AmmoType="VehicleRocket",
		projectile_class="Rocket",
		reload_time=4.5, -- default 3.82
		fire_rate=3.65,
--		fire_activation=FireActivation_OnPress,
		bullet_per_shot=1,
		bullets_per_clip=30,
		FModeActivationTime = 0.0,
		iImpactForceMul = 10,
		
		FireSounds = {
				"Sounds/Weapons/rl/FINAL_RL_MONO.wav",
			},
			FireSoundsStereo = {
				"Sounds/Weapons/rl/FINAL_RL_STEREO.wav",
	
			},
			DrySound = "Sounds/Weapons/AG36/DryFire.wav",

		LightFlash = {
			fRadius = 5.0,
			vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
			vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
			fLifeTime = 0.25,
		},

		SoundMinMaxVol = { 255, 6, 4000 },
	},
	-- special AI firemode follows
	{
		vehicleWeapon = 1,
		no_zoom = 1,
		HasCrosshair=1,
--		draw_thirdperson = 1,--if 1 the crosshair will be showed also in thirdperson view
		AmmoType="Unlimited",
		projectile_class="NeutronBolt",						--mod added
		min_recoil=0,
		max_recoil=0,
		reload_time=0.1,
		fire_rate=0.4,
		distance=1600,
		damage=20,
		damage_drop_per_meter=.004,
		bullet_per_shot=1,
		bullets_per_clip=140,
		FModeActivationTime = 2.0,
		iImpactForceMul = 50,
		iImpactForceMulFinal = 140,
		
		FireSounds = {
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_MONO.wav",			
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_MONO.wav",
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_MONO.wav",
		},
		FireSoundsStereo = {
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_LOOP.wav",				
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_LOOP.wav",
			"Sounds/Weapons/mounted/FINAL_M249_STEREO_LOOP.wav",
		},
		DrySound = "Sounds/Weapons/S500/dryfire1.wav",
		
		LightFlash = {
			fRadius = 5.0,
			vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
			vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
			fLifeTime = 0.75,
		},

		SoundMinMaxVol = { 255, 10, 4000 },
	},
	
	},

	SoundEvents={
	--	animname,	frame,	soundfile		
	{	"reload1",	20,			Sound:LoadSound("Sounds/Weapons/M4/M4_20.wav")},
	{	"reload1",	33,			Sound:LoadSound("Sounds/Weapons/M4/M4_33.wav")},
	{	"reload1",	47,			Sound:LoadSound("Sounds/Weapons/M4/M4_47.wav")},
	},
	
	
	CrosshairParticles = {
		focus = 0,
		speed = 0.0,
		count = 1,
		size = 0.15, 
		size_speed=0.0,
		gravity={x=0.0,y=0.0,z=-0.0},
		rotation={x=0.0,y=0.0,z=0.0},
		lifetime=0.0,
		tid = System:LoadTexture("textures\\cloud.dds"),
		start_color = {1,.2,.2},
		end_color = {1,.2,.2},
		blend_type = 2,
		frames=0,
		draw_last=1,
	},
	
	cross3D = 1;
}

CreateBasicWeapon(VehicleMountedMG);

--function VehicleMountedMG.Client:OnEnhanceHUD(bHit)
--
--	BasicWeapon.DoAutoCrosshair( self, bHit);
--
--end
