<!-- edited with XMLSpy v2011 rel. 3 (x64) (http://www.altova.com) by Mike Park (Foundation 9 Entertainment) -->
<WeaponManager>
	<Weapon Name="Mothership_Plasma" Accuracy="0.0" BoneName="Root" MeshName="Meshes\Props\weapons\invisiblebullet\invisiblebullet">
		<Trigger Name="MTH_Plasma_FiringVFX">
			<Event Name="Fire">
				<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				<LightFlash R=".1" G=".3" B=".5" Radius="2" Attack="0" Sustain="0" Decay=".15"/>
				<SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\regents_craft\regent_weapons\ste_reg_missile_flash_hld_01">
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnParticle>
			</Event>
		</Trigger>
		
		<Trigger Name="MTH_Plasma_FiringAnimation">
			<Event Name="Fire">
			</Event>
		</Trigger>
		
		<Trigger Name="MTH_Plasma_Rumble" RateOfFire="15">
			<Event Name="Fire">
				<Rumble Name="Pistol" Time="0.09" FadeUpTime="0" FadeDownTime="0" Loop="false" Range="60" PlayOnOwner="false"/>
			</Event>
		</Trigger>
		
		<Trigger Name="MTH_Plasma_Projectile">
			<Event Name="Fire">
				<SpawnProjectile Name="MTH_Plasma_Projectile">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<SpawnProjectile Name="MTH_Plasma_ProjectileTrail">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<Timer Time="1.0" Name="MTH_Plasma_Volley_02">
					<SpawnProjectile Name="MTH_Plasma_Projectile">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
					<SpawnProjectile Name="MTH_Plasma_ProjectileTrail">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
				</Timer>
			</Event>
			<Event Name="CeaseFire">
			</Event>
		</Trigger>
				
		<Trigger Name="MTH_Plasma_FiringSFX">
			<Event Name="StartFire">
				<PlayGameSound SoundID="_plasma_fire" Looping="false">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</PlayGameSound>
			</Event>
		</Trigger>
		
		<Trigger Name="FirePrimary" RateOfFire=".5">
			<Include>MTH_Plasma_Rumble</Include>
			<Include>MTH_Plasma_FiringVFX</Include>
			<Include>MTH_Plasma_FiringSFX</Include>
			<Include>MTH_Plasma_FiringAnimation</Include>
			<Include>MTH_Plasma_Projectile</Include>
		</Trigger>
		
		<Trigger Name="FirePrimary_Trail" RateOfFire=".5">
		</Trigger>
		
		<Trigger Name="Reset">
			<Event Name="Fire">
			</Event>
		</Trigger>
	</Weapon>
	
	<Projectile Name="MTH_Plasma_Projectile" MaxCollisions="1" HitMap="StandardHitMap">
		<AccelerationTargetPath Range="1000.0" Velocity="400" LifeTime="1000.f">
			<WorldSpaceAccel x="0.0" y="-200.0" z="0.0"/>
		</AccelerationTargetPath>
		<LineCollision/>
		<Event Name="ProjectileStart">
			<BSShip2ShipActiveAction/>
		</Event>
		<Event Name="HitGeometry">
			<SurfaceImpact SurfaceEffectName="water_miss"/>
		</Event>
		<Event Name="HitObject">
			<SurfaceImpact SurfaceEffectName="water_miss"/>
		</Event>
		<Event Name="HitCharacter">
			<SurfaceImpact SurfaceEffectName="regent_pegs_impact"/>
			<ApplyDamage ReactionName="MTH_PLASMA" Damage="800">
				<ApplyImpulse Impulse="30"/>
			</ApplyDamage>
		</Event>
	</Projectile>
	
	<Projectile Name="MTH_Plasma_ProjectileTrail" WhizBySound="bullet_whiz_by" WhizByDistance="1" MaxCollisions="1" HitMap="StandardHitMap">
		<AccelerationTargetPath Range="1000.0" Velocity="400" LifeTime="1000.f">
			<WorldSpaceAccel x="0.0" y="-200.0" z="0.0"/>
		</AccelerationTargetPath>	
		<LineCollision/>
		<Event Name="ProjectileStart">
			<Mesh MeshName="meshes/props/weapons/peg/peg.mdl">
				<ProjectileLocation/>
			</Mesh>
			<!--SpawnTrail U0="0" U1="64" VSize="20" StartWidth="2.0" EndWidth=".01" FadeAngle="1.0" Drift=".3" CameraWind=".15" MaxSubSamples="1" R="1.5" G="1.0" B="1.0" A="1" Duration="1">
				<ProjectileLocation/>
			</SpawnTrail-->
			<SpawnParticle>
				<ParticleData ParticleFXId="soglo\particles\__cfx__\regents_craft\regent_weapons\ste_s2s_peg_h_01">
					<ParticleFlag>emitter_follows</ParticleFlag>
					<ParticleFlag>particles_follows</ParticleFlag>
					<ParticleFlag>stop_emit_on_attachment_death</ParticleFlag>
				</ParticleData>
				<ProjectileLocation/>
			</SpawnParticle>
			<BSShip2ShipActiveAction/>
		</Event>
	</Projectile>
	
</WeaponManager>
