<!-- edited with XMLSpy v2011 rel. 3 (x64) (http://www.altova.com) by Mike Park (Foundation 9 Entertainment) -->
<WeaponManager>
	<Weapon Name="Cruiser_Torpedoes" Accuracy="0.95" BoneName="Root" MeshName="Meshes\Props\weapons\invisiblebullet\invisiblebullet">
		<Trigger Name="CRS_Torpedoes_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\__Templates__\Ships\Artillery\Ste_Artillery_Muzzle_01_">
						<ParticleFlag>emitter_follows</ParticleFlag>
						<ParticleFlag>particles_follow</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnParticle>
			</Event>
		</Trigger>
		
		<Trigger Name="CRS_Torpedoes_FiringAnimation">
			<Event Name="Fire">
			</Event>
		</Trigger>
		
		<Trigger Name="CRS_Torpedoes_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="CRS_Torpedoes_Projectile">
			<Event Name="Fire">
				<SpawnProjectile Name="CRS_Torpedoes_Projectile">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<SpawnProjectile Name="CRS_Torpedoes_Projectile">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<CameraEvent Event="ShipFire"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="ShipEndFiring"/>
			</Event>
		</Trigger>
		
		<Trigger Name="CRS_Torpedoes_ProjectileTrail">
			<Event Name="Fire">
				<SpawnProjectile Name="CRS_Torpedoes_ProjectileTrail">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<SpawnProjectile Name="CRS_Torpedoes_ProjectileTrail">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
			</Event>
		</Trigger>
		
		<Trigger Name="CRS_Torpedoes_FiringSFX">
			<Event Name="StartFire">
				<PlayGameSound SoundID="_trpdo_mk46_fire" Looping="false">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</PlayGameSound>
			</Event>
		</Trigger>
		
		<Trigger Name="FirePrimary" RateOfFire=".3">
			<Include>CRS_Torpedoes_Rumble</Include>
			<Include>CRS_Torpedoes_FiringVFX</Include>
			<Include>CRS_Torpedoes_FiringSFX</Include>
			<Include>CRS_Torpedoes_FiringAnimation</Include>
			<Include>CRS_Torpedoes_Projectile</Include>
		</Trigger>
		
		<Trigger Name="FirePrimary_Trail" RateOfFire=".3">
			<Include>CRS_Torpedoes_ProjectileTrail</Include>
		</Trigger>
		
		<Trigger Name="Reset">
			<Event Name="Fire">
			</Event>
		</Trigger>
	</Weapon>
	
	<Projectile Name="CRS_Torpedoes_Projectile" MaxCollisions="1" HitMap="StandardHitMap">
		<BSTorpedoPath Range="800.0" Velocity="200"/>
		<SphereCollision Radius="10">
			<TestAgainst>PHYSICS_CLASS_DEFENSIVECAPSULE</TestAgainst>
		</SphereCollision>
		<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="torpedo_impact"/>
			<ApplyDamage ReactionName="CRS_TORPEDO" Damage="600">
				<ApplyImpulse Impulse="50"/>
			</ApplyDamage>
		</Event>
	</Projectile>
	
	<Projectile Name="CRS_Torpedoes_ProjectileTrail" WhizBySound="bullet_whiz_by" WhizByDistance="1" MaxCollisions="1" HitMap="StandardHitMap">
		<BSTorpedoPath Range="800.0" Velocity="200" UseLastPathDir="true"/>
		<SphereCollision Radius="10">
			<TestAgainst>PHYSICS_CLASS_DEFENSIVECAPSULE</TestAgainst>
		</SphereCollision>
		<Event Name="ProjectileStart">
			<!--SpawnTrail U0="64" U1="128" VSize="-1" StartWidth="8" EndWidth=".01" FadeAngle="1" CapV0="64" CapU0="257" CapWidth="64" Drift="0.0" CameraWind="0.0" R=".2" G=".2" B="1" A=".3" Duration="5">
				<ProjectileLocation/>
			</SpawnTrail-->
			<SpawnParticle>
				<ParticleData ParticleFXId="Soglo\Particles\__cFX__\Navy\Ship_Weapons\Ste_Navy_Torpedo_Hld01_">
					<ParticleFlag>emitter_follows</ParticleFlag>
					<ParticleFlag>particles_follows</ParticleFlag>
					<ParticleFlag>stop_emit_on_attachment_death</ParticleFlag>
				</ParticleData>
				<ProjectileLocation/>
			</SpawnParticle>
			<BSShip2ShipActiveAction/>
		</Event>
	</Projectile>
	
</WeaponManager>

