// Serpentine Weapon
// An Elysian weapon of the Malleus Armory Catalogue
// Credit goes to p3lb0x for the basis of the code and the idea
// Sound effects from grsites.com

//AddEffect = MOSParticle
//	PresetName = Small Pulse Trail
//	Mass = .002
//	GlobalAccScalar = 0
//	AirResistance = 0.08
//	RestThreshold = -1
//	Sharpness = 0
//	HitsMOs = 0
//	GetsHitByMOs = 0
//	SpriteFile = ContentFile
//		FilePath = Malleus.rte/Devices/Serpentine/Effects/PulseTrail.BMP
//	FrameCount = 5
//	SpriteOffset = Vector
//		X = 0
//		Y = 0
//	AngularVel = 0
//	Atom = Atom
//		Material = Material
//			CopyOf = Air
//		TrailLength = 10
//	Framerate = 0

AddEffect = Attachable
	PresetName = Serpentine Muzzle Flash
	Mass = 0.0001
	HitsMOs = 0
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Malleus.rte/Devices/Serpentine/Effects/MuzzleFlash01.bmp
	FrameCount = 4
	SpriteOffset = Vector
		X = 3
		Y = -7
	AtomGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Air
		Resolution = 2
		Depth = 100
	DeepGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Air
		Resolution = 3
		Depth = 100
	DeepCheck = 0
	JointStrength = 10000
	JointStiffness = 1
	ScreenEffect = ContentFile
		FilePath = Malleus.rte/Devices/Serpentine/Effects/RedBig.bmp
	DrawAfterParent = 1

AddAmmo = AEmitter
	PresetName = Serpentine Shot
	Mass = 0.5
	GlobalAccScalar = 0.5
	AirResistance = 0.05
	RestThreshold = -500
	HitsMOs = 1
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Malleus.rte/Devices/Serpentine/Images/SerpShot.bmp
	FrameCount = 3
	OrientToVel = 0.6
	SpriteOffset = Vector
		X = -4
		Y = -3
	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 = 1
	EmissionAngle = Matrix
		AngleDegrees = 180
	ScreenEffect = ContentFile
		FilePath = Malleus.rte/Devices/Serpentine/Effects/RedBig.bmp
	EffectStartTime = 0
	EffectStopTime = 55
	EffectStartStrength = 1.0
	EffectStopStrength = 0
	EffectAlwaysShows = 1
	BurstTriggered = 1
	AddEmission = Emission
		EmittedParticle = MOPixel
			CopyOf = Air Blast
			InstanceName = Blast Air
			Mass = 1
			LifeTime = 2
		ParticlesPerMinute = 2000
		BurstSize = 1
		Spread = 1
		MaxVelocity = 6
		MinVelocity = 2
		PushesEmitter = 1
	AddEmission = Emission
		EmittedParticle = Attachable
			CopyOf = Serpentine Muzzle Flash
			InstanceName = Serpentine Pulse Tail
			LifeTime = 200
		ParticlesPerMinute = 5000
		BurstSize = 1
		Spread = 3.1
		MaxVelocity = 1
		MinVelocity = 0
		PushesEmitter = 0
	EmissionEnabled = 1
	EmissionsIgnoreThis = 0
	GibImpulseLimit = 3
	AddGib = Gib
		GibParticle = MOPixel
			CopyOf = Malleus MedBurst Red
			InstanceName = Serp Burst Red
			LifeTime = 20
		Count = 6
		Spread = 2
		MinVelocity = 30
		MaxVelocity = 60
		InheritsVel = 0
	AddGib = Gib
		GibParticle = AEmitter
			CopyOf = Ground Flames
		Count = 2
		MinVelocity = 3
		MaxVelocity = 12
	AddGib = Gib
		GibParticle = MOSParticle
			CopyOf = Fire Puff Small
			LifeTime = 20
		Count = 3
		Spread = 2
		MinVelocity = 2
		MaxVelocity = 8
		InheritsVel = 0
	EmissionsIgnoreThis = 0
	EmissionDamage = 0
	GibImpulseLimit = 8

AddAmmo = Round
	PresetName = Round SerpShot
	ParticleCount = 1
	Particle = AEmitter
		CopyOf = Serpentine Shot
	FireVelocity = 35
	ShellVelocity = 5
	Separation = 5



// MAGAZINE
AddAmmo = Magazine
	PresetName = Magazine Serpentine
	Mass = 6
	HitsMOs = 0
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Malleus.rte/Devices/Serpentine/Images/SerpMag.bmp
	FrameCount = 1
	SpriteOffset = Vector
		X = -1
		Y = 2
	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 = 1
	JointStrength = 200
	JointStiffness = 1
	DrawAfterParent = 0
	RoundCount = 50
	RTTRatio = 0
	RegularRound = Round
		CopyOf = Round SerpShot
	TracerRound = None

//WEAPON
AddDevice = HDFirearm
	PresetName = Serpentine
	AddToGroup = Weapons
	AddToGroup = Rifles
	Mass = 12
	HitsMOs = 0
	GetsHitByMOs = 1
	SpriteFile = ContentFile
		FilePath = Malleus.rte/Devices/Serpentine/Images/Serpentine.bmp
	FrameCount = 4
	SpriteOffset = Vector
		X = -16
		Y = -4
	EntryWound = AEmitter
		CopyOf = Dent Metal
	ExitWound = AEmitter
		CopyOf = Dent Metal
	GoldValue = 60
	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 = -7
		Y = 3
	DrawAfterParent = 0
	StanceOffset = Vector
		X = 3
		Y = 8
	SharpStanceOffset = Vector
		X = 7
		Y = -1
	SupportOffset = Vector
		X = 0
		Y = 3
	SharpLength = 260
	Flash = Attachable
		CopyOf = Serpentine Muzzle Flash
	DrawAfterParent = 1
	Magazine = Magazine
		CopyOf = Magazine Serpentine
	FireSound = Sound
		AddSample = ContentFile
			FilePath = Malleus.rte/Devices/Serpentine/Sounds/photon000.wav
		AddSample = ContentFile
			FilePath = Malleus.rte/Devices/Serpentine/Sounds/photon001.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 = 600
	ReloadTime = 4000
	FullAuto = 1
	FireIgnoresThis = 1
	ShakeRange = 8
	SharpShakeRange = 2
	NoSupportFactor = 2.5
	ParticleSpreadRange = 1
	ShellSpreadRange = 2
	ShellAngVelRange = 2
	MuzzleOffset = Vector
		X = 15
		Y = 0
	GibWoundLimit = 10
