<!-- edited with XMLSpy v2011 rel. 3 (x64) (http://www.altova.com) by Mike Park (Foundation 9 Entertainment) -->
<WeaponManager>
	<Weapon Name="SHOTGUN" BoneName="RAttachment" MeshName="Meshes\Props\weapons\shotgun_01\shotgun_01">
		<Ammo Name="Primary_Ammo">
			<Clip ClipSize="8" PoolSize="32"/>
		</Ammo>
		<Trigger Name="Shotgun_FiringVFX">
			<SpawnParticle Effect="soglo\particles\__cfx__\weapons\shotgun\ste_sgun_flash_01">
				<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				<AttachmentFlag>emitter_follows</AttachmentFlag>
			</SpawnParticle>
			<SpawnParticle Effect="soglo\particles\__cfx__\weapons\shotgun\ste_sgun_shell_01">
				<AttachmentLocation AttachmentName="attachmentPointEject"/>
				<AttachmentFlag>emitter_follows</AttachmentFlag>
			</SpawnParticle>
		</Trigger>
		<Trigger Name="Shotgun_MuzzleFlashRoF">
			<Event Name="Fire">
				<LightFlash R="1" G=".8" B=".6" Radius="5" Attack=".01" Sustain=".09" Decay=".01"/>
				<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				<SpawnParticle>
					<ParticleData ParticleFXID="soglo\particles\__cfx__\weapons\shotgun\ste_sgun_flash_01">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</SpawnParticle>
				<SpawnParticle>
					<ParticleData ParticleFXID="soglo\particles\__cfx__\weapons\shotgun\ste_sgun_shell_01">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointEject"/>
				</SpawnParticle>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_FiringAnimation">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\Shotgun\combat\shoot_prop" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_PlayerFiringSequences">
			<Event Name="Fire">
				<UseParentObject>
					<PlaySequence Name="Player_Recoil_Additive_Shotgun" Slot="11" SkipTicks="0" TweenTicks="0" TweenOutTicks="12" AllowTransToSelf="true"/>
				</UseParentObject>
				<CameraEvent Event="ShotgunFire"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="ShotgunEndFiring"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_PlayerPMFiringSequences">
			<Event Name="Fire">
				<UseParentObject>
					<PlaySequence Name="Player_Recoil_Additive_Precision_Shotgun" Slot="11" SkipTicks="0" TweenTicks="0" TweenOutTicks="12" AllowTransToSelf="true"/>
				</UseParentObject>
				<CameraEvent Event="ShotgunFirePrecision"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="ShotgunEndFiringPrecision"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Rumble" RateOfFire="1">
			<Event Name="Fire">
				<Rumble Name="Shotgun" Time="0.06" FadeUpTime="0" FadeDownTime="0" Loop="false" Range="60" PlayOnOwner="false"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Projectile">
			<Event Name="Fire">
				<ClearPlayerWeaponKills Type="Shotgun"/>
				<SpawnMultiProjectile Name="Shotgun_Projectile" Amount="25">
					<CameraLocation/>
				</SpawnMultiProjectile>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_FiringSFX">
			<Event Name="StartFire">
				<PlayGameSound SoundID="Play_M1014_FIRE" EndSoundID="" Looping="false">
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</PlayGameSound>
			</Event>
		</Trigger>
		<Trigger Name="EmptyFire">
			<Event Name="Fire">
				<PlayGameSound SoundID="M4A1_DRYFIRE" EndSoundID="" Looping="false">
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</PlayGameSound>
			</Event>
		</Trigger>
		<Trigger Name="FirePrimary" RateOfFire="2">
			<Ammo Name="Primary_Ammo"/>
			<Include>Shotgun_Rumble</Include>
			<Include>Shotgun_FiringVFX</Include>
			<Include>Shotgun_FiringSFX</Include>
			<Include>Shotgun_FiringAnimation</Include>
			<Include>Shotgun_PlayerFiringSequences</Include>
			<Include>Shotgun_Projectile</Include>
			<Include>Shotgun_MuzzleFlashRoF</Include>
		</Trigger>
		<Trigger Name="FirePrimary_Trail" RateOfFire="1">
			<Include>Shotgun_ProjectileTrail</Include>
		</Trigger>
		<Trigger Name="FirePrimary_Precision" RateOfFire="2">
			<Ammo Name="Primary_Ammo"/>
			<Include>Shotgun_Projectile</Include>
			<Include>Shotgun_FiringSFX</Include>
			<Include>Shotgun_FiringPMVFX</Include>
			<Include>Shotgun_FiringAnimation</Include>
			<Include>Shotgun_PlayerPMFiringSequences</Include>
			<Include>Shotgun_Rumble</Include>
			<Include>Shotgun_MuzzleFlashRoF</Include>
		</Trigger>
		<Trigger Name="Shotgun_Reload_Start">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\chars\VM\M_6ft_Soldier_02\ThermobaricShotgun\Navigation\Base\reload_start_thermo" Speed="1.0" SkipTicks="0"/>
				<!--SpawnParticle>
					<ParticleData ParticleFXID="soglo\particles\__cfx__\weapons\shotgun\ste_sgun_shell_01">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointEject"/>
				</SpawnParticle-->
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Reload_Loop">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\Shotgun\combat\reload_b_load_prop" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Reload_End">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\Shotgun\combat\reload_c_cock_prop" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Reload_Start_Fast">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\chars\VM\M_6ft_Soldier_02\ThermobaricShotgun\Navigation\Base\reload_start_thermo" Speed="1.0" SkipTicks="0"/>
				<!-- SpawnParticle>
					<ParticleData ParticleFXID="soglo\particles\__cfx__\weapons\shotgun\ste_sgun_shell_01">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointEject"/>
				</SpawnParticle-->
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Reload_Loop_Fast">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\Shotgun\combat\reload_b_load_prop" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Reload_End_Fast">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\Shotgun\combat\reload_c_cock_prop" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="Shotgun_Lid_Close">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\chars\VM\M_6ft_Soldier_02\ThermobaricShotgun\Navigation\Base\close_lid" Speed="1.0" SkipTicks="6"/>
			</Event>
		</Trigger>
		<Trigger Name="Reload_Rumble" RateOfFire="1">
			<Event Name="Fire">
				<Rumble Name="Pistol" Time="0.04" FadeUpTime="0" FadeDownTime="0" Loop="false" Range="60" PlayOnOwner="false"/>
			</Event>
		</Trigger>
		<Trigger Name="Player_Gunbutt_Attack">
			<Event Name="Fire">
				<SpawnProjectile Name="Shotgun_Gunbutt_Attack">
					<CameraLocation>
						<Offset X="0" Y="-0.3" Z="0"/>
					</CameraLocation>
				</SpawnProjectile>
			</Event>
		</Trigger>
		<Event Name="AddPickupToInventory">
			<PlayGameSound SoundID="Ammo_Crate"/>
			<AddWeaponToInventoryAction WeaponName="Shotgun" AmmoType="Primary_Ammo" Amount="8"/>
		</Event>
		<Event Name="AddPickupToInventoryFull">
			<PlayGameSound SoundID="Battlecomm_Fail"/>
		</Event>
		<Event Name="PickupWeapon">
			<DropWeaponFromInventoryAction Slot="RightHand"/>
			<AddWeaponToInventoryAction WeaponName="SHOTGUN" Slot="RightHand"/>
		</Event>
	</Weapon>
	<Projectile Name="Shotgun_Projectile" MaxCollisions="1" HitMap="StandardHitMap">
		<BSLinearPath Range="100.0" Velocity="714"/>
		<LineCollision/>
		<Event Name="ProjectileStart">
			<UseParentObject>
				<StimulateAI Range="30" Lifetime="0.25"> <!-- Alerts any idle enemies nearby -->
					<StimulusBit>Gunshot</StimulusBit>
				</StimulateAI>
			</UseParentObject>
			<LightFlash R="4" G="3" B="2" Radius="15" Power="1.0" Backoff="0"/>
			<!-- <SpawnTrail U0="128" U1="182" VSize="-1" StartWidth=".2" EndWidth=".5" FadeAngle="45" CapV0="0" CapU0="64" CapWidth="128" Drift="0" CameraWind=".25" R="1" G="1" B="1" A=".5" Duration=".8"/> -->
		</Event>
		<Event Name="HitGeometry">
			<SurfaceImpact SurfaceEffectName="Shotgun_Pellet"/>
			<UseParentObject>
				<StimulateAI Range="30" Lifetime="0.25"> <!-- Alerts any idle enemies nearby -->
					<StimulusBit>Gunshot</StimulusBit>
				</StimulateAI>
			</UseParentObject>
		</Event>
		<Event Name="HitObject">
			<SurfaceImpact SurfaceEffectName="Shotgun_Pellet"/>
			<ApplyDamage ReactionName="Shotgun_Pellet">
				<ApplyImpulse Impulse="30"/>
			</ApplyDamage>
			<UseParentObject>
				<StimulateAI Range="30" Lifetime="0.25"> <!-- Alerts any idle enemies nearby -->
					<StimulusBit>Gunshot</StimulusBit>
				</StimulateAI>
			</UseParentObject>
		</Event>
		<Event Name="HitCharacter">
			<FiredByDistance MinDistance="0" MaxDistance="2">
				<ApplyDamage ReactionName="Shotgun_Close" Damage="15" PowerLevel="2">
					<ApplyImpulse Impulse="30"/>
					<AddToPlayerWeaponKill Type="Shotgun"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="2" MaxDistance="8">
				<ApplyDamage ReactionName="Shotgun_Close" Damage="12" PowerLevel="2">
					<ApplyImpulse Impulse="25"/>
					<AddToPlayerWeaponKill Type="Shotgun"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="8" MaxDistance="15">
				<ApplyDamage ReactionName="Shotgun_Far" Damage="10" PowerLevel="2">
					<ApplyImpulse Impulse="20"/>
					<AddToPlayerWeaponKill Type="Shotgun"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="15" MaxDistance="25">
				<ApplyDamage ReactionName="Shotgun_Far" Damage="6" PowerLevel="2">
					<ApplyImpulse Impulse="10"/>
					<AddToPlayerWeaponKill Type="Shotgun"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="25" MaxDistance="300">
				<ApplyDamage ReactionName="Shotgun_Far" Damage="3" PowerLevel="2">
					<ApplyImpulse Impulse="5"/>
					<AddToPlayerWeaponKill Type="Shotgun"/>
				</ApplyDamage>
			</FiredByDistance>
			<UseParentObject>
				<StimulateAI Range="30" Lifetime="0.25"> <!-- Alerts any idle enemies nearby -->
					<StimulusBit>Gunshot</StimulusBit>
				</StimulateAI>
			</UseParentObject>
		</Event>
		<Event Name="ProjectilePathEnd"/>
	</Projectile>
	<Projectile Name="Shotgun_Gunbutt_Attack" MaxCollisions="1" HitMap="StandardHitMap">
		<LinearPath Range="2.0" Velocity="0.0" MaxTimeMod="6" MaxAngleMod="3"/>
		<MultiCollision HorizontalSpread="0.5" VerticalSpread="0.5" Count="1"/>
		<Event Name="ProjectileStart">
		</Event>
		<Event Name="HitGeometry">
		</Event>
		<Event Name="HitObject">
			<ApplyDamage ReactionName="GunButt">
				<ApplyImpulse Impulse="50"/>
			</ApplyDamage>
		</Event>
		<Event Name="HitCharacter">
			<ApplyDamage ReactionName="Player_GunButt" PowerLevel="4">
				<ApplyImpulse Impulse="50"/>
			</ApplyDamage>
		</Event>
	</Projectile>
</WeaponManager>
