<!-- edited with XMLSpy v2012 sp1 (x64) (http://www.altova.com) by shaak (Foundation 9 Entertainment) -->
<WeaponManager>
	<Weapon Name="M4carbine" Accuracy="0.95" BoneName="RAttachment" MeshName="Meshes\Props\weapons\w_m4carbine\w_m4carbine" DOFFocusAttachment="attachmentPointFOV">
		<Ammo Name="Primary_Ammo">
			<Clip ClipSize="30" PoolSize="150"/>
		</Ammo>
		<Trigger Name="SCAR_FiringVFX">
			<Event Name="Fire">
				<LightFlash R="1" G=".8" B=".6" Radius="4" Attack=".02" Sustain="0" Decay=".1"/>
				<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				<SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_shell_AR01_">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointEject"/>
				</SpawnParticle>
				<SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_smoke_AR01_">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</SpawnParticle>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_FiringPMVFX">
			<Event Name="Fire">
				<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				<LightFlash R="1" G=".8" B=".6" Radius="4" Attack=".02" Sustain="0" Decay=".1"/>
				<SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_shell_ARpm01_">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointViewmodel_Eject"/>
				</SpawnParticle>
				<SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_smoke_AR01_">
						<ParticleFlag>emitter_follows</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</SpawnParticle>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_FiringAnimation">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\m4carbine\combat\shoot_loop_addit_carbine" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_FiringAnimation_SingleShot">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\m4carbine\combat\shoot_addit_carbine" Speed="1.0" SkipTicks="0"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_PlayerFiringSequences">
			<Event Name="Fire">
				<UseParentObject>
					<PlaySequence Name="Player_Fire_Loop_Additive" Slot="12" SkipTicks="0" TweenTicks="0" AllowTransToSelf="true"/>
				</UseParentObject>
				<CameraEvent Event="M4Fire"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="M4EndFiring"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_PlayerFiringSequences_SingleShot">
			<Event Name="Fire">
				<UseParentObject>
					<PlaySequence Name="Player_Fire_Additive" Slot="11" SkipTicks="0" TweenTicks="0" AllowTransToSelf="true"/>
				</UseParentObject>
				<CameraEvent Event="M4Fire"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="M4EndFiring"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_PlayerPMFiringSequences">
			<Event Name="Fire">
				<UseParentObject>
					<PlaySequence Name="Player_Fire_Loop_Additive_Precision" Slot="12" SkipTicks="0" TweenTicks="0" AllowTransToSelf="true"/>
				</UseParentObject>
				<CameraEvent Event="M4FirePrecision"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="M4EndFiringPrecision"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_PlayerPMFiringSequences_SingleShot">
			<Event Name="Fire">
				<UseParentObject>
					<PlaySequence Name="Player_Fire_Additive_Precision" Slot="11" SkipTicks="0" TweenTicks="0" AllowTransToSelf="true"/>
				</UseParentObject>
				<CameraEvent Event="M4FirePrecision"/>
			</Event>
			<Event Name="CeaseFire">
				<CameraEvent Event="M4EndFiringPrecision"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_MuzzleFlashRoF">
			<Event Name="Fire">
				<SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_flash_AR01_">
						<ParticleFlag>emitter_follows</ParticleFlag>
						<ParticleFlag>particles_follow</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</SpawnParticle>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_Rumble" RateOfFire="50">
			<Event Name="Fire">
				<Rumble Name="Pistol" Time="0.09" FadeUpTime="0" FadeDownTime="0" Loop="false" Range="60" PlayOnOwner="false"/>
			</Event>
		</Trigger>
		<Trigger Name="Reload_Rumble" RateOfFire="1">
			<Event Name="Fire">
				<Rumble Name="Pistol" Time="0.065" FadeUpTime="0" FadeDownTime="0" Loop="false" Range="60" PlayOnOwner="false"/>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_Projectile">
			<Event Name="Fire">
				<SpawnProjectile Name="SCAR_Projectile">
					<CameraLocation/>
				</SpawnProjectile>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_ProjectileTrail">
			<Event Name="Fire">
				<SpawnProjectile Name="SCAR_ProjectileTrail">
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</SpawnProjectile>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_FiringSFX">
			<Event Name="StartFire">
				<PlayGameSound SoundID="M4_Single_FIRE" EndSoundID="M4_Single_BREAK" Looping="true">
					<AttachmentLocation AttachmentName="attachmentPointBarrel"/>
				</PlayGameSound>
			</Event>
		</Trigger>
		<Trigger Name="SCAR_FiringSFX_Single">
			<Event Name="StartFire">
				<PlayGameSound SoundID="M4_Single_FIRE" EndSoundID="M4_Single_BREAK" Looping="true">
					<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="13">
			<Ammo Name="Primary_Ammo"/>
			<Include>SCAR_Rumble</Include>
			<Include>SCAR_FiringVFX</Include>
			<Include>SCAR_FiringSFX</Include>
			<Include>SCAR_FiringAnimation</Include>
			<Include>SCAR_PlayerFiringSequences</Include>
			<Include>SCAR_Projectile</Include>
			<Include>SCAR_MuzzleFlashRoF</Include>
		</Trigger>
		<Trigger Name="FireSingleShot" RateOfFire="13">
			<Ammo Name="Primary_Ammo"/>
			<Include>SCAR_Rumble</Include>
			<Include>SCAR_FiringVFX</Include>
			<Include>SCAR_FiringSFX_Single</Include>
			<Include>SCAR_FiringAnimation_SingleShot</Include>
			<Include>SCAR_PlayerFiringSequences_SingleShot</Include>
			<Include>SCAR_Projectile</Include>
			<Include>SCAR_MuzzleFlashRoF</Include>
		</Trigger>
		<Trigger Name="FirePrimary_Trail" RateOfFire="3">
			<Include>SCAR_ProjectileTrail</Include>
		</Trigger>
		<Trigger Name="FirePrimary_Precision" RateOfFire="13">
			<Ammo Name="Primary_Ammo"/>
			<Include>SCAR_Projectile</Include>
			<Include>SCAR_FiringSFX</Include>
			<Include>SCAR_FiringPMVFX</Include>
			<Include>SCAR_FiringAnimation</Include>
			<Include>SCAR_PlayerPMFiringSequences</Include>
			<Include>SCAR_Rumble</Include>
			<Include>SCAR_MuzzleFlashRoF</Include>
		</Trigger>
		<Trigger Name="FireSingleShot_Precision" RateOfFire="13">
			<Ammo Name="Primary_Ammo"/>
			<Include>SCAR_Projectile</Include>
			<Include>SCAR_FiringSFX_Single</Include>
			<Include>SCAR_FiringPMVFX</Include>
			<Include>SCAR_FiringAnimation_SingleShot</Include>
			<Include>SCAR_PlayerPMFiringSequences_SingleShot</Include>
			<Include>SCAR_Rumble</Include>
			<Include>SCAR_MuzzleFlashRoF</Include>
		</Trigger>
		<Trigger Name="Reload">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\m4carbine\combat\reload_carbine" Speed="1.0" SkipTicks="0"/>
				<!-- <SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_ar_reload_01">
						<ParticleFlag>emitter_follows</ParticleFlag>
						<ParticleFlag>particles_follow</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointClip"/>
				</SpawnParticle> -->
			</Event>
		</Trigger>
		<Trigger Name="Reload_Quick">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\m4carbine\combat\reload_carbine" Speed="1.0" SkipTicks="0"/>
				<!-- <SpawnParticle>
					<ParticleData ParticleFXID="Soglo\Particles\__cFX__\Weapons\AssaultRifle\ste_ar_reload_01">
						<ParticleFlag>emitter_follows</ParticleFlag>
						<ParticleFlag>particles_follow</ParticleFlag>
					</ParticleData>
					<AttachmentLocation AttachmentName="attachmentPointClip"/>
				</SpawnParticle> -->
			</Event>
		</Trigger>
		<Trigger Name="Reset">
			<Event Name="Fire">
				<PlayAnimation AnimationName="animation\gameplay\character\player\vm\m4carbine\combat\reload_carbine" Speed="1.0" SkipTicks="170"/>
			</Event>
		</Trigger>
		<Trigger Name="Player_Gunbutt_Attack">
			<Event Name="Fire">
				<SpawnProjectile Name="SCAR_Gunbutt_Attack">
					<CameraLocation>
						<Offset>
							<Position X="0" Y="-0.3" Z="0"/>
						</Offset>
					</CameraLocation>
				</SpawnProjectile>
			</Event>
		</Trigger>
		<Event Name="AddPickupToInventory">
			<PlayGameSound SoundID="Ammo_Crate"/>
			<AddAmmoToWeaponAction WeaponName="SCAR" AmmoType="Primary_Ammo" Amount="30"/>
		</Event>
		<Event Name="AddPickupToInventoryFull">
			<PlayGameSound SoundID="Battlecomm_Fail"/>
		</Event>
		<Event Name="PickupWeapon">
			<DropWeaponFromInventoryAction Slot="RightHand"/>
			<AddWeaponToInventoryAction WeaponName="SCAR" Slot="RightHand"/>
		</Event>
	</Weapon>
	<Projectile Name="SCAR_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>
		</Event>
		<Event Name="HitGeometry">
			<SurfaceImpact SurfaceEffectName="Player_AssaultRifle_BULLET"/>
			<UseParentObject>
				<StimulateAI Range="30" Lifetime="0.25">
					<!-- Alerts any idle enemies nearby -->
					<StimulusBit>Gunshot</StimulusBit>
				</StimulateAI>
			</UseParentObject>
		</Event>
		<Event Name="HitObject">
			<SurfaceImpact SurfaceEffectName="Player_AssaultRifle_BULLET"/>
			<ApplyDamage ReactionName="SCAR_BULLET">
				<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="20">
				<ApplyDamage ReactionName="SCAR_BULLET" Damage="15" PowerLevel="2">
					<ApplyImpulse Impulse="30"/>
					<RotateToFace OnlyOnDeath="true"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCRegent"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCThug"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCCommander"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="20" MaxDistance="30">
				<ApplyDamage ReactionName="SCAR_BULLET" Damage="12" PowerLevel="2">
					<ApplyImpulse Impulse="25"/>
					<RotateToFace OnlyOnDeath="true"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCRegent"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCThug"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCCommander"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="30" MaxDistance="40">
				<ApplyDamage ReactionName="SCAR_BULLET" Damage="9" PowerLevel="2">
					<ApplyImpulse Impulse="20"/>
					<RotateToFace OnlyOnDeath="true"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCRegent"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCThug"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCCommander"/>
				</ApplyDamage>
			</FiredByDistance>
			<FiredByDistance MinDistance="40" MaxDistance="300">
				<ApplyDamage ReactionName="SCAR_BULLET" Damage="6" PowerLevel="2">
					<ApplyImpulse Impulse="10"/>
					<RotateToFace OnlyOnDeath="true"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCRegent"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCThug"/>
					<IncrementKillStat StatName="CarbineKillCount" TypeSpecific="INPCCommander"/>
				</ApplyDamage>
			</FiredByDistance>
			<UseParentObject>
				<StimulateAI Range="30" Lifetime="0.25">
					<!-- Alerts any idle enemies nearby -->
					<StimulusBit>Gunshot</StimulusBit>
				</StimulateAI>
			</UseParentObject>
		</Event>
	</Projectile>
	<Projectile Name="SCAR_ProjectileTrail" WhizBySound="bullet_whiz_by" WhizByDistance="1" MaxCollisions="1" HitMap="StandardHitMap">
		<BSLinearPath Range="100.0" Velocity="50" UseLastPathDir="true"/>
		<LineCollision/>
		<Event Name="ProjectileStart">
			<!--Hot Tracer-->
			<SpawnTrail U0="320" U1="384" VSize="-1" StartWidth=".02" EndWidth=".001" FadeAngle="1" CapV0="128" CapU0="257" CapWidth="64" Drift="0.0" CameraWind="0.0" R="3.5" G="3.5" B="3.5" A=".8" Duration=".067">
				<ProjectileLocation/>
			</SpawnTrail>
			<!--<SpawnTrail U0="64" U1="128" VSize="-1" StartWidth=".04" EndWidth=".01" FadeAngle="1" CapV0="128" CapU0="257" CapWidth="64" Drift="0.0" CameraWind="0.0" R="2" G="2" B="2" A=".6" Duration=".07">
				<ProjectileLocation/>
			</SpawnTrail>-->
			<!--Smoke Trail-->
			<SpawnTrail U0="0" U1="64" VSize="20" StartWidth=".03" EndWidth=".03" FadeAngle="1.0" Drift=".3" CameraWind=".15" MaxSubSamples="1" R="1.0" G="1.0" B="1.0" A=".1" Duration=".45">
				<ProjectileLocation/>
			</SpawnTrail>
		</Event>
	</Projectile>
	<Projectile Name="SCAR_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>
