///////////////////////////////////////////////////////////////////////////////
// Ammo

AddAmmo = TDExplosive
	PresetName = Coalition Flak Shell
	Mass = 4
	Buyable = 0
	RestThreshold = -500
	HitsMOs = 1
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Coalition.rte/Devices/Sprites/CannonRound.bmp
	FrameCount = 1
	SpriteOffset = Vector
		X = -2
		Y = -2
	EntryWound = AEmitter
		CopyOf = Dent Metal
	ExitWound = AEmitter
		CopyOf = Dent Metal
	AtomGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Military Stuff
		Resolution = 2
		Depth = 0
	DeepGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Military Stuff
		Resolution = 4
		Depth = 1
	DeepCheck = 0
	JointStrength = 6
	JointStiffness = 0.5
	DrawAfterParent = 1
	DetonationSound = Sound
		AddSample = ContentFile
			Path = Base.rte/Sounds/Explode2.wav
	StanceOffset = Vector
		X = -12
		Y = -5
	StartThrowOffset = Vector
		X = -12
		Y = -5
	EndThrowOffset = Vector
		X = -12
		Y = -5
	TriggerDelay = 120
	ParticleNumberToAdd = 10
	AddParticles = MOSParticle
		CopyOf = Side Thruster Blast Ball 1
	ParticleNumberToAdd = 10
	AddParticles = MOPixel
		CopyOf = Grenade Fragment Gray
	ParticleNumberToAdd = 10
	AddParticles = MOPixel
		CopyOf = Grenade Fragment Yellow
	ParticleNumberToAdd = 10
	AddParticles = MOPixel
		CopyOf = Air Blast
	GibImpulseLimit = 50
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Explosion Smoke 1
			PresetName = Cannon Smoke 1
			AirResistance = 0.2
		Count = 15
		Spread = 3.1
		MaxVelocity = 40
		MinVelocity = 5
		LifeVariation = 0.50
		InheritsVel = 1
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Explosion Smoke 2
			PresetName = Cannon Smoke 2
			AirResistance = 0.2
		Count = 10
		Spread = 3.1
		MaxVelocity = 40
		MinVelocity = 5
		LifeVariation = 0.50
		InheritsVel = 1
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Explosion Smoke 1
			PresetName = Cannon Smoke 3
			AirResistance = 0.4
		Count = 8
		Spread = 3.1
		MaxVelocity = 40
		MinVelocity = 5
		LifeVariation = 0.50
		InheritsVel = 1
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Explosion Smoke 2
			PresetName = Cannon Smoke 4
			AirResistance = 0.3
		Count = 8
		Spread = 3.1
		MaxVelocity = 40
		MinVelocity = 5
		LifeVariation = 0.50
		InheritsVel = 1
	AddGib = Gib
		GibParticle = MOPixel
			CopyOf = Flash Particle Yellow Big
		Count = 1
		Spread = 2.25
		MaxVelocity = 0.1
		MinVelocity = 0
		InheritsVel = 0


AddAmmo = Round
	PresetName = Round Coalition Flak Cannon
	ParticleCount = 1
	Particle = TDExplosive
		CopyOf = Coalition Flak Shell
	Shell = AEmitter
		CopyOf = Cannon Casing
	FireVelocity = 90
	ShellVelocity = 10
	Separation = 5

///////////////////////////////////////////////////////////////////////////////
// Magazines


AddAmmo = Magazine
	PresetName = Magazine Coalition Flak Cannon
	Mass = 10
	HitsMOs = 0
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Coalition.rte/Devices/Sprites/MagazineCannonA.bmp
	FrameCount = 1
	SpriteOffset = Vector
		X = -4
		Y = -3
	ParentOffset = Vector
		X = -3
		Y = 4
	EntryWound = AEmitter
		CopyOf = Dent Metal
	ExitWound = AEmitter
		CopyOf = Dent Metal
	AtomGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Bullet Metal
		Resolution = 2
		Depth = 0
	DeepGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Bullet Metal
		Resolution = 3
		Depth = 1
	DeepCheck = 0
	JointStrength = 200
	JointStiffness = 1
	DrawAfterParent = 0
	RoundCount = 3
	RTTRatio = 0
	RegularRound = Round
		CopyOf = Round Coalition Flak Cannon
	TracerRound = None

///////////////////////////////////////////////////////////////////////////////
// Devices


AddDevice = HDFirearm
	PresetName = Flak Cannon
	AddToGroup = Weapons
	Description = Flak Cannon. A devastating anti-air weapon, it can take out a dropship from a nice distance with easy and little aim. Not too great at close quaters though.
	Mass = 48
	HitsMOs = 0
	GetsHitByMOs = 1
	SpriteFile = ContentFile
		FilePath = Coalition.rte/Devices/Sprites/CannonLongA.bmp
	FrameCount = 2
	SpriteOffset = Vector
		X = -18
		Y = -5
	EntryWound = AEmitter
		CopyOf = Dent Metal
	ExitWound = AEmitter
		CopyOf = Dent Metal
	GoldValue = 130
	AtomGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Military Stuff
		Resolution = 4
		Depth = 0
	DeepGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Military Stuff
		Resolution = 4
		Depth = 10
	DeepCheck = 0
	JointStrength = 75
	JointStiffness = 0.5
	JointOffset = Vector
		X = -8
		Y = 3
	DrawAfterParent = 0
	StanceOffset = Vector
		X = 6
		Y = 6
	SharpStanceOffset = Vector
		X = 9
		Y = 2
	SupportOffset = Vector
		X = -2
		Y = 5
	SharpLength = 400
	Magazine = Magazine
		CopyOf = Magazine Coalition Flak Cannon
	Flash = Attachable
		CopyOf = Muzzle Flash Shotgun
	FireSound = Sound
		AddSample = ContentFile
			FilePath = Base.rte/Devices/Cannons/BlamWhoshClick.wav
	EmptySound = Sound
		AddSample = ContentFile
			FilePath = Base.rte/Devices/EmptyClick3.wav
	ReloadStartSound = Sound
		AddSample = ContentFile
			FilePath = Base.rte/Devices/ReloadStart.wav
	ReloadEndSound = Sound
		AddSample = ContentFile
			FilePath = Base.rte/Devices/ReloadEnd.wav
	RateOfFire = 50
	ReloadTime = 3700
	FullAuto = 0
	FireIgnoresThis = 1
	ShakeRange = 10
	SharpShakeRange = 1
	NoSupportFactor = 3
	ParticleSpreadRange = 3
	ShellSpreadRange = 8
	ShellAngVelRange = 0
	MuzzleOffset = Vector
		X = 19
		Y = 0
	EjectionOffset = Vector
		X = -1
		Y = -1
	AddGib = Gib
		GibParticle = MOPixel
			CopyOf = Spark Yellow 1
		Count = 6
		Spread = 2.25
		MaxVelocity = 20
		MinVelocity = 8
	AddGib = Gib
		GibParticle = MOPixel
			CopyOf = Spark Yellow 2
		Count = 7
		Spread = 2.25
		MaxVelocity = 20
		MinVelocity = 8
	AddGib = Gib
		GibParticle = MOPixel
			CopyOf = Drop Oil
		Count = 8
		Spread = 2.25
		MaxVelocity = 10
		MinVelocity = 1
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Gib Metal Rust Micro A
		Count = 14
		Spread = 2.25
		MaxVelocity = 15
		MinVelocity = 5
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Gib Metal Grey Micro A
		Count = 16
		Spread = 2.25
		MaxVelocity = 15
		MinVelocity = 5
	AddGib = Gib
		GibParticle = MOSRotating
			CopyOf = Coalition Weapons Gib E
		Count = 1
		Offset = Vector
			X = 5
			Y = 0
	AddGib = Gib
		GibParticle = MOSRotating
			CopyOf = Coalition Weapons Gib C
		Count = 1
		Offset = Vector
			X = 4
			Y = 2
	AddGib = Gib
		GibParticle = MOSRotating
			CopyOf = Coalition Weapons Gib A
		Count = 1
		Spread = 2.25
		MaxVelocity = 10
		MinVelocity = 1
		Offset = Vector
			X = -5
			Y = 0
	GibWoundLimit = 5