<!-- edited with XMLSpy v2012 sp1 (http://www.altova.com) by Greg Knowlton (Foundation 9 Entertainment) -->
<WeaponManager>
	<Weapon Name="Submarine_Torpedoes" Accuracy="0.95" BoneName="Root" MeshName="Meshes\Props\weapons\invisiblebullet\invisiblebullet">
		<Trigger Name="SUB_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="SUB_Torpedoes_FiringAnimation">
			<Event Name="Fire">
			</Event>
		</Trigger>
		<Trigger Name="SUB_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="SUB_Torpedoes_Projectile">
			<Event Name="Fire">
				<SpawnProjectile Name="SUB_Torpedoes_Projectile">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<SpawnProjectile Name="SUB_Torpedoes_ProjectileTrail">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</SpawnProjectile>
				<Timer Time="0.5" Name="Volley_02">
					<SpawnProjectile Name="SUB_Torpedoes_Projectile">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
					<SpawnProjectile Name="SUB_Torpedoes_ProjectileTrail">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
				</Timer>
				<Timer Time="1.0" Name="Volley_03">
					<SpawnProjectile Name="SUB_Torpedoes_Projectile">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
					<SpawnProjectile Name="SUB_Torpedoes_ProjectileTrail">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
				</Timer>
				<Timer Time="1.5" Name="Volley_04">
					<SpawnProjectile Name="SUB_Torpedoes_Projectile">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
					<SpawnProjectile Name="SUB_Torpedoes_ProjectileTrail">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
				</Timer>
				<Timer Time="2.0" Name="Volley_05">
					<SpawnProjectile Name="SUB_Torpedoes_Projectile">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
					<SpawnProjectile Name="SUB_Torpedoes_ProjectileTrail">
						<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
					</SpawnProjectile>
				</Timer>
				<CameraEvent Event="ShipFire"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="ShipEndFiring"/>
			</Event>
		</Trigger>
		<Trigger Name="SUB_Torpedoes_FiringSFX">
			<Event Name="StartFire">
				<PlayGameSound SoundID="_trpdo_mk46_fire" Looping="false">
					<AttachmentLocation AttachmentName="attachmentPointInvisible"/>
				</PlayGameSound>
			</Event>
		</Trigger>
		<Trigger Name="FirePrimary" RateOfFire=".3">
			<Include>SUB_Torpedoes_Rumble</Include>
			<Include>SUB_Torpedoes_FiringVFX</Include>
			<Include>SUB_Torpedoes_FiringSFX</Include>
			<Include>SUB_Torpedoes_FiringAnimation</Include>
			<Include>SUB_Torpedoes_Projectile</Include>
		</Trigger>
		<Trigger Name="FirePrimary_Trail" RateOfFire=".3">
		</Trigger>
		<Trigger Name="Reset">
			<Event Name="Fire">
			</Event>
		</Trigger>
	</Weapon>
	<Projectile Name="SUB_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="SUB_TORPEDO" Damage="700">
				<ApplyImpulse Impulse="50"/>
			</ApplyDamage>
		</Event>
	</Projectile>
	<Projectile Name="SUB_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">
			<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>
