<?xml version="1.0" encoding="utf-8" ?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset">
	<Tags />
	<Includes>
		<Include
			type="all"
			source="DATA:GlobalData/GlobalDefines.xml" />
	</Includes>
	<Defines>
		<!-- thaw rate -->
		<Define name="FACTION_WEAPON_SECONDARY_DAMAGE_AMOUNT" value="-500.0" />

		<Define name="EMPERORS_RESOLVE_AFFECTS" value="ALLIES NEUTRALS ENEMIES" />
	</Defines>
	
	<WeaponTemplate
		id="ScatterableWeapon">
		<ScatterRadiusVsType
			Radius="70.0"
			RequiredModelConditions="SHRINK_EFFECT">
			<Filter
				Rule="ANY"
				Include="INFANTRY AIRCRAFT VEHICLE HUGE_VEHICLE" />
		</ScatterRadiusVsType>
	</WeaponTemplate>

    <WeaponTemplate
		id="DummyWeaponWarhead"
        Flags="NOT_ATTRACTED_BY_MAGNETS"/>


	<WeaponTemplate
		id="NanoHiveSwarmEffectTrigger"
		Flags="NOT_ATTRACTED_BY_MAGNETS" 
		AttackRange="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		RadiusDamageAffects="NOT_SIMILAR ALLIES ENEMIES NEUTRALS"
		>
		<Nuggets>			
			<AttributeModifierNugget
				Radius="=$NANOSWARMHIVE_RADIUS"
				PartitionFilterTestType="SPHERE"
				AttributeModifierName="AttributeModifier_NanoSwarmHiveEffect">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE HUGE_VEHICLE INFANTRY STRUCTURE AIRCRAFT">				
				</SpecialObjectFilter>
			</AttributeModifierNugget>			
		</Nuggets>
	</WeaponTemplate>
		
<WeaponTemplate
			id="AlliedTimeBomb_Level1"
			ClipSize="1"
			WeaponSpeed="500"
      FireFX="FX_TimeBombExplosionLvl1"
			RadiusDamageAffects="ENEMIES NEUTRALS ALLIES"
			AcceptableAimDelta="180d"
			CanFireWhileMoving="true"
            Flags="NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED">
  <Nuggets>
    <DamageNugget
      id="ModuleTag_DamageNugget"
      Damage="750.0"
      DamageTaperOff="300"
      Radius="150"
      DamageType="EXPLOSIVE"
      DamageFXType="ALLIED_BOMBLVL1"
      DeathType="NORMAL"
				RadiusAffectsBridges="true">
			<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
    <MetaImpactNugget
     ShockWaveAmount="80.0"
     ShockWaveRadius="125.0"
     ShockWaveZMult="1.50" />
  </Nuggets>
</WeaponTemplate>

<WeaponTemplate
    id="AlliedTimeBomb_Level2"
    ClipSize="1"
    WeaponSpeed="500"
    FireFX="FX_TimeBombExplosionLvl2"
    Flags="NOT_ATTRACTED_BY_MAGNETS"
	RadiusDamageAffects="ENEMIES NEUTRALS ALLIES"
	AcceptableAimDelta="180d"
	CanFireWhileMoving="true"
	RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED">
  <Nuggets>
    <DamageNugget
      id="ModuleTag_DamageNugget"
				Damage="1000.0"
				DamageTaperOff="600"
				Radius="200"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_BOMBLVL2"
				DeathType="NORMAL"
				RadiusAffectsBridges="true">
				</DamageNugget>
		 <MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="175.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>
  
	<WeaponTemplate
			id="AlliedTimeBomb_Level3"
			ClipSize="1"
			WeaponSpeed="500"
			FireFX="FX_TimeBombExplosionLvl3"
			RadiusDamageAffects="ENEMIES NEUTRALS ALLIES"
			AcceptableAimDelta="180d"
			CanFireWhileMoving="true"
			RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="1500.0"
				DamageTaperOff="900"
				Radius="250"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_BOMBLVL3"
				DeathType="NORMAL"
				RadiusAffectsBridges="true">
				</DamageNugget>
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="225.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedPrecisionBomb"
		ClipSize="1"
		AttackRange="150.0"
		WeaponSpeed="500"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		AutoReloadsClip="NONE"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedPrecisionBombProjectile"
				WarheadTemplate="AlliedPrecisionBombWarhead"/>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedPrecisionBombWarhead"		
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		ProjectileCollidesWith  = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				id="ModuleTag_DamageNugget" 
				Damage="575.0"
				Radius="50"
				RadiusAffectsBridges="true" 
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_PRESISIONBOMB"
				DeathType="NORMAL">
				<DamageScalarDetails Scalar= "75%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
        <WeaponOCLNugget
				WeaponOCL="OCL_DynamicsImpact"/>
        <MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="50.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanAntiVehicleInfantryTech3LockDownGun"
		AttackRange="250"
		WeaponSpeed="999999.0"
		FiringLoopSound="JAP_RocketAngel_WhipLoop"
		ReAcquireDetailType="PER_CLIP"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_VEHICLE ANTI_INFANTRY"
		ForbiddenAntiMask="ANTI_STRUCTURE ANTI_SUBMERGED ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
		<ActivateLaserNugget
    		id="DefaultLaserNugget"
    		Lifetime="0.1s"
     		LaserId="1">
        	<SpecialObjectFilter
				  Rule="ANY"
					Include="INFANTRY VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET">
          		<ExcludeThing>BaseSovietSupportBomber</ExcludeThing>
          		<ExcludeThing>Soviet_BombingRun</ExcludeThing>
          		<ExcludeThing>JapanFinalSquadronAircraft</ExcludeThing>
          		<ExcludeThing>JapanBalloonBomb</ExcludeThing>
          		<ExcludeThing>AlliedSupersonicBomber</ExcludeThing>
       		</SpecialObjectFilter>
      	</ActivateLaserNugget>	
      	
		<ParalyzeNugget
				DurationSeconds="0.2s"
				ParalyzeType="EMP" >
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET UNDER_IRON_CURTAIN">
					<ExcludeThing>BaseSovietSupportBomber</ExcludeThing>
					<ExcludeThing>Soviet_BombingRun</ExcludeThing>
					<ExcludeThing>JapanFinalSquadronAircraft</ExcludeThing>
					<ExcludeThing>JapanBalloonBomb</ExcludeThing>
					<ExcludeThing>AlliedSupersonicBomber</ExcludeThing>
				</SpecialObjectFilter>
			</ParalyzeNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiVehicleInfantryTech3MisslePods"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		WeaponSpeed="200"
		MinWeaponSpeed="300"
		MaxWeaponSpeed="310"		
		FireFX="FX_JapanMIRVFire"
		FireVeteranFX="FX_JapanMIRVFire"
		FireSound="JAP_RocketAngel_WeaponFire_Missile"
		AcceptableAimDelta="45d"
		ClipSize="12"		
		AutoReloadsClip="AUTO"
		PreAttackType="PER_CLIP"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE ANTI_WATER"
		RadiusDamageAffects="ENEMIES">
		<PreAttackDelay
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<FiringDuration
			MinSeconds="0.07s"
			MaxSeconds="0.07s" />
		<ClipReloadTime
			MinSeconds="1.45s"
			MaxSeconds="1.65s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="JapanAntiVehicleInfantryTech3ProjectileWarhead"
				ProjectileTemplate="JapanAntiVehicleInfantryTech3MissileProjectile">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="JapanAntiVehicleInfantryTech3MissileProjectile_Veteran"/>
			</ProjectileNugget>
		</Nuggets>

	</WeaponTemplate>

	<WeaponTemplate
			id="JapanAntiVehicleInfantryTech3ProjectileWarhead"
			ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
			RadiusDamageAffects="ENEMIES NEUTRALS"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE  ANTI_WATER">
		<Nuggets>
			<DamageNugget
				Damage="20.0"
				Radius="10.0"
				DamageType="ROCKET"
				DamageFXType="JAPAN_MISSILE"
				DeathType="EXPLODED" />
			<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />	
		</Nuggets>
		<ScatterRadiusVsType
			Radius="20.0">
			<Filter
				Rule="NONE"
				Include="INFANTRY" />
		</ScatterRadiusVsType>
	</WeaponTemplate>
	
	<!-- JapanAntiAirShipWeapon Advanced Missile Packs Upgraded Weapon -->
	<WeaponTemplate
		id="JapanAntiVehicleInfantryTech3MisslePods_JapanAdvancedMissilePacks"
		inheritFrom="JapanAntiVehicleInfantryTech3MisslePods"
		ClipSize="18">
	</WeaponTemplate>


	<WeaponTemplate
		id="JapanCommandoTech1PsyonicCrush"
		AttackRange="150.0"
		AcceptableAimDelta="15d"
		ClipSize="1"
		FiringLoopSound="JAP_YurikoOmega_PsyonicLoopMS"		
		AutoReloadsClip="AUTO"
		PreAttackType="PER_TARGET"
		CanFireWhileMoving="false"		
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_LIFTED_GROUND_UNIT ANTI_WATER ANTI_SUBMERGED"
		RadiusDamageAffects="ENEMIES"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<WeaponAiHintInfo
			UseLongLockOnTimeCode="true" />
		<Nuggets>
			<StripMaxHealthPercentNugget
				  AmountToStrip="4%"
				  DamageType="KI" 
				  DamageFXType="JAPAN_PSIONIC"
				  DeathType="SHATTERED">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY STRUCTURE VEHICLE VALID_TARGET_FOR_C4 TIME_BOMB"
                    StatusBitFlagsExclude="UNCONTROLLABLY_SCARED">
					<ExcludeThing>AlliedWallPiece</ExcludeThing>
					<ExcludeThing>SovietWallPiece</ExcludeThing>
					<ExcludeThing>JapanWallPiece</ExcludeThing>
                     </SpecialObjectFilter>
			</StripMaxHealthPercentNugget>	
					
			<ActivateLiftObjectNugget
				Lifetime="0.2s">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY VEHICLE STRUCTURE VALID_TARGET_FOR_C4 TIME_BOMB"
                    StatusBitFlagsExclude="UNCONTROLLABLY_SCARED UNDER_IRON_CURTAIN">
                    <ExcludeThing>AlliedWallPiece</ExcludeThing>
                    <ExcludeThing>SovietWallPiece</ExcludeThing>
                    <ExcludeThing>JapanWallPiece</ExcludeThing>
                </SpecialObjectFilter>
               
			</ActivateLiftObjectNugget>
		</Nuggets>

	</WeaponTemplate>

    <WeaponTemplate
		id="JapanCommandoTech1AirborneKiller"
		AttackRange="150.0"
		AcceptableAimDelta="15d"
		ClipSize="1"
		FiringLoopSound="JAP_YurikoOmega_PsyonicLoop"
		AutoReloadsClip="AUTO"
		PreAttackType="PER_TARGET"
		CanFireWhileMoving="false"		
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		ForbiddenAntiMask="ANTI_LIFTED_GROUND_UNIT" 
		RadiusDamageAffects="ENEMIES"
        Flags="NOT_ATTRACTED_BY_MAGNETS RELOAD_WHEN_ATTACK_STOPS">
        <PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
        <FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
        <ClipReloadTime
			MinSeconds="4.0s"
			MaxSeconds="4.0s" />        
        <Nuggets>
            <ActivateLiftObjectNugget
				Lifetime="5.0s">
                <SpecialObjectFilter
					Rule="ANY"
					Include="TRANSFORMER INFANTRY VEHICLE STRUCTURE VALID_TARGET_FOR_C4"
                    StatusBitFlagsExclude="UNCONTROLLABLY_SCARED UNDER_IRON_CURTAIN">
                    <ExcludeThing>AlliedWallPiece</ExcludeThing>
                    <ExcludeThing>SovietWallPiece</ExcludeThing>
                    <ExcludeThing>JapanWallPiece</ExcludeThing>
                </SpecialObjectFilter>

            </ActivateLiftObjectNugget>
        </Nuggets>

    </WeaponTemplate>

    
    <WeaponTemplate
        id="JapanCommandoTech1AirplaneCrashWeapon"
       ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
        <Nuggets>
            <DamageNugget
				Damage="500.0"
				Radius="50.0"
				DamageTaperOff="200"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" >
                <DamageScalarDetails Scalar= "50%">
                    <Filter
						Rule="ALL"
						Relationship="ALLIES" />
                </DamageScalarDetails>
            </DamageNugget>
            <DamageNugget
				Radius="0"
				OnlyKillOwnerWhenTriggered="true"
				DamageType="UNRESISTABLE"
				DeathType="NORMAL" >
            </DamageNugget>
            <MetaImpactNugget
               ShockWaveAmount="50.0"
               ShockWaveRadius="50.0"
               ShockWaveTaperOff="1.0"/>
        </Nuggets>  
    </WeaponTemplate>

	<WeaponTemplate
		id="JapanCommandoSoftLanding"
		Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<AttributeModifierNugget
				AttributeModifierName="AttributeModifier_LandingSafelyFromBeingLifted" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanCommandoTech1PsyonicBlast"
		AttackRange="250.0"		
		ClipSize="1"
		AutoReloadsClip="AUTO"   
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		RadiusDamageAffects="ENEMIES NEUTRALS"   
        Flags="NOT_ATTRACTED_BY_MAGNETS"
        >
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				Damage="500.0"
				Radius="250.0"
                DelayTimeSeconds="1.0s"
				DamageType="SNIPER"
				DeathType="NORMAL"
				PartitionFilterTestType="CIRCLE" />
				
            <MetaImpactNugget
                ShockwaveDelaySeconds="1.0s"
				ShockWaveAmount   = "89.0"
				ShockWaveRadius   = "250.0"				
				ShockWaveZMult    = "8.5"
				ShockWaveClearRadius="false">
				<SpecialObjectFilter
					Rule="NONE"
					Include="INFANTRY" 
					StatusBitFlagsExclude="NO_COLLISIONS" />								
			</MetaImpactNugget>
		</Nuggets>

	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanInfiltrationShiruken"
		AttackRange="150.0"
		MinimumAttackRange="35"
		WeaponSpeed="400"	
		AcceptableAimDelta="20d"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		CanFireWhileMoving="true"
		FireSound="JAP_Shinobi_WeaponFire_ThrowingStar"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND"
		RadiusDamageAffects="ENEMIES"		
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		FinishAttackOnceStarted="true"
		ShouldPlayUnderAttackEvaEvent="false"
		ShouldPlayTargetDeadEvaEvent="false">
		<PreAttackDelay
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<FiringDuration
			MinSeconds="0.8s"
			MaxSeconds="0.8s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ProjectileNugget
				id="Default_Nugget"
				WarheadTemplate="JapanShurikenProjectileWarhead"
				ProjectileTemplate="JapanShurikenProjectile">
					<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanShurikenProjectile_Veteran"/>
			</ProjectileNugget>
		</Nuggets>
    </WeaponTemplate>
	<WeaponTemplate
		id="JapanShurikenProjectileWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		ShouldPlayTargetDeadEvaEvent="false"
		>
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="250.0"
				Radius="0.0"
				DamageFXType="JAPAN_SHIRUKEN" 
				DamageType="SNIPER"
				DeathType="NORMAL" >				
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="JapanInfiltrationNinjaSword"
		AttackRange="25.0"
		WeaponSpeed="125"
		RadiusDamageAffects="ENEMIES"
    FireFX="FX_NinjaSword" 
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		ClipSize="1"
		AcceptableAimDelta="2d"
		FinishAttackOnceStarted="true"
		ShouldPlayUnderAttackEvaEvent="false"
		ShouldPlayTargetDeadEvaEvent="false">
		<FiringDuration
			MinSeconds="0.9s"
			MaxSeconds="0.9s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<DamageNugget
				Damage="500.0"
				Radius="0.0"
				DelayTimeSeconds="0.4s"
				DamageType="MELEE"
				DamageFXType="JAPAN_BONZAI" 
				DeathType="STABBED">
				<SpecialObjectFilter
					   Rule="ALL"
					   Exclude="STRUCTURE VEHICLE AIRCRAFT">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="AlliedAntiStructureShipEMPCruiseMissle"
		AttackRange="850.0"
		MinimumAttackRange="200"
		WeaponSpeed="200"
		AcceptableAimDelta="20d"
		ClipSize="0"
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		RadiusDamageAffects="ENEMIES"
		RevealShroudOnFire="true"
 		>
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="AlliedAntiStructureShipEMPCruiseMissleWarhead"
				ProjectileTemplate="AlliedAntiStructureShipEMPProjectile">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="AlliedAntiStructureShipEMPProjectile"/>
			</ProjectileNugget>
		</Nuggets>
		<ScatterRadiusVsType
			Radius="20.0">
			<Filter
				Rule="NONE"
				Include="INFANTRY" />
		</ScatterRadiusVsType>
	</WeaponTemplate>

	<WeaponTemplate
			id="AlliedAntiStructureShipEMPCruiseMissleWarhead"
			ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
			RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<Nuggets>
			<!-- Normal Weapon -->
			<ParalyzeNugget
				Radius="150.0"
				DurationSeconds="10s"
				ParalyzeType="EMP"
				ParalyzeFX="FX_None">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="UNATTACKABLE INFANTRY CIVILIAN_BUILDING"
					StatusBitFlagsExclude="UNATTACKABLE UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
				</SpecialObjectFilter>
				<ForbiddenUpgrade>Upgrade_AlliedHighTechnology</ForbiddenUpgrade>
			</ParalyzeNugget>

			<!-- High Technology Special power weapon -->
			<ParalyzeNugget
				Radius="200.0"
				DurationSeconds="13s"
				ParalyzeType="EMP"
				ParalyzeFX="FX_None">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="UNATTACKABLE INFANTRY CIVILIAN_BUILDING"
					StatusBitFlagsExclude="UNATTACKABLE UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
				</SpecialObjectFilter>
				<RequiredUpgrade>Upgrade_AlliedHighTechnology</RequiredUpgrade>
			</ParalyzeNugget>

		</Nuggets>
		<ScatterRadiusVsType
			Radius="20.0">
			<Filter
				Rule="NONE"
				Include="INFANTRY" />
		</ScatterRadiusVsType>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiStructureAttackDrones"
		MinimumAttackRange="200"
		AttackRange="1000.0"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		RadiusDamageAffects="ENEMIES"
		ClipSize="5"
		Flags="RELOAD_WHEN_ATTACK_STOPS NOT_ATTRACTED_BY_MAGNETS"
		PreAttackType="PER_CLIP"
		CanFireWhileMoving="false"
		AcceptableAimDelta="10d"
		RevealShroudOnFire="true"
		>
		<PreAttackDelay
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="10.0s"
			MaxSeconds="10.0s" />
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_AlliedAttackDrones"/>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietCommandoPilotSnipeWeapon"
		AttackRange="500.0"
		WeaponSpeed="999999.0"
		FireSound="SOV_Commando_GunFire"
		FireFX="FX_SovietPilotSnipeFire"
		FireVeteranFX="FX_SovietPilotSnipeFire"
		RadiusDamageAffects="ENEMIES"
		ClipSize="0"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="false"
		AcceptableAimDelta="10d"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER"
		>
		<Nuggets>
			<ParalyzeNugget				
				ParalyzeType="UNMANNED"
				ParalyzeFX="FX_SOV_Natasha_PilotSnipe">
				<SpecialObjectFilter
					Rule="ANY"
					Relationship="ENEMIES"
					Include="VEHICLE"
					StatusBitFlagsExclude="UNDER_IRON_CURTAIN"/>						
			</ParalyzeNugget>		  
		</Nuggets>
	</WeaponTemplate>
		
	<WeaponTemplate
		id="SovietCommandoSniperRifle"
		AttackRange="300.0"
		WeaponSpeed="999999.0"
		FireSound="SOV_Commando_GunFire"
		FireFX="FX_SovietSniperFire"
		FireVeteranFX="FX_SovietSniperFireHeroic"
		RadiusDamageAffects="ENEMIES"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="false"
		AcceptableAimDelta="10d"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER"
		>
		<PreAttackDelay
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<FiringDuration
			MinSeconds="1.5s"
			MaxSeconds="1.5s" />
		<ClipReloadTime
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>
		<!--
			<DamageNugget
				Damage="1000.0"
				Radius="0.0"
				DamageType="SNIPER"
				DamageFXType="SOVIET_SNIPERRIFLE"
				DeathType="NORMAL" >
				<SpecialObjectFilter
					Rule="ALL"
					Relationship="ENEMIES" 
					Exclude="VEHICLE STRUCTURE VALID_TARGET_FOR_C4" />
			</DamageNugget>		
		-->
      <LineDamageNugget
				Damage="1000.0"
				LineWidth="5.0"
				DamageType="SNIPER"
				DamageFXType="SOVIET_SNIPERRIFLE"
				DeathType="NORMAL"
				UseDynamicLineLength="true"
				OverShootDistance="200.0">
        <SpecialObjectFilter
          Rule="NONE"
          Include="INFANTRY"/>
      </LineDamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<!-- the weapon fired when the vacuum bomb is triggered -->
	<WeaponTemplate
		id="SovietVacuumBomb" 
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		AttackRange="10000">
		<Nuggets>
			<WeaponOCLNugget WeaponOCL="OCL_VacuumBombSeed"/>
			<ReportWeaponFiredStatNugget/>
		</Nuggets>
	</WeaponTemplate>

	<!-- this is fired whilst the vacuum effect is active -->
	<WeaponTemplate
 		id="VacuumBombIncrementalWeapon"
 		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
 		AttackRange="10000">
 		<Nuggets>
 			<DamageNugget
 				Damage="45.0"
 				DamageTaperOff="15.0"
 				Radius="300.0"
 				DamageType="EXPLOSIVE"
 				DamageFXType="SOVIET_MAGNETICBOMB"
 				DeathType="DETONATED"
 				ForceFXPositionToVictim="true"
 				PartitionFilterTestType="CIRCLE"
				NotifyObserversOnPreDamageEffectPosition="true"
				RadiusAffectsBridges="true">
 				<SpecialObjectFilter
 					Rule="NONE"
 					Include="STRUCTURE"/>
 			</DamageNugget>
 		</Nuggets>
 	</WeaponTemplate>

	<WeaponTemplate
		id="SovietCommandoCallBombingRun"
		AttackRange="300.0"
		MinimumAttackRange="50"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ENEMIES"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="false"
        ReAcquireDetailType="PER_CLIP"
        PreAttackType="PER_TARGET"
		AcceptableAimDelta="10d"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<PreAttackDelay
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<WeaponAiHintInfo
			   UseAsWarheadForDamageCalculations="SovietBombingRunWeaponWarhead"
			   UseLongLockOnTimeCode="true" />
		<Nuggets>
			<ActivateLaserNugget
				id="DefaultLaserNugget"
				Lifetime="1s"
				LaserId="1">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE STRUCTURE VALID_TARGET_FOR_C4"
					Exclude="INFANTRY WALL_PIECE"
                    StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED"/>
			</ActivateLaserNugget>
			<SpecialPowerNugget
				SpecialPowerTemplate="SpecialPowerBombingRun">
				<SpecialObjectFilter
				    Rule="ANY"
				    Include="VEHICLE STRUCTURE VALID_TARGET_FOR_C4"
				    Exclude="INFANTRY WALL_PIECE"
                    StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED"/>
			</SpecialPowerNugget>
			<TintObjectsNugget
					  PreColorTime="0.5s"
					  SustainedColorTime="1.0s"
					  PostColorTime="0s"
					  Frequency="1"
					  Amplitude="0">
				<Color R="2" G="0" B="0"/>
			</TintObjectsNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietDesolatorBombWeapon"
		ClipSize="1"
		AutoReloadsClip="NONE" 
		AttackRange="300.0"
		WeaponSpeed="400"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="DummyWeaponWarhead"
				ProjectileTemplate="SovietDesolatorBombProjectile"/>
			<ProjectileNugget
				WarheadTemplate="SovietDesolatorBombWarhead"
				ProjectileTemplate="SovietDesolatorBombProjectileDummy"/>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietDesolatorBombWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_SovietDesolatorBombWarhead" />
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="SovietBombingRunWeapon"
		ClipSize="1"
		AttackRange="100.0"
		WeaponSpeed="500"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
        ChaseWeapon="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">		
		<FiringDuration
			MinSeconds="5.0s"
			MaxSeconds="5.0s" />
		<Nuggets>			
			<ProjectileNugget
				WarheadTemplate="SovietBombingRunWeaponWarhead"
				ProjectileTemplate="SovietBombingRunBombProjectile" />
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietBombingRunWeaponWarhead"
		ProjectileCollidesWith  = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Radius="5.0"
				Damage="99999.0"
				DamageType="EXPLOSIVE"
				DeathType="DETONATED"
				/>
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="100.0"
				ShockWaveZMult="1.50" />
			<SuppressionNugget
				Radius="30.0"
				Suppression="50"
				DurationSeconds="5s" />
		</Nuggets>
	</WeaponTemplate>

	<!-- weapon fired during refuse falling to ground -->  
	<WeaponTemplate
		id="OrbitalRefuseProjectileWeapon"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_AIRBORNE_INFANTRY ANTI_AIRBORNE_VEHICLE">
		<Nuggets>
			<DamageNugget
				Damage="99999.0"
				Radius="10"
				DamageType="ROCKET"
				DeathType="NORMAL"
				RadiusAffectsBridges="true"/>
		</Nuggets>
	</WeaponTemplate>

	<!-- Warheads used by the Soviet Orbital Refuse Player Power -->
	<WeaponTemplate
		id="SovietOrbitalRefuse_Level1_WarHead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
        <Nuggets>
            <DamageNugget
              id="DefaultDamageNugget" 
				Damage="300.0"
				DamageTaperOff="75"
				Radius="75"
				DamageType="EXPLOSIVE"
				DamageFXType="SOVIET_ORBITAL"
				DeathType="NORMAL"
				RadiusAffectsBridges="true"
				/>
            <MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="100.0"
				ShockWaveZMult="1.50" />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietOrbitalRefuse_Level2_WarHead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
      <DamageNugget
				id="DefaultDamageNugget"
				Damage="500.0"
				Radius="125"
				DamageTaperOff="125"
				DamageType="EXPLOSIVE"
				DamageFXType="SOVIET_ORBITAL2"
				DeathType="NORMAL"
				RadiusAffectsBridges="true"
				/>
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="175.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietOrbitalRefuse_Level3_WarHead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
      <DamageNugget
				id="DefaultDamageNugget"
				Damage="1500.0"
				Radius="175"
				DamageTaperOff="375"
				DamageType="EXPLOSIVE"
				DamageFXType="SOVIET_ORBITAL3"
				DeathType="NORMAL"
				RadiusAffectsBridges="true"
				/>
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="225.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
			id="OrbitalRefuseSatelliteWeapon"
			ClipSize="1"
			AutoReloadsClip="NONE"
			RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
			AttackRange="10000"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT">
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_OrbitalRefuse_RandomDebris" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="OilDerrickExplosion"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
					  id="DefaultDamageNugget"
					  Damage="500.0"
					  Radius="150"
					  DamageTaperOff="375"
					  DamageType="EXPLOSIVE"
					  DamageFXType="SOVIET_ORBITAL3"
					  DeathType="NORMAL"
					  RadiusAffectsBridges="true"
				/>
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="225.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietOrbitalRefuse_RandomDebris_WarHead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="200.0"
				DamageTaperOff="0"
				Radius="20"
				DamageType="EXPLOSIVE"
				DamageFXType="SOVIET_DEBRIS"
				DeathType="NORMAL"
				RadiusAffectsBridges="true"
				/>
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="25.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>
  
  <WeaponTemplate
	id="AlliedSweepReveal"
	RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
	AttackRange="10000">
    <Nuggets>
      <WeaponOCLNugget WeaponOCL="OCL_AlliedSweepReveal"/>
    </Nuggets>
  </WeaponTemplate>

    <!-- Tanya's anti-infantry weapon -->
    <WeaponTemplate
		id="AlliedCommandoDesertEagles"
		AttackRange="140.0"
		WeaponSpeed="999999.0"
		FireSound="ALL_Commando_PistolFire"
		FireFX="FX_MuzzleTanya"
		FireVeteranFX="FX_MuzzleTanya_Vet"
		RadiusDamageAffects="ENEMIES"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND"
		AcceptableAimDelta="10d"
		>
        <FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
        <Nuggets>
            <DamageNugget
				Damage="100.0"
				Radius="0.0"
				DamageType="SNIPER"
				DamageFXType="ALLIED_TANYA"
				DeathType="NORMAL" >
                <SpecialObjectFilter
					Rule="ALL"
					Exclude="VEHICLE STRUCTURE VALID_TARGET_FOR_C4" />
            </DamageNugget>
            <SuppressionNugget
				Radius="10.0"
				Suppression="25"
				DurationSeconds="5s">
                <SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VALID_TARGET_FOR_C4 VEHICLE" />
            </SuppressionNugget>
        </Nuggets>
    </WeaponTemplate>

    <!-- Tanya's anti-structure and andti-vehicle weapon -->
    <WeaponTemplate
		id="AlliedCommandoAttachWeapon"
		AttackRange="1.0"
		WeaponSpeed="999999.0"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
        Flags="ATTACK_NEEDS_LINE_OF_SIGHT IGNORE_TARGET_AS_OBSTACLE NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="false"
		InstantLoadClipOnActivate="true"
		ContactWeapon="false"
		ChaseWeapon="true"
        FireSound="ALL_Commando_C4MS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		AcceptableAimDelta="180d"
		>
        <FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s"
		/>
        <Nuggets>            
            <AttachNugget
							id="ModuleTag_AttachNugget" 
				AttachModuleId="ModuleTag_AttachUpdate"				
				Radius="1">
                <SpecialObjectFilter
					Rule="ANY"
					Include="STRUCTURE VEHICLE VALID_TARGET_FOR_C4"
					Exclude="WALL_PIECE" 
                    StatusBitFlagsExclude="AIRBORNE_TARGET NOT_IN_WORLD UNDER_IRON_CURTAIN">
                    <ExcludeThing>AlliedWallPiece</ExcludeThing>
                    <ExcludeThing>SovietWallPiece</ExcludeThing>
                    <ExcludeThing>JapanWallPiece</ExcludeThing>
                </SpecialObjectFilter>
            </AttachNugget>
            <!-- temporary tint until we get some sort of real feedback -->
				<TintObjectsNugget
					id="ModuleTag_TintObjectNugget" 
				PreColorTime="1s"
				SustainedColorTime="1s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">				
				<Color R="2" G="0" B="0"/>
			</TintObjectsNugget>
        </Nuggets>
    </WeaponTemplate>
    
    <WeaponTemplate
		id="AlliedCommandoDetonationWeapon"
		RadiusDamageAffects="ENEMIES NEUTRALS NOT_SIMILAR"
		AttackRange="1.0"
		ChaseWeapon="true"
		WeaponSpeed="999999.0"
		ReAcquireDetailType="PER_SHOT"
		ClipSize="1"		
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		VirtualDamage="SHARE"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_SUBMERGED"
		FinishAttackOnceStarted="true">
        <PreAttackDelay
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
        <ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <Nuggets>
            <DamageNugget
				  Damage="999999.0"				  
				  DamageType="GRENADE"
				  DeathType="DETONATED">
                <SpecialObjectFilter
					Rule="ANY"
					Include="STRUCTURE VEHICLE VALID_TARGET_FOR_C4"
					Exclude="WALL_PIECE" 
                    StatusBitFlags="MARCH_OF_DEATH"
                    StatusBitFlagsExclude="AIRBORNE_TARGET">
                    <ExcludeThing>AlliedWallPiece</ExcludeThing>
                    <ExcludeThing>SovietWallPiece</ExcludeThing>
                    <ExcludeThing>JapanWallPiece</ExcludeThing>
                </SpecialObjectFilter>
            </DamageNugget>
        
       	 	<!-- Sets status bit so that Tanya knows to detach -->
            <AttributeModifierNugget
				AttributeModifierName="AttributeModifier_AlliedCommandoDetonationWeapon"
				AttributeModifierOwnerName="AttributeModifier_AlliedCommandoDetonationWeaponOwner">
                <SpecialObjectFilter
					Rule="ANY"
					Include="STRUCTURE VEHICLE VALID_TARGET_FOR_C4"
                    StatusBitFlags="MARCH_OF_DEATH"
                    StatusBitFlagsExclude="AIRBORNE_TARGET">
                    <ExcludeThing>AlliedWallPiece</ExcludeThing>
                    <ExcludeThing>SovietWallPiece</ExcludeThing>
                    <ExcludeThing>JapanWallPiece</ExcludeThing>
                </SpecialObjectFilter>
			</AttributeModifierNugget>                
		</Nuggets>
	</WeaponTemplate>
   	
	<WeaponTemplate
		id="AlliedBaseDefenseRockets"
		inheritFrom="ScatterableWeapon" 
		AttackRange="300.0"
		WeaponSpeed="300"
		MinWeaponSpeed="300"
		MaxWeaponSpeed="310"
		FireSound="ALL_MultigunnerTurret_MissileFire"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		AcceptableAimDelta="20d"
		ClipSize="2"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<FiringDuration
				MinSeconds=".25s"
				MaxSeconds=".25s" />
		<ClipReloadTime
				MinSeconds="0.5s"
				MaxSeconds="0.6s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedBaseDefenseGroundMissileProjectile"
				WarheadTemplate="AlliedBaseDefenseMissilePodProjectileWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedAntiGroundAircraftMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s" />
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="AlliedBaseDefenseRockets_Aircraft"
		inheritFrom="AlliedBaseDefenseRockets" 
		AttackRange="300.0"
		RequiredAntiMask="ANTI_AIRBORNE_INFANTRY ANTI_AIRBORNE_VEHICLE">
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedBaseDefenseMissilePodProjectileWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY" >
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="50.0"
				Radius="10.0"
				DelayTimeSeconds="0.0s"
				DamageType="ROCKET"
				DamageFXType="ALLIED_MISSILE"
				DeathType="EXPLODED">	
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietAntiVehicleVehicleTech1</IncludeThing>
						<IncludeThing>SovietAntiVehicleVehicleTech3</IncludeThing>
						<IncludeThing>AlliedAntiVehicleVehicleTech1</IncludeThing>
						<IncludeThing>AlliedAntiVehicleVehicleTech3</IncludeThing>
						<IncludeThing>AlliedAntiNavyShipTech1</IncludeThing>
						<IncludeThing>JapanAntiVehicleVehicleTech1</IncludeThing>
						<IncludeThing>JapanAntiVehicleVehicleTech3</IncludeThing>
					</Filter>		
					</DamageScalarDetails>

        <DamageScalarDetails
          Scalar= "250%">
					<Filter 
						Rule="NONE"
						Include="INFANTRY" />
				</DamageScalarDetails>
					
				</DamageNugget>
			<SuppressionNugget
				Radius="10.0"
				Suppression="25"
				DurationSeconds="5s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="ParticleCannonWeapon"
		
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
		AttackRange="10000"
		 Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<WeaponAiHintInfo
				UseAsWarheadForDamageCalculations="ParticleAcceleratorFinalWeapon" />
		<Nuggets>
            <WeaponOCLNugget WeaponOCL="OCL_ParticleCannonProjectiles"/>
			<WeaponOCLNugget WeaponOCL="OCLParticleCannon"/>
			<ReportWeaponFiredStatNugget/>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="ParticleAcceleratorFinalWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED" >
		<Nuggets>
			<DamageNugget
				Damage="400.0"
				DamageTaperOff="200"
				Radius="250.0"
				DelayTimeSeconds="0.25s"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_PARTICLE"
				DeathType="CATALYST"
				NotifyObserversOnPreDamageEffectPosition="true"
				RadiusAffectsBridges="true">
			</DamageNugget>
			<SuppressionNugget
				Radius="10.0"
				Suppression="25"
				DurationSeconds="5s" />
            
		</Nuggets>
		
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedScoutInfantryMaul"
		AttackRange="30.0"
		ChaseWeapon="true"
		WeaponSpeed="125.0"
		ReAcquireDetailType="PRE_FIRE"
		ProjectileSelf="true"
		ClipSize="1"		
		FireSound="ALL_Dog_Attack"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="true"
		HoldDuringReload="true"
		VirtualDamage="SHARE"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		InstantLoadClipOnActivate="true"
        FinishAttackOnceStarted="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND"
		MeleeWeapon="true">
		<!-- this is the amount of time the dog should spend in the air -->
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<!-- this should match the time the dog spends attacking -->
		<ClipReloadTime
			MinSeconds="1.5s"
			MaxSeconds="1.5s" />
		<Nuggets>			
			<!-- forbid attacking anything that is RIOT_SHIELDED so won't auto-acquire peacekeepers when it can't do any damage to them -->
			<!-- Ditto in-hole Tankbusters, since we'll clear their NO_ATTACK status and allow them to attack from their hole -->
			
			<!-- remove any effects that might prevent the hit reaction from making the victim face us -->
			<ParalyzeNugget
				RemoveParalyzeType="EMP"
				ForbiddenTargetObjectStatus="RIOT_SHIELDED IN_SPIDER_HOLE">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VEHICLE AIRCRAFT">
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
					 <ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
				</SpecialObjectFilter>
			</ParalyzeNugget>
			<DamageNugget
				Damage="1.0"
				Radius="0.0"
				DamageType="UNRESISTABLE"
				DeathType="BITTEN"
				ForbiddenTargetObjectStatus="RIOT_SHIELDED IN_SPIDER_HOLE">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VEHICLE AIRCRAFT">
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
					 <ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
			<AttributeModifierNugget
				AttributeModifierName="AlliedScoutInfantryMaulAttributeModifier"
				AttributeModifierOwnerName="AlliedScoutInfantryMaulOwnerAttributeModifier"
				ForbiddenTargetObjectStatus="RIOT_SHIELDED IN_SPIDER_HOLE">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VEHICLE AIRCRAFT">
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
          <ExcludeThing>SovietScoutVehicle</ExcludeThing>
           <ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>
			<ProjectileNugget
				WarheadTemplate="AlliedScoutInfantryMaulWarhead"
				ForbiddenTargetObjectStatus="RIOT_SHIELDED IN_SPIDER_HOLE">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VEHICLE AIRCRAFT">
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
					 <ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
				</SpecialObjectFilter>
			</ProjectileNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedScoutInfantryMaulWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		FinishAttackOnceStarted="true" 
		HitStoredTarget="true">
        <FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="0.3s"
			MaxSeconds="0.3s" />
		<Nuggets>
			<AttributeModifierNugget
				AttributeModifierName="AlliedScoutInfantryMaulLandedAttributeModifier"
				ForbiddenTargetObjectStatus="IN_SPIDER_HOLE"
			/>
			<DamageNugget
				Damage="200.0"
				Radius="0.0"
				DamageType="MELEE"
        DamageFXType="ALLIED_DOG"
        DeathType="BITTEN"
				ForbiddenTargetObjectStatus="IN_SPIDER_HOLE">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VEHICLE AIRCRAFT">
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedCryoSatelliteLvl1"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		ReAcquireDetailType="PER_ATTACK"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>			
			<SecondaryDamageNugget
				Amount="75"
				Radius="60"
				DamageTaperOff="25">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY VEHICLE HUGE_VEHICLE AIRCRAFT STRUCTURE TIME_BOMB"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET PARACHUTING UNDER_IRON_CURTAIN"/>
			</SecondaryDamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedCryoSatelliteLvl2"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		ReAcquireDetailType="PER_ATTACK"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>
			<SecondaryDamageNugget
				Amount="75"
				Radius="100"
				DamageTaperOff="25">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY VEHICLE HUGE_VEHICLE AIRCRAFT STRUCTURE TIME_BOMB"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET PARACHUTING UNDER_IRON_CURTAIN"/>
			</SecondaryDamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedCryoSatelliteLvl3"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		ReAcquireDetailType="PER_ATTACK"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>
			<SecondaryDamageNugget
				Amount="75"
				Radius="150"
				DamageTaperOff="25">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY VEHICLE HUGE_VEHICLE AIRCRAFT STRUCTURE TIME_BOMB"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET PARACHUTING UNDER_IRON_CURTAIN"/>
			</SecondaryDamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedSupportAircraftCryobeam"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		FiringLoopSound="ALL_Cryocopter_CryobeamFire"
		RadiusDamageAffects="ENEMIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		AcceptableAimDelta="20d"
		ReAcquireDetailType="PER_CLIP"
		RequiredAntiMask="ANTI_STRUCTURE ANTI_GROUND ANTI_WATER">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1.0s"
				LaserId="0">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY VEHICLE HUGE_VEHICLE AIRCRAFT STRUCTURE TIME_BOMB"
					Exclude="BRIDGE_GATEHOUSE" 
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET PARACHUTING"/>
			</ActivateLaserNugget>
			<!-- Normal Weapon -->
			<SecondaryDamageNugget
				Amount="75">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="BRIDGE_GATEHOUSE" 
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET PARACHUTING UNDER_IRON_CURTAIN">
				</SpecialObjectFilter>
				<ForbiddenUpgrade>Upgrade_AlliedHighTechnology</ForbiddenUpgrade>
			</SecondaryDamageNugget>

			<!-- High Technology Special power weapon -->
			<SecondaryDamageNugget
				Amount="100">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="BRIDGE_GATEHOUSE" 
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET PARACHUTING UNDER_IRON_CURTAIN">
				</SpecialObjectFilter>
				<RequiredUpgrade>Upgrade_AlliedHighTechnology</RequiredUpgrade>
			</SecondaryDamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedSupportAircraftShrinkRay"
		AttackRange="99999"
		RadiusDamageAffects="ALLIES ENEMIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER">
		<Nuggets>
			<!-- ALL nuggets must have same object filter as SpecialPower_ShrinkRay -->
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="1">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE HUGE_VEHICLE TIME_BOMB"
					Exclude="AIRCRAFT"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET"/>
			</ActivateLaserNugget>

			<!-- Normal Weapon -->
			<AttributeModifierNugget
				AttributeModifierName="AttributeMod_AlliedSupportAircraftShrinkRay">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE HUGE_VEHICLE TIME_BOMB"
					Exclude="AIRCRAFT"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET"/>
				<ForbiddenUpgrade>Upgrade_AlliedHighTechnology</ForbiddenUpgrade>
			</AttributeModifierNugget>

			<!-- High Technology Special power weapon -->
			<AttributeModifierNugget
				AttributeModifierName="AttributeMod_AlliedSupportAircraftShrinkRay_HighTechnology">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE HUGE_VEHICLE TIME_BOMB"
					Exclude="AIRCRAFT"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET"/>
				<RequiredUpgrade>Upgrade_AlliedHighTechnology</RequiredUpgrade>
			</AttributeModifierNugget>
			
			<!-- temporary tint until we get some sort of real feedback -->
			<TintObjectsNugget
				PreColorTime="1s"
				SustainedColorTime="19s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE HUGE_VEHICLE"
					Exclude="AIRCRAFT"
					StatusBitFlagsExclude="SUBMERGED AIRBORNE_TARGET"/>
				<Color R="2" G="2" B="2"/>
			</TintObjectsNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedBomberAircraftBombWeapon"
		AttackRange="50.0"
		ContinueAttackRange="50.0"
		ScaleAttackRangeByAmmoRemaining="true"
		RadiusDamageAffects="ENEMIES"
		CanFireWhileMoving="true"
		ClipSize="6"
		FireSound="SOV_Kirov_BombDrop"
		AutoReloadsClip="RETURN_TO_BASE"		
		Flags="FORCE_EMPTY_ENTIRE_CLIP" 
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AcceptableAimDelta="180d">
		<FiringDuration
				MinSeconds=".25s"
				MaxSeconds=".25s" />
		<ClipReloadTime
			MinSeconds="15.0s"
			MaxSeconds="15.0s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedBomberAircraftBombProjectile"
				WarheadTemplate="AlliedBomberAircraftBombWarhead" >
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="AlliedBomberAircraftBombProjectile_Vet"/>
			</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<!-- Air Power Upgraded Weapon -->
	<WeaponTemplate
		id="AlliedBomberAircraftBombWeapon_AirPower"
		inheritFrom="AlliedBomberAircraftBombWeapon"
		ClipSize="9"
		FinishAttackOnceStarted="true"
		Flags="+SYNC_AMMO_ON_ACTIVATE">
		<ClipReloadTime
			MinSeconds="10s"
			MaxSeconds="10s" />
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedBomberAircraftBombWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="250.0"
				Radius="25.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_BOMB"
				DeathType="NORMAL"> 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			<MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
				ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietFighterAircraftFlakMissile"
		AttackRange="200.0"
		MinimumAttackRange="10"
		WeaponSpeed="500"
		AcceptableAimDelta="20d"
		PreAttackType="PER_SHOT"
		ClipSize="16"
		AutoReloadsClip="RETURN_TO_BASE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		FireSound="SOV_MigFighter_MissileFire"
		FireFX="FX_SovietMigMissilesFire"
		FireVeteranFX="FX_SovietMigMissilesFire_Vet"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		CanFireWhileMoving="true"
		InstantLoadClipOnActivate="true"
		VirtualDamage="SHARE"
 		>
<!--
		SingleAmmoReloadedNotFullSound="GDI_FireHawk_AmmoLoadOne"
		ClipReloadedSound="GDI_FireHawk_AmmoReloaded"
-->
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="10s"
			MaxSeconds="10s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="SovietFighterAircraftFlakMissileWarhead"
				ProjectileTemplate="SovietFighterAircraftFlakMissileProjectile">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietFighterAircraftFlakMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietFighterAircraftFlakMissileWarhead"
		ProjectileCollidesWith="ENEMIES"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="95.0"
				Radius="20"
				DamageTaperOff="25.0"
				DamageType="FLAK"
				DeathType="EXPLODED">
			<DamageScalarDetails Scalar= "200%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietBomberAircraft</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
			<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietFighterAircraft</IncludeThing>
						<IncludeThing>AlliedFighterAircraft</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiNavalScoutSonar"
		AttackRange="100.0"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		FireSound="ALL_Dolphin_WeaponFire"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_GROUND"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<DamageNugget
				id="AlliedAntiNavalScoutSonarDamageNugget"
				Damage="0.01"
				Radius="1.0"
				DamageType="MAGIC"
				DeathType="NORMAL"/>
			<!-- Linear Damage Nugget does no damage, only used for the sweep FX -->
			<ActivateLinearDamageNugget
				id="AlliedAntiNavalScoutSonarActivateLinearDamageNugget"
				 Lifetime="2.0s"/>
		</Nuggets>
	</WeaponTemplate>
	
	<!-- This weapon is used to attack bridges only -->
	<WeaponTemplate
		id="AlliedAntiNavalScoutSonarForBridges"
		inheritFrom="AlliedAntiNavalScoutSonar"
		RequiredAntiMask="ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_SUBMERGED">
		<Nuggets>
			<DamageNugget
				id="AlliedAntiNavalScoutSonarDamageNugget"
				Damage="50.0">
				<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />
			</DamageNugget>
			<ActivateLinearDamageNugget
				id="AlliedAntiNavalScoutSonarActivateLinearDamageNugget">
				<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />
			</ActivateLinearDamageNugget>
		</Nuggets>	
	</WeaponTemplate>	
	
	<!-- triggered by LinearDamageUpdate in AlliedAntiNavalScout -->
	<WeaponTemplate
		id="AlliedAntiNavalScoutSonarSweepWeapon">
		<Nuggets>
		<DamageNugget
			Damage="50.0"
			Radius="10.0"
			DamageType="CONCUSSIVE"
			DeathType="NORMAL"
        	DamageFXType="ALLIED_SONIC">
     		<SpecialObjectFilter
				Rule="ALL"
				Exclude="BRIDGE_SEGMENT BRIDGE" />  
			</DamageNugget>	 		
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiStructureSolarTargeter"
		AttackRange="500.0"
		MinimumAttackRange="200"
		CanFireWhileMoving="false"
		WeaponSpeed="999999.0"
		FireSound="ALL_AthenaCannon_WeaponFire"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="5d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="NOT_ATTRACTED_BY_MAGNETS"
		RevealShroudOnFire="true">

		<PreAttackDelay
			MinSeconds="2.0s"
			MaxSeconds="2.0s" />
		<FiringDuration
			MinSeconds="2.0s"
			MaxSeconds="2.0s" />
		<ClipReloadTime
			MinSeconds="1.1s"
			MaxSeconds="1.1s" />
		<WeaponAiHintInfo
				UseLongLockOnTimeCode="true"
				UseAsWarheadForDamageCalculations="AthenaCannonWeapon" />
		<Nuggets>
      <WeaponOCLNugget
        WeaponOCL="OCL_AthenaCannon">
        <ForbiddenUpgrade>Upgrade_Veterancy_HEROIC</ForbiddenUpgrade>
      </WeaponOCLNugget>
      <WeaponOCLNugget
        WeaponOCL="OCL_AthenaCannon_VET">
        <RequiredUpgrade>Upgrade_Veterancy_HEROIC</RequiredUpgrade>
      </WeaponOCLNugget>
    </Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AthenaCannonWeapon"
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AttackRange="10000"
		Flags="NOT_ATTRACTED_BY_MAGNETS">
		<PreAttackDelay
			MinSeconds="1.5s"
			MaxSeconds="1.5s" />
		<Nuggets>
			<DamageNugget
				Damage="20.0"
				Radius="10.0"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_ATHENA"
				DeathType="NORMAL"
				PartitionFilterTestType="CIRCLE"/>			
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiStructureSolarTargeterSweep"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		PreAttackType="PER_SHOT"
		ClipSize="1"
		AutoReloadsClip="AUTO"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Damage="2000.0"
				Radius="5.0"
				DelayTimeSeconds="0.1s"
				DamageType="CANNON"
				DamageFXType="ALLIED_ATHENA"
				DeathType="NORMAL">
				<SpecialObjectFilter
					Rule="NONE"
					Include="INFANTRY"/>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	
	<!-- check the StartAbilityRange in the unit's WeaponFireSpecialAbilityUpdate to determine the weapon range. -->
	<WeaponTemplate
		id="AlliedAntiNavalScoutJumpWeapon"
		AttackRange="999999.0"
		MinimumAttackRange="0"
		WeaponSpeed="160"
		ProjectileSelf="true"
		AutoReloadsClip="AUTO"
		PreAttackType="PER_SHOT"
		HitPercentage="0%"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="DummyWeaponWarhead" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietScoutInfantryMaul"
		AttackRange="20.0"
		ChaseWeapon="true"
		WeaponSpeed="999999.0"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		FireFX="FX_BearSlashMaul"
        FireVeteranFX="FX_BearSlashMaul"
		AcceptableAimDelta="90d"
		CanFireWhileMoving="true"
		MeleeWeapon="true"
		HitStoredTarget="true"
		FinishAttackOnceStarted="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
        <FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <Nuggets>
            <DamageNugget
				Damage="200.0"
				Radius="0.0"
                DelayTimeSeconds="0.3s"
				DamageType="MELEE"
        DamageFXType="ALLIED_DOG"
				DeathType="NORMAL">
                <SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE VEHICLE AIRCRAFT">
                    <ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </DamageNugget>
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="AlliedAntiNavyShipTech1Cannon"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		WeaponSpeed="1000"
		MinWeaponSpeed="5000"
		MaxWeaponSpeed="5000"
		AcceptableAimDelta="20d"
		ClipSize="1"
		WeaponRecoil="1d"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
		FireSound="ALL_AssaultDestroyer_WeaponFire"
		FireFX="FX_AlliedTankGun"
		FireVeteranFX="FX_AlliedTankGun_Vet"
 		>
        <PreAttackDelay
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
      <Nuggets>
        <ProjectileNugget
				WarheadTemplate="AlliedAntiNavyShipTech1CannonWarhead"
				ProjectileTemplate="AlliedAntiNavyShipTech1CannonProjectile">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="AlliedAntiNavyShipTech1CannonProjectile"/>
      </ProjectileNugget>
            <!--DamageNugget
				Damage="120.0"
				DamageType="CANNON"
				DamageFXType="ALLIED_CANNON"
				DeathType="EXPLODED" />
            <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" /-->
            <InformTargetNugget />
        </Nuggets>
        <ScatterRadiusVsType
			Radius="10.0">
            <Filter
				Rule="NONE"
				Include="INFANTRY" />
        </ScatterRadiusVsType>
    </WeaponTemplate>

    <WeaponTemplate
		id="AlliedAntiNavyShipTech1CannonWarhead"
		inheritFrom="ScatterableWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
 		>
		<Nuggets>
			<DamageNugget
				Radius="20.0"
				Damage="120.0"
				DamageType="CANNON"
				DamageFXType="ALLIED_CANNON"
				DeathType="EXPLODED" />
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiNavyShipTech1DepthCharge"
		AttackRange="150.0"
		WeaponSpeed="250"
		RadiusDamageAffects="ENEMIES"
		CanFireWhileMoving="true"
		ClipSize="1"
		AcceptableAimDelta="180d"
		RequiredAntiMask="ANTI_SUBMERGED"		
 		>
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedAntiNavyShipTech1DepthChargeProjectile"
				WarheadTemplate="AlliedAntiNavyShipTech1DepthChargeWarhead">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="AlliedAntiNavyShipTech1DepthChargeProjectile"/>
      </ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiNavyShipTech1DepthChargeWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES NEUTRALS ENEMIES NEUTRALS"
		HitStoredTarget="true"
		RequiredAntiMask="ANTI_SUBMERGED"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
 		>
		<Nuggets>
			<DamageNugget
				Damage="150.0"
				DamageTaperOff="100"
				Radius="20.0"
				DamageType="CONCUSSIVE"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAttackDroneMissle"
		ClipSize="1"
		AutoReloadsClip="NONE"
		AttackRange="100.0"
		WeaponSpeed="200"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		Flags="RELOAD_WHEN_ATTACK_STOPS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<FiringDuration
				MinSeconds=".25s"
				MaxSeconds=".25s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedAttackDroneProjectile"
				WarheadTemplate="AlliedAttackDroneMissileProjectileWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedAttackDroneProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s" />
		</Nuggets>
		
	</WeaponTemplate>

  <WeaponTemplate
		id="AlliedAttackDroneMissle_Veteran"
		ClipSize="1"
		AutoReloadsClip="NONE"
		AttackRange="100.0"
		WeaponSpeed="200"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		Flags="RELOAD_WHEN_ATTACK_STOPS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
    <FiringDuration
				MinSeconds=".25s"
				MaxSeconds=".25s" />
    <Nuggets>
      <ProjectileNugget
				ProjectileTemplate="AlliedAttackDroneProjectile_Veteran"
				WarheadTemplate="AlliedAttackDroneMissileProjectileWarhead">        
      </ProjectileNugget>
      <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s" />
    </Nuggets>

  </WeaponTemplate>

	<WeaponTemplate
		id="AlliedAttackDrone_Leeched_Missle"
		inheritFrom="AlliedAttackDroneMissle"
		AcceptableAimDelta="20d"
		AutoReloadsClip="AUTO">
		<FiringDuration
			MinSeconds="2s"
			MaxSeconds="2s" />
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAttackDroneMissileProjectileWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER" >
		<Nuggets>
			<DamageNugget
				Damage="150.0"
				Radius="15.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_MISSILE"
				DeathType="EXPLODED">
				<SpecialObjectFilter
					Rule="ALL">
					<ExcludeThing>AlliedAttackDrone</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiGroundAircraftMissilePodWeapon"
		inheritFrom="ScatterableWeapon"
		AttackRange="100.0"
		WeaponSpeed="300"
		AcceptableAimDelta="180d"
		ClipSize="2"
		FireSound="ALL_Vindicator_WeaponFireBombDrop"
		AutoReloadsClip="RETURN_TO_BASE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		IgnoresContactPoints="true"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS">
		<FiringDuration
				MinSeconds=".1s"
				MaxSeconds=".1s" />
		<ClipReloadTime
				MinSeconds="10s"
				MaxSeconds="10s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedAntiGroundAircraftMissileProjectile"
				WarheadTemplate="AlliedAntiGroundAircraftMissilePodProjectileWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedAntiGroundAircraftMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s" />
			<InformTargetNugget
				MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>

	<!-- Air Power Upgraded Weapon -->
	<WeaponTemplate
		id="AlliedAntiGroundAircraftMissilePodWeapon_AirPower"
		inheritFrom="AlliedAntiGroundAircraftMissilePodWeapon"
		ClipSize="3"
		Flags="+SYNC_AMMO_ON_ACTIVATE">
		<ClipReloadTime
			MinSeconds="7s"
			MaxSeconds="7s" />
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiGroundAircraftMissilePodProjectileWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE" >
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="120.0"
				Radius="10.0"
				DamageTaperOff="25"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_MISSILE"
				DeathType="EXPLODED" >	
				<DamageScalarDetails Scalar= "28%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
					
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedCommandoTech1</IncludeThing>
						<IncludeThing>SovietCommandoTech1</IncludeThing>
						<IncludeThing>JapanCommandoTech1</IncludeThing>
						<IncludeThing>JapanBarracksEgg</IncludeThing>
						<IncludeThing>JapanBaseDefenseAdvancedEgg</IncludeThing>
						<IncludeThing>JapanBaseDefenseEgg</IncludeThing>
						<IncludeThing>JapanNavalYardEgg</IncludeThing>
						<IncludeThing>JapanPowerPlantEgg</IncludeThing>
						<IncludeThing>JapanRefineryEgg</IncludeThing>
						<IncludeThing>JapanSuperWeaponAdvancedEgg</IncludeThing>
						<IncludeThing>JapanSuperWeaponEgg</IncludeThing>
						<IncludeThing>JapanTechStructureEgg</IncludeThing>
						<IncludeThing>JapanWarFactoryEgg</IncludeThing>
					</Filter>		
					</DamageScalarDetails>	
					
					
				<DamageScalarDetails Scalar= "75%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
						<IncludeThing>SovietAntiAirShip</IncludeThing>
						<IncludeThing>JapanAntiAirShip</IncludeThing>
						<IncludeThing>JapanAntiAirVehicleTech1</IncludeThing>
						<IncludeThing>AlliedAntiAirShip</IncludeThing>
						<IncludeThing>AlliedAntiAirVehicleTech1</IncludeThing>
					</Filter>		
					</DamageScalarDetails>	
					
				</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="ConfettiWeapon"
		AttackRange="150.0"
		WeaponSpeed="1000"
		MinWeaponSpeed="5000"
		MaxWeaponSpeed="5000"
		AcceptableAimDelta="20d"
		ClipSize="1"
		WeaponRecoil="5d"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		FireSound="ALL_Guardian_WeaponFire"
		FireFX="FX_Confetti"
    FireVeteranFX="FX_Confetti"
 		>
    <FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
    <ClipReloadTime
			MinSeconds="100s"
			MaxSeconds="100s" />
    
  </WeaponTemplate>
  

	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech1Cannon"
		AttackRange="150.0"
		WeaponSpeed="1000"
		MinWeaponSpeed="5000"
		MaxWeaponSpeed="5000"
		AcceptableAimDelta="20d"
		ClipSize="1"
		WeaponRecoil="5d"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		FireSound="ALL_Guardian_WeaponFire"		
		FireFX="FX_AlliedTankGun"
		FireVeteranFX="FX_AlliedTankGun_Vet"		
 		>
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="1.8s"
			MaxSeconds="1.8s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="AlliedAntiVehicleVehicleTech1Warhead"			
                ProjectileTemplate="AlliedAntiVehicleVehicleTech1Projectile">
                <VeterancyProjectiles
                    VeterancyLevel="HEROIC"
                    ProjectileTemplate="AlliedAntiVehicleVehicleTech1Projectile"/>
            </ProjectileNugget>
            <!--DamageNugget
                Damage="60.0"
                DamageType="CANNON"
                DamageFXType="ALLIED_CANNON"
                DeathType="EXPLODED" />
            <SuppressionNugget
                Radius="20.0"
                Suppression="10"
                DurationSeconds="3s" /-->
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech1Warhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
        <Nuggets>
            <DamageNugget
				Damage="60.0"
				DamageType="CANNON"
				DamageFXType="ALLIED_CANNON"
				DeathType="EXPLODED" />
            <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="AlliedAntiVehicleVehicleTech1TargetPainter"
		AttackRange="300.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="20d"
		ReAcquireDetailType="PER_CLIP"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		RequiredFiringObjectStatus="GENERIC_TOGGLE_STATE"
		>
		<FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
		<Nuggets>
			<!-- for visual display only -->
			<ActivateLaserNugget
				Lifetime="1.1s"
				LaserId="1"/>

      <!-- Normal Attribute Modifier -->
      <AttributeModifierNugget
				DamageFXType="ALLIED_PAINTER"
				AttributeModifierName="AttributeMod_TargetPainted">
        <ForbiddenUpgrade>Upgrade_AlliedHighTechnology</ForbiddenUpgrade>
      </AttributeModifierNugget>
			
			<!-- Normal Weapon -->
			<SpecialPowerNugget
				SpecialPowerTemplate="SpecialPower_PaintTargetTrigger">
				<ForbiddenUpgrade>Upgrade_AlliedHighTechnology</ForbiddenUpgrade>
			</SpecialPowerNugget>

      <!-- High Technology Attribute Modifier -->
      <AttributeModifierNugget
				DamageFXType="ALLIED_PAINTER"
				AttributeModifierName="AttributeMod_TargetPainted_HighTechnology">
        <RequiredUpgrade>Upgrade_AlliedHighTechnology</RequiredUpgrade>      
    </AttributeModifierNugget>
			<!-- High Technology Special power weapon -->
			<SpecialPowerNugget
				SpecialPowerTemplate="SpecialPower_PaintTargetTrigger_HighTechnology">
				<RequiredUpgrade>Upgrade_AlliedHighTechnology</RequiredUpgrade>
			</SpecialPowerNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<!-- Allied Anti Vehicle Vehicle Tech 3 (MIRAGE TANK) -->
	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech3PrismCannon"
		AttackRange="125.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
		FireSound="ALL_Mirage_WeaponFireMS"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="10d"
		ClipSize="1"
		FireFX="FX_AlliedPrismTowerFire"
    FireVeteranFX="FX_AlliedPrismTowerFire"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AutoReloadsClip="AUTO"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS" 
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="1.5s"
			MaxSeconds="1.5s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1.5s"
				LaserId="201"/>
			<WeaponOCLNugget
				WeaponOCL="OCL_AlliedAntiVehicleVehicleTech3CannonNodeRegular"/>
			<DamageNugget
				Damage="200.0"
				Radius="0.0"
				DelayTimeSeconds="0.1s"
				DamageType="PRISM"
				DamageFXType="ALLIED_PRIMAGECANNON"
				DeathType="LASERED"/>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech3CannonNode"
		AttackRange="125.0"
		CanFireWhileMoving="false"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		ClipSize="1"
        Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AutoReloadsClip="AUTO"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="2.0s"
			MaxSeconds="2.0s" />
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_AlliedAntiVehicleVehicleTech3CannonNodeEnd"/>
			<DamageNugget
				Damage="25.0"
				Radius="0.0"
				DelayTimeSeconds="0.1s"
				DamageType="PRISM"
				DamageFXType="ALLIED_PRIMAGECANNON"
				DeathType="LASERED"/>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech3PrismCannon_Veteran"
		AttackRange="150.0"
		CanFireWhileMoving="false"
		WeaponSpeed="999999.0"
		FireSound="ALL_Mirage_WeaponFireMS"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="10d"
		ClipSize="1"
    FireFX="FX_AlliedPrismTowerFire_Vet"
    FireVeteranFX="FX_AlliedPrismTowerFire_Vet"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AutoReloadsClip="AUTO"
		ReAcquireDetailType="PER_CLIP">
    <FiringDuration
			MinSeconds="1.5s"
			MaxSeconds="1.5s" />
    <ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1.5s"
				LaserId="202"/>
			<WeaponOCLNugget
					 WeaponOCL="OCL_AlliedAntiVehicleVehicleTech3CannonNodeVeteran1"/>
			<DamageNugget
				Damage="250.0"
				Radius="0.0"
				DelayTimeSeconds="0.1s"
				DamageType="PRISM"
				DamageFXType="ALLIED_PRIMAGECANNONVET1"
				DeathType="LASERED"/>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />	
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech3CannonNode_Veteran1"
		AttackRange="150.0"
		CanFireWhileMoving="false"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		ClipSize="1"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AutoReloadsClip="AUTO"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="2.0s"
			MaxSeconds="2.0s" />
		<Nuggets>
			<WeaponOCLNugget
					 WeaponOCL="OCL_AlliedAntiVehicleVehicleTech3CannonNodeVeteran2"/>
			<DamageNugget
				Damage="40.0"
				Radius="0.0"
				DelayTimeSeconds="0.1s"
				DamageType="PRISM"
				DamageFXType="ALLIED_PRIMAGECANNONVET2"
				DeathType="LASERED"/>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />					
		</Nuggets>
	</WeaponTemplate>

	<!-- Allied Prism Tower Spectrum Tower-->
	<WeaponTemplate
		id="AlliedBaseDefenseAdvancedPrismCannon"
		AttackRange="350.0"
		CanFireWhileMoving="false"
		WeaponSpeed="999999.0"
		AcceptableAimDelta="180d"
		FireSound="ALL_PrismSpectrumTower_WeaponFireMS"
		FireFX="FX_AlliedPrismTowerFire"
		FireVeteranFX="FX_AlliedPrismTowerFire_Vet"
		RadiusDamageAffects="ENEMIES"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
		
		AutoReloadsClip="AUTO"
		ReAcquireDetailType="PER_CLIP">
		<!-- PreAttackDelay needed for NotifyWhenAttackingBehavior (hackish) -->
		<PreAttackDelay
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<FiringDuration
			MinSeconds="1.5s"
			MaxSeconds="1.5s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="1"/>
			<WeaponOCLNugget
				WeaponOCL="OCL_AlliedAntiVehicleVehicleTech3CannonNodeRegular"/>
			<DamageNugget
				Damage="300.0"
				Radius="0.0"
				DelayTimeSeconds="0.1s"
				DamageType="PRISM"
				DamageFXType="ALLIED_PRIMAGECANNON"
				DeathType="LASERED"/>
		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
			id="AlliedBaseDefenseAdvancedPrismLink"
			AttackRange="=$SPECTRUM_TOWER_LINK_RANGE"
			CanFireWhileMoving="false"
			WeaponSpeed="999999.0"
			AcceptableAimDelta="180d"
			RadiusDamageAffects="ALLIES"
			ClipSize="1"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_STRUCTURE"
			AutoReloadsClip="AUTO"
			ReAcquireDetailType="PER_CLIP"
			PreferredTargetBone="FX_WeaponA">
		<PreAttackDelay
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="0.8s"
			MaxSeconds="0.8s" />
		<Nuggets>
			<AttributeModifierNugget
			   DamageFXType="ALLIED_PRISM"
			   AttributeModifierName="AttributeMod_AlliedPrismAttackBoost">				
					<SpecialObjectFilter
						Rule="NONE"
						Relationship="ALLIES">
						<IncludeThing>AlliedBaseDefenseAdvanced</IncludeThing>
					</SpecialObjectFilter>
				</AttributeModifierNugget>
			<ActivateLaserNugget
				Lifetime="0.5s"
				LaserId="2">
			</ActivateLaserNugget>
		</Nuggets>
	</WeaponTemplate>

	
	<WeaponTemplate
		id="AlliedAntiVehicleVehicleTech3CannonNode_Veteran2"
		AttackRange="75.0"
		CanFireWhileMoving="false"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="180d"
		ClipSize="1"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AutoReloadsClip="AUTO"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="2.0s"
			MaxSeconds="2.0s" />
		<Nuggets>
			<WeaponOCLNugget
					 WeaponOCL="OCL_AlliedAntiVehicleVehicleTech3CannonNodeEnd"/>
			<DamageNugget
				Damage="20.0"
				Radius="0.0"
				DelayTimeSeconds="0.1s"
				DamageType="CANNON"
				DamageFXType="ALLIED_PRIMAGECANNONVET2"
				DeathType="NORMAL"/>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>

	<!-- Allied Anti Infantry Vehicle -->
	<WeaponTemplate
		id="AlliedAntiInfantryVehicleChaingun"
		FireSoundPerClip="ALL_ACVRiptide_MGFire"
		FireFX="FX_MuzzleSovietSickle"
		FireVeteranFX="FX_MuzzleSovietSickle"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ClipSize="5"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				Damage="8.0"
				Radius="0.0"
				DamageType="AUTO_CANNON"
        DamageFXType="SOVIET_AK47" 
				DeathType="NORMAL">
		<DamageScalarDetails Scalar= "125%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedAntiInfantryInfantry</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiInfantryVehicleTorpedoLauncher"
		AttackRange="150.0"
		WeaponSpeed="250"
		FireSound="ALL_ACVRiptide_TorpedoFire"
		CanFireWhileMoving="true"
		ClipSize="2"
		AcceptableAimDelta="30d"
        Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_GROUND">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
		<Nuggets>
			<ProjectileNugget
				id="AlliedAntiInfantryVehicleTorpedoLauncherProjectileNugget"
				ProjectileTemplate="AlliedAntiInfantryVehicleTorpedoProjectile"
				WarheadTemplate="AlliedAntiInfantryVehicleTorpedoWarhead">
        		<VeterancyProjectiles
          			VeterancyLevel="HEROIC"
          			ProjectileTemplate="AlliedAntiInfantryVehicleTorpedoProjectile"/>
      		</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- allows torpedos to be launched at bridges, which are ground structures -->
	<WeaponTemplate
		id="AlliedAntiInfantryVehicleTorpedoLauncherForBridges"	
		inheritFrom="AlliedAntiInfantryVehicleTorpedoLauncher"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_SUBMERGED">
		<Nuggets>
			<ProjectileNugget
				id="AlliedAntiInfantryVehicleTorpedoLauncherProjectileNugget">
				<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />
      		</ProjectileNugget>				
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiInfantryVehicleTorpedoWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
 		>
		<Nuggets>
			<DamageNugget
				Damage="40.0"
				Radius="15.0" 
				DamageType="CONCUSSIVE"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>


	<!-- ========================================= -->

	<!-- Allied Fighter Aircraft -->
	<WeaponTemplate
		id="AlliedFighterAircraftCannon"
		FireSound="ALL_Apollo_WeaponFire"
		FireFX="FX_Allied_FighterFire"
		FireVeteranFX="FX_Allied_FighterFire_Vet"
		AttackRange="200.0"
		MinimumAttackRange="10"
		AcceptableAimDelta="10d"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_PARACHUTE"
		CanFireWhileMoving="true"
		ClipSize="90"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		AutoReloadsClip="RETURN_TO_BASE"
		InstantLoadClipOnActivate="true" 
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="10s"
			MaxSeconds="10s" />
		<Nuggets>
      <DamageNugget
        id="DefaultDamageNugget"
				Damage="20.0"
				DamageType="AUTO_CANNON"
				DelayTimeSeconds="0.1s"
				DamageFXType="ALLIED_FIGHTER"
				DeathType="NORMAL">
			<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietFighterAircraft</IncludeThing>
						<IncludeThing>AlliedFighterAircraft</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
			</DamageNugget>	
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedFighterAircraftCannon_Veteran"
		inheritFrom="AlliedFighterAircraftCannon"/>
	
	<!-- ========================================= -->
	
	<WeaponTemplate
		id="SovietAntiInfantryVehicleChaingun"
		FireSoundPerClip="SOV_Sickle_WeaponFireMS"
		FireFX="FX_MuzzleSovietSickle"
		FireVeteranFX="FX_MuzzleSovietSickle"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ClipSize="5"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				Damage="5.0"
				Radius="0.0"
				DamageType="AUTO_CANNON"
        DamageFXType="SOVIET_MACHINEGUN" 
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>

  <!-- ====================JAPAN SHOGUN'S EXECUTIONER BEGIN===================== -->

  <WeaponTemplate
		id="JapanMechaKingKatana"
		FireSoundPerClip=""
		FireFX="FX_MechaKingSwordAttack"
		FireVeteranFX="FX_MechaKingSwordAttack"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		AcceptableAimDelta="5d"
		FinishAttackOnceStarted="true"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP">		
		<FiringDuration
			MinSeconds="3.0s"
			MaxSeconds="3.0s" />		
		<Nuggets>
			<DamageNugget
				Damage="5000.0"
				Radius="100.0"				
				DelayTimeSeconds="1.9s" 
				DamageType="AUTO_CANNON"
				DamageFXType="SOVIET_MACHINEGUN"
				DeathType="NORMAL"/>
			<MetaImpactNugget
				  ShockWaveAmount="89.0"
				  ShockWaveRadius="100.0"
				  ShockwaveDelaySeconds="1.9s"
				  ShockWaveZMult="1.75" />
    </Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanMechaKingOmegaShockwave"
		AttackRange="150.0"
		ClipSize="1"
		AutoReloadsClip="NONE"
		CanFireWhileMoving="false"
		FireFX="FX_MechaKingOmega"
		AcceptableAimDelta="180d"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		DamageDealtAtSelfPosition="true"
		RadiusDamageAffects="ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredFiringObjectStatus="SPECIAL_ABILITY_PACKING_UNPACKING_OR_USING">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="2.00s"
			MaxSeconds="2.00s" />
		<Nuggets>
			<DamageNugget
				Damage="10000.0"
				Radius="600.0"
				DamageSpeed="800.0" 
				DamageTaperOff="25"				
				DamageType="CANNON"
				DeathType="ELECTROCUTED"
				PartitionFilterTestType="CIRCLE" />
			<MetaImpactNugget
				ShockwaveDelaySeconds="1.2s"
				ShockWaveAmount   = "89.0"
				ShockWaveRadius   = "350.0"
				ShockWaveZMult    = "1.3">
			</MetaImpactNugget>
		</Nuggets>

	</WeaponTemplate>

	<WeaponTemplate
		id="MechaKingMissilePod"
		inheritFrom="ScatterableWeapon"
		MinimumAttackRange="100.0"
		AttackRange="350.0"
		WeaponSpeed="300"
		MinWeaponSpeed="300"
		MaxWeaponSpeed="310"		
		FireFX="FX_JapanMIRVFire"
		FireVeteranFX="FX_JapanMIRVFire"
		AcceptableAimDelta="180d"
		ClipSize="4"		
		ScatterRadius="50" 
		AutoReloadsClip="AUTO"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE  ANTI_WATER"
		RadiusDamageAffects="ENEMIES NEUTRALS">
        <FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
        <ClipReloadTime
			MinSeconds="6.0s"
			MaxSeconds="6.5s" />
        <Nuggets>
            <ProjectileNugget
				WarheadTemplate="MechaKingMissilePodProjectileWarhead"
				ProjectileTemplate="SovietAntiGroundAircraftWeaponProjectile">
            </ProjectileNugget>
            <InformTargetNugget />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
			id="MechaKingMissilePodProjectileWarhead"
			ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
			RadiusDamageAffects="ENEMIES NEUTRALS"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE  ANTI_WATER">
		<Nuggets>
			<DamageNugget
				Damage="1000.0"
				Radius="25.0"
				DamageType="ROCKET"
				DamageFXType="JAPAN_MISSILE"
				DeathType="EXPLODED" />
        <MetaImpactNugget
          ShockWaveAmount="89.0"
          ShockWaveRadius="25.0"
          ShockWaveZMult="1.30" />
    </Nuggets>
	</WeaponTemplate>


  <!-- <WeaponTemplate
		id="JapanMechaKingKillCounter"		
		ClipSize="4"			
		AutoReloadsClip="RETURN_TO_BASE" 
		CanFireWhileMoving="true"		
		RadiusDamageAffects="SELF" 
		ShowsAmmoPips="true">		
		<Nuggets>
			<DamageNugget
				Damage="1.0"
				DelayTimeSeconds="0.0s"
				DamageType="HEALING"
				DamageFXType="JAPAN_MECHA"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate> -->
  <!-- ====================JAPAN SHOGUN'S EXECUTIONER END===================== -->

  <WeaponTemplate
		id="AlliedAntiInfantryInfantryShotgun"
		AttackRange="150.0"
		MinTargetPitch="-15d"
		MaxTargetPitch="15d"
		WeaponSpeed="750"
		FireFX="FX_Allied_ShotgunFire"
		FireVeteranFX="FX_Allied_ShotgunFire_Vet"
		FireSound="ALL_Peacekeeper_WeaponFire"
		RadiusDamageAffects="ENEMIES"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		AcceptableAimDelta="1d"
		CanFireWhileMoving="false"
		DamageDealtAtSelfPosition="true"
		ReAcquireDetailType="PER_CLIP"	
		IgnoresContactPoints="true"
		>
		<!-- this little preattack delay is so we restart the firing animation for each shot, otherwise the anim gets out of sync with the FX-->
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				id="peacekeeperdefaultdamage"
				Damage="40.0"
				Radius="155"
				DamageTaperOff="25"
				DelayTimeSeconds="0.0s"
				DamageArc="5d"
				DamageType="GUN"
				DamageFXType="ALLIED_SHOTGUN"
				DeathType="NORMAL"
				PartitionFilterTestType="SPHERE"
				ForceFXPositionToVictim="true"/>
			<MetaImpactNugget
				ShockWaveAmount="50"
				ShockWaveRadius="40.0"
				ShockWaveTaperOff="1.0"
				ShockWaveZMult="1.0"
				ShockWaveArc="5d"
				ForbiddenTargetModelCondition="STUNNED_FLAILING"/>
		</Nuggets>
	</WeaponTemplate>

	<!-- note AcceptableAimDelta is quite high to allow them to shoot circling aircraft directly above them. -->
	<!-- Javelin Soldier JavelinSoldier -->
	<WeaponTemplate
		id="AlliedAntiVehicleInfantryMissileLauncher"
		inheritFrom="ScatterableWeapon"
		AttackRange="175.0"
		WeaponSpeed="300"
        MinWeaponSpeed="150"
		FireFX="FX_AlliedMissileManFire"
		FireVeteranFX="FX_AlliedMissileManFireHeroic"
		FireSound="ALL_JavelinSoldier_MissileFire"
		AcceptableAimDelta="20d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		VirtualDamage="SHARE"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		CanFireWhileMoving="false"
		FinishAttackOnceStarted="true">
    <FiringDuration
				MinSeconds="0.4s"
				MaxSeconds="0.6s" />
    <ClipReloadTime
				MinSeconds="0.1s"
				MaxSeconds="0.1s"	/>
    <Nuggets>
      <ProjectileNugget
				WarheadTemplate="AlliedAntiVehicleInfantryMissileWarhead"
				ProjectileTemplate="AlliedDefaultMissileProjectile">
        <VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedDefaultMissileProjectile_Veteran"/>
      </ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="5s"/>
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
    </Nuggets>
  </WeaponTemplate>
  
  
  
  	<WeaponTemplate
		id="AlliedAntiVehicleInfantryMissileLauncher_Aircraft"
		inheritFrom="AlliedAntiVehicleInfantryMissileLauncher"
		AttackRange="300.0"
		AcceptableAimDelta="90d"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		CanFireWhileMoving="false"
		FinishAttackOnceStarted="true">
		<IncompatibleAttributeModifier>AttributeModifier_Garrisoned</IncompatibleAttributeModifier>
	</WeaponTemplate>

	
	<WeaponTemplate
		id="AlliedAntiVehicleInfantryMissileLauncher_RadarLock"
		AttackRange="250.0"
		MinimumAttackRange="50"
		WeaponSpeed="300"
        MinWeaponSpeed="150"
		FireSound="ALL_JavelinSoldier_MissileFire"
		FireFX="FX_AlliedMissileManFire"
		FireVeteranFX="FX_AlliedMissileManFireHeroic"
		AcceptableAimDelta="5d"
		PreAttackType="PER_TARGET"
		ReAcquireDetailType="PER_ATTACK"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT RELOAD_WHEN_ATTACK_STOPS"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE"
		CanFireWhileMoving="false">
		<!-- Pre Attack Delay is the lock on time -->
		<PreAttackDelay
		  MinSeconds="3.5s"
		  MaxSeconds="3.5s" />
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.3s" />
		<WeaponAiHintInfo
			UseLongLockOnTimeCode="true"
      MaxSpeedOfTarget="65"/>
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="0.3s"
				LaserId="1"/>
			<ProjectileNugget
				WarheadTemplate="AlliedAntiVehicleInfantryMissileWarhead_RadarLock"
				ProjectileTemplate="AlliedDefaultMissileProjectile">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedDefaultMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="5s"/>
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" /> 
		</Nuggets>
  </WeaponTemplate>
  


    <WeaponTemplate
		id="AlliedAntiVehicleInfantryMissileWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE">
    <Nuggets>
      <DamageNugget
				Damage="25.0"
				Radius="5.0"
				DamageType="ROCKET"
				DamageFXType="ALLIED_MISSILE"
				DeathType="EXPLODED">
      </DamageNugget>
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiVehicleInfantryMissileWarhead_RadarLock"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE">
    <Nuggets>
      <DamageNugget
				Damage="40.0"
				Radius="5.0"
				DamageType="ROCKET"
				DamageFXType="ALLIED_MISSILE"
				DeathType="EXPLODED">
      </DamageNugget>
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="AlliedAntiVehicleInfantryMissileWarheadIFV"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE">
    <Nuggets>
      <DamageNugget
				Damage="25.0"
				Radius="5.0"
				DamageType="ROCKET"
				DamageFXType="ALLIED_INFANTRYMISSILE"
				DeathType="EXPLODED">	
				<DamageScalarDetails Scalar= "25%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
				<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	
	<WeaponTemplate
		id="AlliedDroneLaserGuidedBomb"
		AttackRange="150.0"
		WeaponSpeed="100.0"
        MinWeaponSpeed="50"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		CanFireWhileMoving="true"
		ClipSize="0"
		AutoReloadsClip="NONE"
		ChaseWeapon="true"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE" >
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ProjectileNugget
			   WarheadTemplate="AlliedAntiVehicleInfantryMissileWarhead"
			   ProjectileTemplate="AlliedDefaultMissileProjectile">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedDefaultMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="50"
				DurationSeconds="5s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiAirShipPhalanxGun"
		FireSoundPerClip="ALL_Hydrofoil_WeaponFire"
		FireFX="FX_PhalanxGunFire"
		FireVeteranFX="FX_PhalanxGunFire_Vet"
		AttackRange="300.0"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_PARACHUTE"
		CanFireWhileMoving="true"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="15.0"
				Radius="0.0"
				DamageType="AUTO_CANNON"
				DelayTimeSeconds="0.02s"
				DamageFXType="ALLIED_PHALANX"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiAirShipWeaponScrambler"
		AttackRange="300.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
	 	FiringLoopSound="ALL_HydroFoil_ScramblerWeaponLoop"
		FireFX="FX_Hydro2ndFire"
		FireVeteranFX="FX_Hydro2ndFire"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="10d"
		ReAcquireDetailType="PER_CLIP"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"		
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_STRUCTURE"
		RequiredFiringObjectStatus="GENERIC_TOGGLE_STATE"
		IgnoresContactPoints="true">
		<FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
		<Nuggets>
			<!-- for visual display only -->
			<ActivateLaserNugget
				Lifetime="1.1s"
				LaserId="1">
				<SpecialObjectFilter
					Rule="ANY"
					Exclude="INFANTRY"
					Include="VEHICLE SHIP AIRCRAFT FS_BASE_DEFENSE">
					<ExcludeThing>JapanRisingBalloon</ExcludeThing>
					<ExcludeThing>JapanFallingBalloonBomb</ExcludeThing>
					<ExcludeThing>JapanBalloonBomb</ExcludeThing>
				</SpecialObjectFilter>
			</ActivateLaserNugget>

			<AttributeModifierNugget
				DamageFXType="ALLIED_SCRAMBLER"
				AttributeModifierName="AttributeMod_WeaponScrambler">
				<SpecialObjectFilter
					Rule="ANY"
					Exclude="INFANTRY"
					Include="VEHICLE SHIP AIRCRAFT FS_BASE_DEFENSE"
					StatusBitFlagsExclude="UNDER_IRON_CURTAIN">
					<ExcludeThing>JapanRisingBalloon</ExcludeThing>
					<ExcludeThing>JapanFallingBalloonBomb</ExcludeThing>
					<ExcludeThing>JapanBalloonBomb</ExcludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>

			<SpecialPowerNugget
				SpecialPowerTemplate="SpecialPower_WeaponScrambler">
				<SpecialObjectFilter
					Rule="ANY"
					Exclude="INFANTRY"
					Include="VEHICLE SHIP AIRCRAFT FS_BASE_DEFENSE"
					StatusBitFlagsExclude="UNDER_IRON_CURTAIN">
					<ExcludeThing>JapanRisingBalloon</ExcludeThing>
					<ExcludeThing>JapanFallingBalloonBomb</ExcludeThing>
					<ExcludeThing>JapanBalloonBomb</ExcludeThing>
				</SpecialObjectFilter>
			</SpecialPowerNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietHeavyAntiVehicleInfantryTeslaGun"
		FireSoundPerClip="SOV_TeslaTrooper_WeaponFire"
		FireFX="FX_TeslaTrooperFire"
		FireVeteranFX="FX_TeslaTrooperFire_Vet"
		AttackRange="125.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		CanFireWhileMoving="true"
		AcceptableAimDelta="10d"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		FinishAttackOnceStarted="true"
		ShotsPerBarrel="1">
		<PreAttackDelay
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<FiringDuration
			MinSeconds="1.3s"
			MaxSeconds="1.7s" />
		<ClipReloadTime
			MinSeconds="0.3s"
			MaxSeconds="0.7s" />
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="100.0"
				Radius="0.0"
				DamageType="TESLA"
				DamageFXType="SOVIET_TESLA"
				DeathType="ELECTROCUTED"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietHeavyAntiVehicleInfantryShortCircuit"
		AttackRange="50.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		>
		<FiringDuration
			MinSeconds=".1s"
			MaxSeconds=".1s" />
		<Nuggets>
			<!-- this nugget handles enemy tesla troopers -->
			<ParalyzeNugget
				Radius="50.0"
				DurationSeconds="1.1s"
				ParalyzeType="EMP"
				ParalyzeFX="FX_None">
				<SpecialObjectFilter
					Rule="NONE"
					Relationship="ENEMIES NEUTRAL">
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
				</SpecialObjectFilter>
			</ParalyzeNugget>
			<!-- this nugget handles every other non-infantry unit -->
			<ParalyzeNugget
				Radius="50.0"
				DurationSeconds="1.1s"
				ParalyzeType="EMP"
				ParalyzeFX="FX_None">
				<SpecialObjectFilter
					Rule="ANY"
					Relationship="ENEMIES NEUTRAL" 
					Include="VEHICLE"
					Exclude="INFANTRY AIRCRAFT STRUCTURE"
					StatusBitFlagsExclude="UNATTACKABLE UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
					<ExcludeThing>SovietHeavyAntiVehicleInfantry</ExcludeThing>
					<ExcludeThing>JapanBalloonBomb</ExcludeThing>
				</SpecialObjectFilter>
			</ParalyzeNugget>
		</Nuggets>
	</WeaponTemplate>

	<!-- check the StartAbilityRange in the unit's WeaponFireSpecialAbilityUpdate to determine the weapon range. -->
	<WeaponTemplate
		id="SovietAntiInfantryVehicleLeapWeapon"
		IdleAfterFiringDelaySeconds="0s"
		AttackRange="300.0"
		MinimumAttackRange="20"
		WeaponSpeed="300"
		ProjectileSelf="true"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
		PreAttackType="PER_SHOT"
		FireFX="FX_None"
    FireVeteranFX="FX_None"
Flags="NOT_ATTRACTED_BY_MAGNETS" 
		HitPercentage="0%" >
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="DummyWeaponWarhead" />
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiInfantryVehicleLandWeapon"
		FireFX="FX_SovietSickleLand"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
    FireVeteranFX="FX_SovietSickleLand">
		<Nuggets>
			<!-- this nugget handles enemy SovietAntiInfantryVehicles -->
			<DamageNugget
				Damage="80.0"
				DamageTaperOff="40"
				Radius="50.0"
				DamageType="MELEE"
				DeathType="CRUSHED">
				<SpecialObjectFilter
					Rule="NONE"
					Relationship="ENEMIES">
					<IncludeThing>SovietAntiInfantryVehicle</IncludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
			<!-- this nugget handles every thing else, exluding SovietAntiInfantryVehicle so we don't damage friendly sickles -->
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="80.0"
				DamageTaperOff="40"
				Radius="50.0"
				DamageType="MELEE"
				DeathType="CRUSHED">
				<SpecialObjectFilter
					Rule="ALL"
					Relationship="ENEMIES"
					StatusBitFlagsExclude="NO_COLLISIONS">
					<ExcludeThing>SovietAntiInfantryVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
			<!-- The Meta Impact should be selective -->
			<MetaImpactNugget
				ShockWaveAmount="50"
				ShockWaveRadius="50.0"
				ShockWaveTaperOff="1.0"
				ForbiddenTargetModelCondition="STUNNED STUNNED_STANDING_UP STUNNED_FLAILING">
				<SpecialObjectFilter
					Rule="ANY"
					Relationship="ENEMIES"
					Include="INFANTRY"
					StatusBitFlagsExclude="NO_COLLISIONS">
				</SpecialObjectFilter>
			</MetaImpactNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiInfantryInfantryAK47"		
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		FireSoundPerClip="SOV_Conscript_GunFireMS"
		FireFX="FX_MuzzleSoviet"
		FireVeteranFX="FX_MuzzleSoviet"
		RadiusDamageAffects="ENEMIES"
		ClipSize="3"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="false"
		ReAcquireDetailType="PER_CLIP"	
		>
		<PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.3s" />
		<ClipReloadTime
			MinSeconds="0.3s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="5.0"
				DelayTimeSeconds="0.0s"
				DamageType="GUN"
        DamageFXType="SOVIET_AK47"
				DeathType="NORMAL" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietAntiVehicleInfantryMagneticBomb"
		AttackRange="20.0"
		WeaponSpeed="200"
		MinWeaponSpeed="181"
		MaxWeaponSpeed="200"
		AcceptableAimDelta="20d"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		>
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="SovietAntiVehicleInfantryMagneticBombProjectile"
				WarheadTemplate="SovietAntiVehicleInfantryMagneticBombWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiVehicleInfantryMagneticBombProjectile_Veteran"/>
			</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
		<ScatterRadiusVsType
			Radius="25.0">
			<Filter
				Rule="NONE"
				Include="INFANTRY" />
		</ScatterRadiusVsType>
		
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleInfantryMagneticBombWarhead"
		ProjectileCollidesWith="ENEMIES"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE" >
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_SovietMagneticBomb">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE STRUCTURE"
					Exclude="INFANTRY"
					Relationship="ENEMIES NEUTRAL">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</WeaponOCLNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleInfantryMagneticBombAttachWeapon"
		AttackRange="10.0"
		ChaseWeapon="true"
		WeaponSpeed="999999.0"
    FireFX="FX_Soviet_MagneticMineBeep"
    FireVeteranFX="FX_Soviet_MagneticMineBeep"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		AcceptableAimDelta="10d"
    Flags="NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE">
      <Nuggets>
           <AttachNugget
							AttachModuleId="ModuleTag_AttachUpdate"
							ForbiddenTargetObjectStatus="AIRBORNE_TARGET VEHICLE_ATTACHED SPECIAL_ARMOR_ACTIVE"
							Radius="10">
       <SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE STRUCTURE"
					Exclude="INFANTRY"
					Relationship="ENEMIES NEUTRAL">
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </AttachNugget>
        </Nuggets>
    </WeaponTemplate>


    <WeaponTemplate
			id="SovietAntiVehicleInfantryMagneticBombExplosion"
			ProjectileCollidesWith="ENEMIES"
      FireFX="FX_Soviet_MagneticMine"
      FireVeteranFX="FX_Soviet_MagneticMine"
			RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE">
		<Nuggets>
			<DamageNugget
				Damage="200.0"
				DamageType="CANNON"
				DamageTaperOff="10.0"
				Radius="10"
				DeathType="BURNED"
				PartitionFilterTestType="CIRCLE">
				<SpecialObjectFilter
				   Rule="ANY"
				   Include="VEHICLE STRUCTURE"
				   Exclude="INFANTRY"
				   StatusBitFlagsExclude="NOT_IN_WORLD AIRBORNE_TARGET SUBMERGED">
				</SpecialObjectFilter>
			<!--AttachNugget
				AttachModuleId="ModuleTag_AttachUpdate">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					Exclude="INFANTRY AIRCRAFT" />
			</AttachNugget-->
				<DamageScalarDetails Scalar= "75%">
					<Filter
						Rule="NONE"
						Include="STRUCTURE" />
				</DamageScalarDetails>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<!-- starts the approach -->
	<WeaponTemplate
		id="JapanNavalScoutShipKamikazeMeleeAttack"
		AttackRange="300.0"
		WeaponSpeed="150" 
		ProjectileSelf="true"
		PreAttackType="PER_SHOT"
		ClipSize="1"
		AcceptableAimDelta="180d" 
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
		ForbiddenAntiMask="ANTI_GROUND" 
		ContactWeapon="true"
		>
		<Nuggets>
			<ProjectileNugget				
				WarheadTemplate="JapanNavalScoutShipKamikazeCollisionWeapon"/>
		</Nuggets>
	</WeaponTemplate>

	<!-- used purely to detect collision and trigger death -->
	<WeaponTemplate
		id="JapanNavalScoutShipKamikazeCollisionWeapon"
		ProjectileCollidesWith="ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
		RequiredAntiMask="ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
		ForbiddenAntiMask="ANTI_GROUND"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
		</Nuggets>
	</WeaponTemplate>

	<!-- happens on collision -->
	<WeaponTemplate
		id="JapanNavalScoutShipKamikazeAttackWarhead"
		FireFX="FX_JAP_YariSubKamikazeExplosion"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
		RequiredAntiMask="ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
		ForbiddenAntiMask="ANTI_GROUND"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Radius="0"
				OnlyKillOwnerWhenTriggered="true"
				DamageType="UNRESISTABLE"
				DamageFXType="JAPAN_KAMIKAZE"
				DeathType="SUICIDED" />
			<!-- -->
			<DamageNugget
				Damage="500.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_KAMIKAZE"
				Radius="25"
				DeathType="BURNED">
				<ForbiddenUpgrade>Upgrade_JapanEnhancedKamikaze</ForbiddenUpgrade>
				
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>	
				
			</DamageNugget>

			<!-- Enhanced Kamikaze Special power weapon -->
			<DamageNugget
				Damage="650.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_KAMIKAZE"
				Radius="50"
				DeathType="BURNED">
				<RequiredUpgrade>Upgrade_JapanEnhancedKamikaze</RequiredUpgrade>
				
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>			
			</DamageNugget>

		</Nuggets>
	</WeaponTemplate>

	<!--Make sure this weapons attack range matches the JapanNavalScoutShipMiniTorpedoLauncher range.
	    This weapon is used to just get the unit in range before it surfaces to fire it's actual weapon.-->
	<WeaponTemplate
		id="JapanNavalScoutShipDummyWeapon"
		AttackRange="150.0"
		WeaponSpeed="250"		
		CanFireWhileMoving="true"
		ClipSize="2"
		AcceptableAimDelta="20d"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_GROUND">
		<PreAttackDelay
			MinSeconds="5.0s"
			MaxSeconds="5.0s" />
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
		<Nuggets>
			<DamageNugget
				id="JapanNavalScoutShipDummyWeaponDamageNugget"
				Damage="1.0"
				Radius="15.0"
				DamageType="CONCUSSIVE"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- This weapon is used to attack bridges only -->
	<WeaponTemplate
		id="JapanNavalScoutShipDummyWeaponForBridges"
		inheritFrom="JapanNavalScoutShipDummyWeapon"
		RequiredAntiMask="ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_SUBMERGED">
		<Nuggets>
			<DamageNugget
				id="JapanNavalScoutShipDummyWeaponDamageNugget">
				<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />
			</DamageNugget>
		</Nuggets>	
	</WeaponTemplate>	

	<WeaponTemplate
		id="JapanNavalScoutShipMiniTorpedoLauncher"
		AttackRange="150.0"
		WeaponSpeed="250"
		FireFX="FX_Japan_YariTorpedoFire"
		FireVeteranFX="FX_Japan_YariTorpedoFire"
		FireSound="JAP_YariSub_TorpedoFire"
		CanFireWhileMoving="true"
		ClipSize="1"
        Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		AcceptableAimDelta="20d"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_GROUND">		
		<FiringDuration
			MinSeconds="0.12s"
			MaxSeconds="0.12s" />
		<ClipReloadTime
			MinSeconds="0.8s"
			MaxSeconds="1.2s" />
		<Nuggets>
			<ProjectileNugget
				id="JapanNavalScoutShipMiniTorpedoLauncherProjectileNugget"
				ProjectileTemplate="JapanScoutShipMiniTorpedoProjectile"
				WarheadTemplate="JapanNavalScoutShipMiniTorpedoWarhead">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="JapanScoutShipMiniTorpedoProjectile_Veteran"/>
      </ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- This weapon is used to attack bridges only -->
	<WeaponTemplate
		id="JapanNavalScoutShipMiniTorpedoLauncherForBridges"
		inheritFrom="JapanNavalScoutShipMiniTorpedoLauncher"
		RequiredAntiMask="ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_SUBMERGED">		
		<Nuggets>
			<ProjectileNugget
				id="JapanNavalScoutShipMiniTorpedoLauncherProjectileNugget">
          		<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />
      		</ProjectileNugget>
		</Nuggets>
	</WeaponTemplate>
	

	<WeaponTemplate
		id="JapanNavalScoutShipMiniTorpedoWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
 		>
		<Nuggets>
			<DamageNugget
				Damage="50.0"
				Radius="15.0"
				DamageType="CONCUSSIVE"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietAntiInfantryInfantryMolotovCocktail"
		AttackRange="200.0"
		MinimumAttackRange="60"
		WeaponSpeed="150"
		MinWeaponSpeed="130"
		MaxWeaponSpeed="150"
		AcceptableAimDelta="20d"
		PreAttackType="PER_SHOT"
		ClipSize="1"
		FireSound="SOV_Conscript_MolotovCocktailThrow"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		RadiusDamageAffects="ENEMIES"
		>
        <PreAttackDelay
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
        <FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.2s" />
        <WeaponAiHintInfo
			IsAntiGarrisonWeapon="true"
			MaxSpeedOfTarget="30" />
        <Nuggets>
            <ProjectileNugget
				ProjectileTemplate="SovietAntiInfantryInfantryMolotovCocktailProjectile"
				WarheadTemplate="SovietAntiInfantryInfantryMolotovCocktailWarhead">
                <VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiInfantryInfantryMolotovCocktailProjectile_Veteran"/>
            </ProjectileNugget>
            <SuppressionNugget
				Radius="10.0"
				Suppression="1"
				DurationSeconds="7.5s" />
            <InformTargetNugget />
        </Nuggets>
        <ScatterRadiusVsType
               Radius="10.0">
            <Filter
				Rule="NONE"
				Include="INFANTRY" />
        </ScatterRadiusVsType>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiInfantryInfantryMolotovCocktailWarhead"
		ProjectileCollidesWith="ENEMIES"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		HitStoredTarget="true"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE" >
		<Nuggets>
			<DamageContainedNugget
				MaxUnitsToDamage="1"
				WindowBlastFX="FX_None"
				Damage="50"
				DamageType="EXPLOSIVE"
				DeathType="BURNED">
				<DamageObjectFilter
					Rule="NONE"
					Include="INFANTRY" />
			</DamageContainedNugget>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="15.0"
				Radius="15.0"
				DamageTaperOff="5"
				DamageType="EXPLOSIVE"
				DamageFXType="SOVIET_MOLOTOV"
				DeathType="BURNED" />
		</Nuggets>
		<HitStoredObjectFilter
			Rule="ANY"
			Include="STRUCTURE" />
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietAntiAirShipFlakCannon"
		FireSound="SOV_BullFrog_FlakCanonFire"
		FireFX="FX_SovBatteryFire"
		FireVeteranFX="FX_SovBatteryFire_Vet"
		AttackRange="300.0"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_PARACHUTE"
		CanFireWhileMoving="true"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.20s"
			MaxSeconds="0.20s" />
		<Nuggets>
			<DamageNugget
				Damage="15.0"
				Radius="15.0"
				DamageTaperOff="0"
				DamageType="FLAK"
				DamageFXType="SOVIET_FLAK"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>

	<!-- Generates a bomb per shot -->
	<WeaponTemplate
		id="JapanBalloonBombDropWeapon"
		ClipSize="1"
		AutoReloadsClip="NONE"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		AttackRange="10000"
		FireFX="FX_JAP_BalloonBomb_Drop"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_JapanBalloonBomb" />
		</Nuggets>
	</WeaponTemplate>

	<!-- fired when a balloon is killed in air. -->
	<WeaponTemplate
		id="JapanBalloonFallingBombWeapon"
		AttackRange="750.0"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		CanFireWhileMoving="true"
		ClipSize="1"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		AcceptableAimDelta="180d">
        <FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
        <ClipReloadTime
			MinSeconds="10.0s"
			MaxSeconds="10.0s" />
        <Nuggets>
            <ProjectileNugget
				ProjectileTemplate="JapanFallingBalloonBomb"
				WarheadTemplate="JapanFallingBalloonBombWarhead" >
            </ProjectileNugget>
            <InformTargetNugget />
        </Nuggets>
    </WeaponTemplate>

    <!-- this is the weapon that's triggered when a balloon succesfully makes it's way to the ground. -->
    <WeaponTemplate
		id="JapanBalloonBombWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"				
				Damage="150.0"
				DamageTaperOff="0"
				Radius="50.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_BOMB"
				DeathType="NORMAL"
				PartitionFilterTestType="SPHERE"
				RadiusAffectsBridges="true">
			<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	<!-- this is the weapon that's triggered when a balloon is shot out of the sky, and hits the ground. -->
	<WeaponTemplate
		id="JapanFallingBalloonBombWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
        <Nuggets>
            <DamageNugget
				Damage="150.0"
				DamageTaperOff="0"
				Radius="50.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_BOMB"
				DeathType="NORMAL"
				PartitionFilterTestType="CIRCLE"
				RadiusAffectsBridges="true">
			<DamageScalarDetails Scalar= "25%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietBaseDefenseAdvancedTeslaGun"
		FireSoundPerClip="SOV_TeslaCoil_WeaponFire"
		FireFX="FX_TeslaBoatFire"
    FireVeteranFX="FX_TeslaBoatFire"
		AcceptableAimDelta="360d"
		AttackRange="350.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED"
		CanFireWhileMoving="false"
		ClipSize="1"
		Flags="NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		ShotsPerBarrel="1">
		<!-- PreAttackDelay needed for NotifyWhenAttackingBehavior (hackish) -->
		<PreAttackDelay
			MinSeconds="2.5s"
			MaxSeconds="2.5s" />
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<DamageNugget
				Damage="450.0"
				DamageType="TESLA"
				DamageFXType="SOVIET_TESLA"
				DeathType="ELECTROCUTED"
				DelayTimeSeconds="0.1s"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiNavyShipTech1TeslaLinkGun"
		FireFX="FX_TeslaTrooperFire"
    FireVeteranFX="FX_TeslaTrooperFire"
		AttackRange="50.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="false"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		RadiusDamageAffects="ALLIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		AutoReloadsClip="AUTO"
		ShotsPerBarrel="1">
		<!-- PreAttackDelay needed for NotifyWhenAttackingBehavior (hackish) -->
		<PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<!-- Hack: make sure firing duration matches AttributeModifier duration or else there will be lingering attribute modding on target -->
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<AttributeModifierNugget
				DamageFXType="SOVIET_TESLA"
				AttributeModifierName="AttributeMod_AlliedTeslaBoost">
				<SpecialObjectFilter
					Rule="NONE"
					Relationship="ALLIES">
					<IncludeThing>SovietBaseDefenseAdvanced</IncludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietHeavyAntiVehicleInfantryTeslaLinkGun"
		FireFX="FX_TeslaTrooperFire"
    FireVeteranFX="FX_TeslaTrooperFire"
		AttackRange="50.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="false"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		RadiusDamageAffects="ALLIES" 
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		ShotsPerBarrel="1">
		<!-- PreAttackDelay needed for NotifyWhenAttackingBehavior (hackish) -->
		<PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<!-- Hack: make sure firing duration matches AttributeModifier duration or else there will be lingering attribute modding on target -->
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<AttributeModifierNugget
				DamageFXType="SOVIET_TESLA"
				AttributeModifierName="AttributeMod_AlliedTeslaBoost">
				<SpecialObjectFilter
					Rule="NONE"
					Relationship="ALLIES">
					<IncludeThing>SovietBaseDefenseAdvanced</IncludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietBaseDefenseAdvancedTeslaLinkGun"
		FireFX="FX_TeslaTrooperFire"
    FireVeteranFX="FX_TeslaTrooperFire"
		AttackRange="200.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="false"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		RadiusDamageAffects="ALLIES"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		AcceptableAimDelta="180d"
		ShotsPerBarrel="1">
		<!-- PreAttackDelay needed for NotifyWhenAttackingBehavior (hackish) -->
		<PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<!-- Hack: make sure firing duration matches AttributeModifier duration or else there will be lingering attribute modding on target -->
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<AttributeModifierNugget
				DamageFXType="SOVIET_TESLA"
				AttributeModifierName="AttributeMod_AlliedTeslaBoost">
				<SpecialObjectFilter
					Rule="NONE"
					Relationship="ALLIES">
					<IncludeThing>SovietBaseDefenseAdvanced</IncludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech2TeslaGun"
		FireSoundPerClip="SOV_TeslaTank_WeaponFire"
		FireFX="FX_TeslaTrooperFire"
    FireVeteranFX="FX_TeslaTrooperFire"
		AttackRange="150.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ClipSize="2"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		AcceptableAimDelta="20d"
		ShotsPerBarrel="1">
		<!-- set to zero when the FX is fixed -->
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
		<Nuggets>
			<!-- note that this weapon fires TWICE per attack, so the damage should be half one attack's worth -->
			<DamageNugget
				Damage="100.0"
				DamageType="TESLA"
				DamageFXType="SOVIET_TESLA"
				DeathType="ELECTROCUTED"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech2TeslaLinkGun"
		FireFX="FX_TeslaTrooperFire"
    FireVeteranFX="FX_TeslaTrooperFire"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ClipSize="1"
		RadiusDamageAffects="ALLIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		AcceptableAimDelta="20d"
		ShotsPerBarrel="1">
		<!-- PreAttackDelay needed for NotifyWhenAttackingBehavior (hackish) -->
		<PreAttackDelay
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<!-- Hack: make sure firing duration matches AttributeModifier duration or else there will be lingering attribute modding on target -->
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<AttributeModifierNugget
				DamageFXType="SOVIET_TESLA"
				AttributeModifierName="AttributeMod_AlliedTeslaBoost">
				<SpecialObjectFilter
					Rule="NONE"
					Relationship="ALLIES">
					<IncludeThing>SovietBaseDefenseAdvanced</IncludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>
		</Nuggets>
	</WeaponTemplate>
	

	<WeaponTemplate
		id="SovietAntiNavyShipTech1TeslaGun"
		FireSoundPerClip="SOV_Stingray_WeaponFire"
		FireFX="FX_TeslaBoatFire"
    FireVeteranFX="FX_TeslaBoatFire_Vet"
		AttackRange="125.0"
		WeaponSpeed="999999.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ClipSize="2"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		PreAttackType="PER_CLIP"
		ShotsPerBarrel="1"
		FinishAttackOnceStarted="true">
		<!-- PreAttackDelay for FX -->
		<PreAttackDelay
			MinSeconds="0.5s"
			MaxSeconds="0.7s" />
		<!-- removed firing duration so 1 stingray can't kill 2 infantry per attack, if there was a better way to do this, please let me know. -GB -->
		<ClipReloadTime
			MinSeconds="1.25s"
			MaxSeconds="1.30s" />
		<Nuggets>
			<!-- note that this weapon fires TWICE per attack, so the damage should be half one attack's worth -->
			<DamageNugget
				Damage="40.0"
				DamageType="TESLA"
				DamageFXType="SOVIET_TESLA"
				DeathType="ELECTROCUTED">
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiNavyShipTech1TeslaNova"
		CanFireWhileMoving="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		
	<!-- The Lifetime determines the speed at which the nova expands -->	
		
		<FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
		<Nuggets>
			<ActivateCircularDamageNugget
				Lifetime="1.0s" />
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiNavyShipTech1TeslaNovaImpact"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
		<Nuggets>
      <DamageNugget
				Damage="200.0"
				DamageType="TESLA"
				DamageFXType="SOVIET_TESLA"
				DamageMaxHeight="50.0"
				DeathType="ELECTROCUTED">
        <SpecialObjectFilter
					Rule="ALL"
					Exclude="STRUCTURE">
        </SpecialObjectFilter>
      </DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietBomberAircraftBombWeapon"
		AttackRange="5.0"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		ClipSize="1"
		ScatterRadius="20"
		FireSound="SOV_Kirov_BombDrop"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		UseCenterForRangeCheck="true">
		<FiringDuration
			MinSeconds=".1s"
			MaxSeconds=".1s" />
		<ClipReloadTime
			MinSeconds="0.8s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="SovietBomberAircraftBombProjectile"
				WarheadTemplate="SovietBomberAircraftBombWarhead">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="SovietBomberAircraftBombProjectile_Veteran"/>
      </ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietBomberAircraftBombWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="400.0"
				Radius="50.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" > 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			 <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
			   ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="BomberAircraftDeathWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="300.0"
				Radius="50.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" > 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			 <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
			   ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>
	
		<WeaponTemplate
		id="NormalAircraftDeathWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="150.0"
				Radius="20.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" > 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			 <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
			   ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>
	
	
	<WeaponTemplate
		id="SovietBomberAircraftDeathWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="500.0"
				Radius="50.0"
				DamageTaperOff="200"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" > 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			 <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
			   ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanAntiInfantryVehicleAirborneDeathWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
        <Nuggets>
            <DamageNugget
				Damage="100.0"
				Radius="20.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" >
                <DamageScalarDetails Scalar= "50%">
                    <Filter
						Rule="ALL"
						Relationship="ALLIES" />
                </DamageScalarDetails>
            </DamageNugget>
            <MetaImpactNugget
               ShockWaveAmount="50.0"
               ShockWaveRadius="20.0"
               ShockWaveTaperOff="1.0"/>
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="JapanLightTransportVehicleDeathWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="250.0"
				Radius="20.0"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DeathType="NORMAL" > 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			 <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="20.0"
			   ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>
		
	<WeaponTemplate
		id="AlliedScoutInfantryBark"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="false">
        <FiringDuration
			MinSeconds="2s"
			MaxSeconds="2s" />
        <Nuggets>
            <!-- Normal weapon -->
            <ParalyzeNugget
			   id="DefaultParalyzeNugget"
			   Radius="100.0"
			   DurationSeconds="10s"
			   ParalyzeType="EMP"
			   ParalyzeFX="FX_DogStun"
			   ForbiddenTargetModelCondition="LANDING TAKING_OFF">
                <SpecialObjectFilter
					Rule="NONE"
					Include="INFANTRY"
					Relationship="ENEMIES"
					StatusBitFlagsExclude="IMMUNE_TO_BARK">
                    <ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                    <ExcludeThing>AlliedCommandoTech1</ExcludeThing>
                    <ExcludeThing>SovietCommandoTech1</ExcludeThing>
                    <ExcludeThing>JapanCommandoTech1</ExcludeThing>
                </SpecialObjectFilter>
                <ForbiddenUpgrade>Upgrade_AlliedHighTechnology</ForbiddenUpgrade>
            </ParalyzeNugget>

            <!-- High Technology Special power weapon -->
            <ParalyzeNugget
			   Radius="100.0"
			   DurationSeconds="15s"
			   ParalyzeType="EMP"
			   ParalyzeFX="FX_DogStun"
			   ForbiddenTargetModelCondition="LANDING TAKING_OFF">
                <SpecialObjectFilter
					Rule="NONE"
					Include="INFANTRY"
					Relationship="ENEMIES"
					StatusBitFlagsExclude="IMMUNE_TO_BARK">
                    <ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                    <ExcludeThing>AlliedCommandoTech1</ExcludeThing>
                    <ExcludeThing>SovietCommandoTech1</ExcludeThing>
                    <ExcludeThing>JapanCommandoTech1</ExcludeThing>
                </SpecialObjectFilter>
                <RequiredUpgrade>Upgrade_AlliedHighTechnology</RequiredUpgrade>
            </ParalyzeNugget>

        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietScoutInfantryRoar"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		CanFireWhileMoving="false">
		<FiringDuration
			MinSeconds="2s"
			MaxSeconds="2s" />
		<Nuggets>
			<ParalyzeNugget
			   id="DefaultParalyzeNugget"
			   Radius="100.0"
			   DurationSeconds="10s"
			   ParalyzeType="EMP"
			   ParalyzeFX="FX_DogStun"
			   ForbiddenTargetModelCondition="LANDING TAKING_OFF">
				<SpecialObjectFilter
					Rule="NONE"
					Include="INFANTRY"
					Relationship="ENEMIES"
					StatusBitFlagsExclude="IMMUNE_TO_BARK">
					<ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>		
					<ExcludeThing>AlliedCommandoTech1</ExcludeThing>		
					<ExcludeThing>SovietCommandoTech1</ExcludeThing>		
					<ExcludeThing>JapanCommandoTech1</ExcludeThing>					
				</SpecialObjectFilter>
			</ParalyzeNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiNavyShipTech2Torpedo"
		AttackRange="150.0"
		WeaponSpeed="250"
		CanFireWhileMoving="true"
		ClipSize="2"
		FireSound="SOV_AkulaSub_WeaponFire_TorpedoMS"
        Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		AcceptableAimDelta="5d"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_GROUND"
		FinishAttackOnceStarted="true">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="3s"
			MaxSeconds="3s" />
		<Nuggets>
			<ProjectileNugget
				id="SovietAntiNavyShipTech2TorpedoProjectileNugget"
				ProjectileTemplate="SovietAntiNavyShipTech2TorpedoProjectile"
				WarheadTemplate="SovietAntiNavyShipTech2TorpedoWarhead">
        		<VeterancyProjectiles
          			VeterancyLevel="HEROIC"
           			ProjectileTemplate="SovietAntiNavyShipTech2TorpedoProjectile_Veteran"/>
      		</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- This weapon should only affect bridges -->
	<WeaponTemplate
		id="SovietAntiNavyShipTech2TorpedoForBridges"
		inheritFrom="SovietAntiNavyShipTech2Torpedo"
		RequiredAntiMask="ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_SUBMERGED">
		<Nuggets>
			<ProjectileNugget
				id="SovietAntiNavyShipTech2TorpedoProjectileNugget">
            	<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />	
      		</ProjectileNugget>
		</Nuggets>
	</WeaponTemplate>	

	<WeaponTemplate
		id="SovietAntiNavyShipTech2DummyWeapon"
		AttackRange="150.0"
		WeaponSpeed="250"
		FireFX=""
		CanFireWhileMoving="true"
		ClipSize="2"
		AcceptableAimDelta="5d"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_GROUND"
		FinishAttackOnceStarted="true">
        <FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
        <ClipReloadTime
			MinSeconds="3s"
			MaxSeconds="3s" />
        <Nuggets>
            <DamageNugget
            	id="SovietAntiNavyShipTech2DummyWeaponDamageNugget"
				Damage="1.0"
				Radius="15.0"
				DamageType="CONCUSSIVE"
				DeathType="EXPLODED" />
        </Nuggets>
    </WeaponTemplate>
    
	<!-- This weapon should only affect bridges -->    
	<WeaponTemplate
		id="SovietAntiNavyShipTech2DummyWeaponForBridges"
		inheritFrom="SovietAntiNavyShipTech2DummyWeapon"
		RequiredAntiMask="ANTI_STRUCTURE"
		ForbiddenAntiMask="ANTI_SUBMERGED">
        <Nuggets>
            <DamageNugget
				id="SovietAntiNavyShipTech2DummyWeaponDamageNugget">
				<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />	
			</DamageNugget>
        </Nuggets>
    </WeaponTemplate>    

    <WeaponTemplate
		id="SovietAntiNavyShipTech2TorpedoWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE"
 		>
		<Nuggets>
			<DamageNugget
				Damage="140.0"
				Radius="15.0"
				DamageType="CONCUSSIVE"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiNavyShipTech2SuperTorpedos"
		WeaponSpeed="150.0"
		AttackRange="100000.0"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		FireFX="FX_SovietTorpedoFire"
		ClipSize="2"
		FireSound="SOV_AkulaSub_WeaponFire_UltraTorpedoMS"
		FireVeteranFX="FX_SovietTorpedoFire"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS" >
		<FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="SovietAntiNavyShipTech2SuperTorpedoProjectile"
				WarheadTemplate="SovietAntiNavyShipTech2TorpedoWarhead">
				<AttackOffset x="5000.0" y="150.0"/>
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiNavyShipTech2SuperTorpedoProjectile"/>
				<SpecificBarrelOverride>0</SpecificBarrelOverride>
			</ProjectileNugget>
			<ProjectileNugget
				ProjectileTemplate="SovietAntiNavyShipTech2SuperTorpedoProjectile"
				WarheadTemplate="SovietAntiNavyShipTech2TorpedoWarhead">
				<AttackOffset x="5000.0" y="-150.0"/>
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiNavyShipTech2SuperTorpedoProjectile"/>
				<SpecificBarrelOverride>1</SpecificBarrelOverride>
			</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiNavyShipTech2SuperTorpedoWarhead"
		AttackRange="100000.0"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget" 
				Damage="300.0"
				Radius="20.0"
				DamageTaperOff="100"
				DamageType="CONCUSSIVE"
				DamageFXType="SOVIET_TORPEDO"
				DeathType="EXPLODED"/>
		</Nuggets>
	</WeaponTemplate>

	<!--
	<WeaponTemplate
		id="SovietScoutVehicleAntiInfantryWeapon"
		AttackRange="25.0"
		ChaseWeapon="true"
		WeaponSpeed="999999.0"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		FireFX="FX_TerrorEatInside"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				Damage="1000000.0"
				Radius="0.0"
				DelayTimeSeconds="0.4s"
				DamageType="MELEE"
				DeathType="NORMAL">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY"
					Exclude="VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET"/>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	   -->

	<WeaponTemplate
		id="SovietScoutVehicleAntiInfantryWeapon"
		AttackRange="50.0"
		ChaseWeapon="true"
		WeaponSpeed="125.0"
		ReAcquireDetailType="PRE_FIRE"
		ProjectileSelf="true"
		ClipSize="1"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="true"
		HoldDuringReload="true"
		VirtualDamage="SHARE"
		InstantLoadClipOnActivate="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND"
		MeleeWeapon="true">
        <!-- this is the amount of time the terror drone should spend in the air -->
        <FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <!-- this should match the time the terror drone spends attacking -->
        <ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <Nuggets>
            <!-- remove any effects that might prevent the hit reaction from making the victim face us -->
            <ParalyzeNugget
				RemoveParalyzeType="EMP">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY"
					Exclude="VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET IN_SPIDER_HOLE">
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </ParalyzeNugget>
            <DamageNugget
				Damage="20000.0"
				Radius="0.0"
                DelayTimeSeconds="0.5s"
				DamageType="SNIPER"
				DeathType="BITTEN">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY"
					Exclude="VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET IN_SPIDER_HOLE">
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </DamageNugget>
            <AttributeModifierNugget
				AttributeModifierName="SovietScoutVehicleAntiInfantryAttributeModifier"
				AttributeModifierOwnerName="SovietScoutVehicleAntiInfantryOwnerAttributeModifier">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY"
					Exclude="VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET IN_SPIDER_HOLE">
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </AttributeModifierNugget>
            <ProjectileNugget
				WarheadTemplate="SovietScoutVehicleAntiInfantryWarhead">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY"
					Exclude="VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET IN_SPIDER_HOLE">
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </ProjectileNugget>
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietScoutVehicleAntiInfantryWarhead"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		HitStoredTarget="true">
		<Nuggets>
			<AttributeModifierNugget
				AttributeModifierName="SovietScoutVehicleAntiInfantryLandedAttributeModifier" />
			<DamageNugget
				Damage="1.0"
				Radius="0.0"
				DelayTimeSeconds="0.5s"
				DamageType="MELEE"
				DeathType="BITTEN">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY"
					Exclude="VEHICLE"
					StatusBitFlagsExclude="AIRBORNE_TARGET IN_SPIDER_HOLE">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietScoutVehicleMeleeWeapon"
		AttackRange="25.0"
		ChaseWeapon="true"
		WeaponSpeed="999999.0"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		FiringLoopSound="SOV_TerrorDrone_Dismantle"
		AcceptableAimDelta="180d"
		CanFireWhileMoving="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		VirtualDamage="SHARE"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_SUBMERGED ANTI_AIRBORNE_VEHICLE"
		FinishAttackOnceStarted="true"
		MeleeWeapon="true">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				ForbiddenTargetObjectStatus="NOT_IN_WORLD"
				Damage="50.0"
				Radius="0.0"
				DelayTimeSeconds="0.4s"
				DamageType="EXPLOSIVE"
				DeathType="INTERNAL_DESTRUCTION">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					Exclude="INFANTRY"
					StatusBitFlags="VEHICLE_ATTACHED">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
				<DamageScalarDetails Scalar= "60%">
					<Filter
					Rule="ANY"
					Include="EGG">						
					</Filter>		
					</DamageScalarDetails>	
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietScoutVehicleMeleeAttachWeapon"
		AttackRange="25.0"
		ChaseWeapon="true"
		WeaponSpeed="999999.0"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		VirtualDamage="SHARE"
		FireFX="FX_TerrorGoInside"
    FireVeteranFX="FX_TerrorGoInside"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_VEHICLE"
		ForbiddenAntiMask="ANTI_AIRBORNE_VEHICLE"
		MeleeWeapon="true">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
			<AttachNugget
				AttachModuleId="ModuleTag_AttachUpdate"
				ForbiddenTargetObjectStatus="AIRBORNE_TARGET VEHICLE_ATTACHED UNDERGOING_REPAIR SPECIAL_ARMOR_ACTIVE UNDER_IRON_CURTAIN NOT_IN_WORLD">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					Exclude="INFANTRY"
					Relationship="ENEMIES NEUTRAL">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</AttachNugget>
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="SovietScoutVehicleParalyzeWeapon"
		AttackRange="300"
		WeaponSpeed="999999.0"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		FireFX="FX_SOV_TerrorDrone_WeaponFire"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS" >
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="0.3s"
				LaserId="0">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					Exclude="INFANTRY"
					StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
					<IncludeThing>SovietHeavyAntiVehicleInfantry</IncludeThing>
				</SpecialObjectFilter>
			</ActivateLaserNugget>
			<!-- both a paralyze nugget and an attribute modifier that sets the speed to zero should be used
				 to provide sufficient coverage for stopping everything while still letting them attack
			-->
			<ParalyzeNugget
				Radius="0.0"
				DurationSeconds="0.3s"
				ParalyzeType="HELD" >
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					Exclude="INFANTRY"
					StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
					<IncludeThing>SovietHeavyAntiVehicleInfantry</IncludeThing>
				</SpecialObjectFilter>
			</ParalyzeNugget>
			<AttributeModifierNugget
				AttributeModifierName="AttributeMod_SovietScoutParalyzeWeapon">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					Exclude="INFANTRY"
					StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
					<IncludeThing>SovietHeavyAntiVehicleInfantry</IncludeThing>
				</SpecialObjectFilter>
			</AttributeModifierNugget>
    </Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietBaseDefenseGroundSentryGun"
		AttackRange="300.0"
		WeaponSpeed="999999.0"
		FiringLoopSound="SOV_SentryGun_WeaponFireLoop"
		FiringLoopSoundContinuesDuringReload="false"
		FireFX="FX_MuzzleSovietSentryGun"
		RadiusDamageAffects="ENEMIES"
		ClipSize="5"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"		
		CanFireWhileMoving="true"
		ReAcquireDetailType="PER_CLIP"
		>
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>
			<DamageNugget
				Damage="40.0"
				DelayTimeSeconds="0.0s"
				DamageType="AUTO_CANNON"
				DamageFXType="SOVIET_AK47"
				DeathType="NORMAL">
				<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="NONE"
						Include="INFANTRY" />
				</DamageScalarDetails>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietBaseDefenseAirFlakCannon"
		AttackRange="300.0"
		WeaponSpeed="1000.0"
		FireSound="SOV_FlakCannon_FlakCannonFire"
		FireFX="FX_SovBatteryFire"
    FireVeteranFX="FX_SovBatteryFire"
		RadiusDamageAffects="ENEMIES"
		ClipSize="5"
		ReAcquireDetailType="PER_CLIP"
		AutoReloadsClip="AUTO"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		CanFireWhileMoving="true">
		<FiringDuration
			MinSeconds=".2s"
			MaxSeconds=".2s" />
		<ClipReloadTime
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>
				<DamageNugget
					Damage="25.0"
					Radius="20.0"
					DamageTaperOff="0"
					DelayTimeSeconds="0.0s"
					DamageType="FLAK"
					DamageFXType="SOVIET_FLAK"
					DeathType="EXPLODED" />
			</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedInfiltrationInfantryDisguiser"
		
		RadiusDamageAffects="ENEMIES NOT_SIMILAR"
		AttackRange="999999.0" 
		WeaponSpeed="999999.0"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
		Flags="NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="false"
		InstantLoadClipOnActivate="true"
		ContactWeapon="false"
		AcceptableAimDelta="180d"
		>
        <FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s"
		/>
        <Nuggets>
            <SpecialPowerNugget
				SpecialPowerTemplate="SpecialPower_InfantryDisguise" />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietEngineerPistol"
		AttackRange="100.0"
		WeaponSpeed="2.0"
		RadiusDamageAffects="ENEMIES"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		FireSound="SOV_Engineer_PistolFire"
		FireFX="FX_SovietPistolFire"
		FireVeteranFX="FX_SovietPistolFire_Vet"
		AcceptableAimDelta="10d"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND"
		ForbiddenAntiMask="ANTI_STRUCTURE">
        <!-- Don't enable structures to be fired on unless force fired -->
        <PreAttackDelay
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
        <Nuggets>
            <DamageNugget
				Damage="50.0"
				Radius="0.0"
				DamageType="GUN"
				DamageFXType="SOVIET_AK47"
				DeathType="NORMAL">
            </DamageNugget>
        </Nuggets>
    </WeaponTemplate>

    <!-- These are the weapons for the IFA -->

    <!-- Repair weapon (engineers) -->
    <WeaponTemplate
		id="AAGA_RepairWeapon"
		FireFX="FX_None"
		AttackRange="25"
		RadiusDamageAffects="ALLIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		CanFireWhileMoving="true">
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
            <DamageNugget
				Damage="5.0"
				DelayTimeSeconds="0.0s"
				DamageType="HEALING"
				DamageFXType="SOVIET_REPAIR"
				DeathType="NORMAL">
                <SpecialObjectFilter
					Rule="NONE"
					Include="VEHICLE"
                    StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED NOT_IN_WORLD"/>
            </DamageNugget>
			<AttributeModifierNugget
				AttributeModifierName="AttributeModifier_UnderRepair">
				<SpecialObjectFilter
					Rule="NONE"
					Include="VEHICLE"
                    StatusBitFlagsExclude="AIRBORNE_TARGET SUBMERGED NOT_IN_WORLD"/>
			</AttributeModifierNugget>
				
        </Nuggets>
	</WeaponTemplate>

	<!--====================================================================================-->
	<!-- Soviet Super Weapon IronCurtain -->
	<WeaponTemplate
		id="IronCurtainInfantryDeathWeapon"
		AttackRange="0.0"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"		
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Damage="999999.0"
				Radius="100.0"
				DamageType="SNIPER"
				DamageFXType="SOVIET_IRONCURTAIN"
				DeathType="NORMAL">
				<SpecialObjectFilter					
					Rule="NONE"
					Include="INFANTRY">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="TelekineticExplosion"
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_PARACHUTE ANTI_PROJECTILE ANTI_SMALL_MISSILE ANTI_BALLISTIC_MISSILE ANTI_MINE" 
		AttackRange="10000"
    FireFX="FX_JapanSuperWeaponAdvancedHit"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
			   Damage="2000.0"
			   DamageTaperOff="500.0"
			   Radius="300.0"
			   DamageType="EXPLOSIVE"
			   DeathType="DETONATED"
			   PartitionFilterTestType="CIRCLE"
				 NotifyObserversOnPreDamageEffectPosition="true"
				 RadiusAffectsBridges="true"/>		
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="MagneticSingularityWeapon"		
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"	
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<MetaImpactNugget
				ShockWaveAmount="125.0"
				ShockWaveRadius="100.0"
				ShockWaveZMult="0.00"
				InvertShockWave="true">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="AIRCRAFT INFANTRY"
					StatusBitFlagsExclude="UNDER_IRON_CURTAIN">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
					<IncludeThing>SovietHeavyAntiVehicleInfantry</IncludeThing>
				</SpecialObjectFilter>
			</MetaImpactNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="MagneticSatelliteWeaponLvl1"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="NOT_ATTRACTED_BY_MAGNETS">
		<!-- no worky FireSound="SOV_MagneticSatellite_Ronk" -->
		<Nuggets>

		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
		id="MagneticSatelliteWeaponLvl2"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="NOT_ATTRACTED_BY_MAGNETS">
        <Nuggets>
        </Nuggets>
    </WeaponTemplate>
    <WeaponTemplate
		id="MagneticSatelliteWeaponLvl3"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="TerrorDroneEggsPlayerPowerWeapon"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		WeaponSpeed="100.0">
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_SovietTerrorDroneEggs">
				<RequiredUpgrade>Upgrade_SovietTerrorDroneEggs</RequiredUpgrade>
			</WeaponOCLNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<!-- A crushing weapon for units that are affected by the Soviet Crush Upgrade power -->
	<WeaponTemplate
		id="SovietCrushWeapon"
		RadiusDamageAffects="ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS CRUSH_VEHICLE IGNORE_WALL_RELATIONSHIP">
		<Nuggets>
				<!-- Without the upgrade, still need to destroy the target, but no benefit -->
			<DamageNugget
				Damage="999999.0"
				DamageType="CRUSH"
				DeathType="CRUSHED">
				<ForbiddenUpgrade>Upgrade_SovietCrushPuppiesPower</ForbiddenUpgrade>
			</DamageNugget>

			<!-- Player power grants the attacker a percentage of the victims health -->
			<LeechPercentMaxHealthDamageNugget
				Damage="999999.0"
				DamageType="CRUSH"
				DeathType="CRUSHED"
				PercentMaxHealthToTake="50%">
				<RequiredUpgrade>Upgrade_SovietCrushPuppiesPower</RequiredUpgrade>
			</LeechPercentMaxHealthDamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietHarpoonCrushWeapon"
		FireFX="FX_Sov_TB_Grinder"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
        FireVeteranFX="FX_Sov_TB_Grinder">
		<Nuggets>
			<!-- Prevent this from happening because the Crush Puppies upgrade should be use to leech health -->
			<DamageNugget
				Damage="999999.0"
				DelayTimeSeconds="1s"
				DamageType="CRUSH"
				DeathType="CRUSHED">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE TIME_BOMB" />
				<ForbiddenUpgrade>Upgrade_SovietCrushPuppiesPower</ForbiddenUpgrade>
			</DamageNugget>

			<!-- Player power grants the attacker a percentage of the victims health -->
			<LeechPercentMaxHealthDamageNugget
				DelayTimeSeconds="1s"
				Damage="999999.0"
				DamageType="CRUSH"
				DeathType="CRUSHED"
				PercentMaxHealthToTake="50%">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE TIME_BOMB" />
				<RequiredUpgrade>Upgrade_SovietCrushPuppiesPower</RequiredUpgrade>
			</LeechPercentMaxHealthDamageNugget>

		</Nuggets>
	</WeaponTemplate>
	
	<!-- This weapon does the incremental 'grind' damage when the soviet harpoon has brought the target within range. -->
	<WeaponTemplate
		id="SovietHarpoonGrindWeapon"
		AttackRange="1.0"
		WeaponSpeed="999999.0"
		FireFX="FX_Sov_TB_Grinder"
    FireVeteranFX="FX_Sov_TB_Grinder"
		ClipSize="1"
		Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE"
		AcceptableAimDelta="1d"
		CanFireWhileMoving="false"
		ReAcquireDetailType="PER_ATTACK">
		<FiringDuration
			MinSeconds="0.12s"
			MaxSeconds="0.12s" />
		<ClipReloadTime
			MinSeconds="0.12s"
			MaxSeconds="0.12s" />
		<Nuggets>
			<DamageNugget
				Damage="25.0"
				DelayTimeSeconds="0.0s"
				DamageType="EXPLOSIVE"
				DeathType="CRUSHED"
				PartitionFilterTestType="SPHERE">	
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="ORE_NODE"/>
			</DamageNugget>	
		</Nuggets>
	</WeaponTemplate>	

	<!-- Pistol (spy) -->
	<WeaponTemplate
		id="AAGA_PistolWeapon"
		AttackRange="200.0"
		WeaponSpeed="999999.0"
		RadiusDamageAffects="ENEMIES"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		FireSound="ALL_MultigunnerIFV_PistolFireForSpy"
		FireFX="FX_MuzzleSoviet"
		FireVeteranFX="FX_MuzzleSoviet"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.2s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.2s" />
		<Nuggets>
			<DamageNugget
				Damage="30.0"
				Radius="0.0"
				DamageType="SNIPER"
				DamageFXType="SOVIET_AK47"
				DeathType="NORMAL">
				<DamageScalarDetails Scalar= "1000000%">
					<Filter
						Rule="NONE"
						Include="INFANTRY" />
				</DamageScalarDetails>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<!-- Pistol (Tanya) -->
	<WeaponTemplate
		id="AAGA_CommandoPistolWeapon"
		inheritFrom="AlliedCommandoDesertEagles" 
		ForbiddenFiringObjectStatus=""
		RequiredFiringObjectStatus="CONTAINER_OCCUPIED">
	</WeaponTemplate>

	<!--====================================================================================-->
	<!-- These are the weapons for the IFV -->
	
		<!-- Primary Weapon -->
	<WeaponTemplate
		id="AlliedAntiAirVehicleTech1MissileGroundLauncher"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		WeaponSpeed="200"
		MinWeaponSpeed="300"
		MaxWeaponSpeed="310"
		FireFX="FX_AlliedIFVMissileFire"
		FireVeteranFX="FX_AlliedIFVMissileFire_Vet"
		FireSound="ALL_JavelinSoldier_MissileFire"
		AcceptableAimDelta="20d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="3"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true">
		<FiringDuration
			MinSeconds=".25s"
			MaxSeconds=".25s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedAntiAirMissileProjectile"
				WarheadTemplate="AlliedAntiAirVehicleTech1MissileLauncherGroundWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedAntiAirMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s"/>
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiAirVehicleTech1MissileLauncherGroundWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER" >
		<Nuggets>
			<DamageNugget
				Damage="10.0"
				Radius="5.0"
				DamageTaperOff="0"
				DamageType="ROCKET"
				DamageFXType="ALLIED_SAM"
				DeathType="EXPLODED" />
			<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	

	<!-- Primary Weapon Air -->
	<WeaponTemplate
		id="AlliedAntiAirVehicleTech1MissileLauncher"
		inheritFrom="ScatterableWeapon"
		AttackRange="300.0"
		WeaponSpeed="200"
		MinWeaponSpeed="300"
		MaxWeaponSpeed="310"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		FireSound="ALL_MultiGunnerIFV_RocketFire"
		AcceptableAimDelta="90d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="6"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		CanFireWhileMoving="true">
		<FiringDuration
			MinSeconds=".25s"
			MaxSeconds=".25s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="AlliedAntiAirMissileProjectile"
				WarheadTemplate="AlliedAntiAirVehicleTech1MissileLauncherWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="AlliedAntiAirMissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s"/>
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="AlliedAntiAirVehicleTech1MissileLauncherWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask=" ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY" >
		<Nuggets>
			<DamageNugget
				Damage="25.0"
				Radius="10.0"
				DamageTaperOff="0"
				DamageType="ROCKET"
				DamageFXType="ALLIED_SAM"
				DeathType="EXPLODED" />
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>

<!-- IFV Weapons (AAAVT1) -->

	<!-- Roar weapon (dog, bear) -->
	<WeaponTemplate
		id="AAAVT1_RoarWeapon"
		FireSound="ALL_MultiGunnerIFV_RoarWeaponMS"
		FireFX="FX_AAAVT1_Scout"
		FireVeteranFX="FX_AAAVT1_Scout"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
		AttackRange="150.0"
		WeaponSpeed="9999999.0"
		CanFireWhileMoving="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND">
        <FiringDuration
			MinSeconds="2s"
			MaxSeconds="2s" />
        <Nuggets>
            <ParalyzeNugget
				Radius="5.0"
				DurationSeconds="5s"
				ParalyzeType="EMP" >
                <SpecialObjectFilter
					Rule="ANY"
					Relationship="ENEMIES"
					Include="INFANTRY"
					StatusBitFlagsExclude="IMMUNE_TO_BARK">
					<ExcludeThing>AlliedAntiNavalScout</ExcludeThing>
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
					<ExcludeThing>AlliedCommandoTech1</ExcludeThing>
					<ExcludeThing>SovietCommandoTech1</ExcludeThing>
					<ExcludeThing>JapanCommandoTech1</ExcludeThing>
				</SpecialObjectFilter>
            </ParalyzeNugget>
        </Nuggets>
    </WeaponTemplate>

    <!-- Shotgun weapon (peacekeeper) -->
    <WeaponTemplate
		id="AAAVT1_ShotgunWeapon"
		inheritFrom="AlliedAntiInfantryInfantryShotgun"
		FireFX="FX_Allied_IFV_Shotguns"
		FireVeteranFX="FX_Allied_IFV_Shotguns"
		AttackRange="150.0"
		CanFireWhileMoving="true">
        <FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
        <Nuggets>
            <DamageNugget
            	id="peacekeeperdefaultdamage"
              DamageType="AUTO_CANNON"
              Radius="160"/>
            <MetaImpactNugget
                    ShockWaveAmount="50"
                    ShockWaveRadius="100.0"
                    ShockWaveTaperOff="1.0"
                    ShockWaveZMult="1.0"
                    ShockWaveArc="5d"
                    ForbiddenTargetModelCondition="STUNNED_FLAILING"/>
        </Nuggets>

    </WeaponTemplate>

    <!-- Repair weapon (engineers) -->
    <WeaponTemplate
		id="AAAVT1_RepairWeapon"
		FiringLoopSound="ALL_MultiGunnerIFV_EngineerRepairLoop"
		FiringLoopSoundContinuesDuringReload="true"
		FireFX="FX_AAAVT1_Engineer"
    FireVeteranFX="FX_AAAVT1_Engineer"
    AttackRange="25.0"
		inheritFrom="AAGA_RepairWeapon">
    </WeaponTemplate>

    <!-- Tesla weapon -->
    <WeaponTemplate
		id="AAAVT1_SovietHeavyAntiVehicleInfantryTeslaGun"
		inheritFrom="SovietHeavyAntiVehicleInfantryTeslaGun"
		AttackRange="150.0">
		<PreAttackDelay
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
        <FiringDuration
			MinSeconds="0.7s"
			MaxSeconds="0.9s" />
        <ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.3s" />
    </WeaponTemplate>

    <!--Missile Trooper Weapon-->
    <WeaponTemplate
		id="AAAVT1_AlliedAntiVehicleInfantryMissileLauncher"
		inheritFrom="AlliedAntiVehicleInfantryMissileLauncher"
    FireFX="FX_AlliedIFVMissileFire"
    FireVeteranFX="FX_AlliedIFVMissileFire"
		WeaponSpeed="600"
        MinWeaponSpeed="300"         
		AttackRange="150.0"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		ClipSize="8">
        <PreAttackDelay
		  MinSeconds="0.0s"
		  MaxSeconds="0.0s" />
        <FiringDuration
                    MinSeconds="0.15s"
                    MaxSeconds="0.2s" />
        <ClipReloadTime
                    MinSeconds="4.0s"
                    MaxSeconds="4.0s"	/>

        <Nuggets
         xai:joinAction="Replace"  xmlns:xai="uri:ea.com:eala:asset:instance">
            <ProjectileNugget
                      WarheadTemplate="AlliedIFVUpgradedRocketWarhead"
                      ProjectileTemplate="AlliedDefaultMissileProjectile">
                <VeterancyProjectiles
                            VeterancyLevel="HEROIC"
                            ProjectileTemplate="AlliedDefaultMissileProjectile_Veteran"/>
            </ProjectileNugget>
            <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="5s"/>
            <InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
        </Nuggets>
        <ScatterRadiusVsType
                Radius="25.0">
            <Filter
				Rule="NONE"
				Include="INFANTRY" />
        </ScatterRadiusVsType>
    </WeaponTemplate>


    <WeaponTemplate
		id="AlliedIFVUpgradedRocketWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE">
    <Nuggets>
      <DamageNugget
				Damage="30.0"
				Radius="5.0"
				DamageType="ROCKET"
				DamageFXType="ALLIED_MISSILE"
				DeathType="EXPLODED">	
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>SovietAntiVehicleVehicleTech1</IncludeThing>
						<IncludeThing>SovietAntiVehicleVehicleTech3</IncludeThing>
						<IncludeThing>AlliedAntiVehicleVehicleTech1</IncludeThing>
						<IncludeThing>AlliedAntiVehicleVehicleTech3</IncludeThing>
						<IncludeThing>AlliedAntiNavyShipTech1</IncludeThing>
						<IncludeThing>JapanAntiVehicleVehicleTech1</IncludeThing>
						<IncludeThing>JapanAntiVehicleVehicleTech3</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>

	<!-- Garrisoned IFV Tank Buster weapon (JapanAntiVehicleInfantry)-->
	<WeaponTemplate
		id="AAAVT1_JapanAntiVehicleInfantryPlasmaBazooka"
		inheritFrom="JapanAntiVehicleInfantryPlasmaBazooka"
		AcceptableAimDelta="180d"
		AttackRange="150.0">
		<PreAttackDelay
			MinSeconds="0.23s"
			MaxSeconds="0.27s" />
    <FiringDuration
			MinSeconds="0.23s"
			MaxSeconds="0.27s" />
    <!-- cannot be under 0.75s - see casey if you need it changed-->
		<ClipReloadTime
			MinSeconds="0.4s"
			MaxSeconds="0.6s" />
	</WeaponTemplate>

	<!-- Psyonic Crush weapon (JapanCommandoTech1PsyonicCrush)-->
	<WeaponTemplate
		id="AAAVT1_JapanCommandoTech1PsyonicCrush"
		inheritFrom="JapanCommandoTech1PsyonicCrush">
	</WeaponTemplate>

    <!-- Psyonic AntiAir Crush weapon (JapanCommandoTech1AirborneKiller)-->
<WeaponTemplate
    id="AAAVT1_JapanCommandoTech1PsyonicAntiAirCrush"
    inheritFrom="JapanCommandoTech1AirborneKiller">
    </WeaponTemplate>
    
	<!-- Pistol (spy) -->
	<WeaponTemplate
		id="AAAVT1_PistolWeapon"
		FireFX="FX_AAAVT1_Spy"
    FireVeteranFX="FX_AAAVT1_Spy"
		inheritFrom="AAGA_PistolWeapon">
	</WeaponTemplate>

	<!-- Pistol (Tanya) -->
	<WeaponTemplate
		id="AAAVT1_CommandoPistolWeapon"
    FireFX="FX_MuzzleTanyaIFV"
    FireVeteranFX="FX_MuzzleTanyaIFV"
		inheritFrom="AlliedCommandoDesertEagles">
	</WeaponTemplate>

	<!-- Shuriken (Ninja) -->
	<WeaponTemplate
		id="AAAVT1_JapanInfiltrationShiruken"
    inheritFrom="JapanInfiltrationShiruken">
    <Nuggets>
      <ProjectileNugget
        id="Default_Nugget" 
				WarheadTemplate="JapanShurikenProjectileWarhead"
				ProjectileTemplate="JapanShurikenProjectile_IFV">
        <VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanShurikenProjectile_IFV"/>
      </ProjectileNugget>
    </Nuggets>
	</WeaponTemplate>
	
	<!-- Machine Gun (Soviet Conscript) -->
	<WeaponTemplate
		id="AAAVT1_JapanMachineGun"
		inheritFrom="JapanAntiInfantryInfantryWeapon">
		<ClipReloadTime
			MinSeconds="0.2s"
			MaxSeconds="0.3s" />
	</WeaponTemplate>


	<!-- Machine Gun (Soviet Conscript) -->
	<WeaponTemplate
		id="AAAVT1_MachineGun"
		inheritFrom="SovietAntiInfantryInfantryAK47">
		<ClipReloadTime
			MinSeconds="0.2s"
			MaxSeconds="0.3s" />
	</WeaponTemplate>

	<!-- Flak Trooper Weapon -->
	<WeaponTemplate
		id="AAAVT1_SovietAntiVehicleFlakLauncher"
		inheritFrom="SovietAntiAirShipFlakCannon">
	</WeaponTemplate>

	<!-- Soviet Commando Weapon -->
	<WeaponTemplate
		id="AAAVT1_SovietCommandoSniperRifle"
    FireFX="FX_SovietSnipeFire_IFV"
    FireVeteranFX="FX_SovietSnipeFire_IFV"
		inheritFrom="SovietCommandoSniperRifle">
	</WeaponTemplate>

<!-- Allied Base Defense Weapons (ABD) -->

	<!-- Roar weapon (dog, bear) -->
	<WeaponTemplate
		id="ABD_RoarWeapon"
		inheritFrom="AAAVT1_RoarWeapon"
		AttackRange="300">
	</WeaponTemplate>

	<!-- Shotgun weapon (peacekeeper) -->
	<WeaponTemplate
		id="ABD_ShotgunWeapon"
		inheritFrom="AlliedAntiInfantryInfantryShotgun"
		AttackRange="300.0">
   <FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
   <ClipReloadTime
			MinSeconds="0.40s"
			MaxSeconds="0.40s" />
		<Nuggets>	
		<DamageNugget
				id="peacekeeperdefaultdamage"
				DamageType="AUTO_CANNON"
				Radius="305"
				DamageArc="2d"/>
		</Nuggets>
	
		
	</WeaponTemplate>

	<!-- Repair weapon (engineers) -->
	<WeaponTemplate
		id="ABD_RepairWeapon"
    AttackRange="25.0"
		inheritFrom="AAGA_RepairWeapon">
	</WeaponTemplate>

	<!-- Tesla weapon -->
	<WeaponTemplate
		id="ABD_SovietHeavyAntiVehicleInfantryTeslaGun"
		inheritFrom="SovietHeavyAntiVehicleInfantryTeslaGun"
		AttackRange="300.0">
		<PreAttackDelay
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
		<FiringDuration
			MinSeconds="0.7s"
			MaxSeconds="0.9s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.3s" />
	</WeaponTemplate>

	<!--Missile Trooper Weapon-->
	<WeaponTemplate
		id="ABD_AlliedAntiVehicleInfantryMissileLauncher"
		inheritFrom="AAAVT1_AlliedAntiVehicleInfantryMissileLauncher"
		AttackRange="300.0">
	</WeaponTemplate>

	<!-- Tank Buster weapon (JapanAntiVehicleInfantry)-->
	<WeaponTemplate
		id="ABD_JapanAntiVehicleInfantryPlasmaBazooka"
		inheritFrom="JapanAntiVehicleInfantryPlasmaBazookaIFV"
		FireSound="JAP_Tankbuster_WeaponFire"
		FireFX="FX_JapanTankBusterFire"
		FireVeteranFX="FX_JapanTankBusterFire_Vet"
		AttackRange="300.0">
		<PreAttackDelay
			MinSeconds="0.23s"
			MaxSeconds="0.27s" />
    <FiringDuration
			MinSeconds="0.23s"
			MaxSeconds="0.27s" />
    <!-- cannot be under 0.75s - see casey if you need it changed-->
		<ClipReloadTime
			MinSeconds="0.4s"
			MaxSeconds="0.6s" />
		
	</WeaponTemplate>

	<!-- Psyonic Crush weapon (JapanCommandoTech1PsyonicCrush)-->
	<WeaponTemplate
		id="ABD_JapanCommandoTech1PsyonicCrush"
		inheritFrom="JapanCommandoTech1PsyonicCrush"
		AttackRange="300.0">
	</WeaponTemplate>

    <!-- Psyonic AntiAir Crush weapon (JapanCommandoTech1AirborneKiller)-->
    <WeaponTemplate
        id="ABD_JapanCommandoTech1PsyonicAntiAirCrush"
        inheritFrom="JapanCommandoTech1AirborneKiller"
		AttackRange="300.0">
    </WeaponTemplate>
    
	<!-- Pistol (spy) -->
	<WeaponTemplate
		id="ABD_PistolWeapon"
		inheritFrom="AAGA_PistolWeapon"
		AttackRange="300.0">
	</WeaponTemplate>

	<!-- Pistol (Tanya) -->
	<WeaponTemplate
		id="ABD_CommandoPistolWeapon"
		inheritFrom="AAGA_CommandoPistolWeapon"
		AttackRange="300.0">
	</WeaponTemplate>

	<!-- Shuriken (Ninja) -->
	<WeaponTemplate
		id="ABD_JapanInfiltrationShiruken"
		inheritFrom="JapanInfiltrationShiruken"
		AttackRange="300.0">
	</WeaponTemplate>

	<!-- Machine Gun (Soviet Conscript) -->
	<WeaponTemplate
		id="ABD_MachineGun"
		inheritFrom="AAAVT1_MachineGun"
		AttackRange="300.0">
	</WeaponTemplate>
	
	<WeaponTemplate
		id="ABD_JapanMachineGun"
		inheritFrom="AAAVT1_JapanMachineGun"
		AttackRange="300.0">
	</WeaponTemplate>

	<!-- Flak Trooper Weapon -->
	<WeaponTemplate
		id="ABD_SovietAntiVehicleFlakLauncher"
		inheritFrom="SovietAntiAirShipFlakCannon">
	</WeaponTemplate>

	<!-- Soviet Commando Weapon -->
	<WeaponTemplate
		id="ABD_SovietCommandoSniperRifle"
		inheritFrom="SovietCommandoSniperRifle">
  </WeaponTemplate>
		
	<WeaponTemplate
		id="JapanAntiVehicleVehicleTech1Cannon"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		WeaponSpeed="1000"
		MinWeaponSpeed="5000"
		MaxWeaponSpeed="5000"
		AcceptableAimDelta="20d"
		WeaponRecoil="2d"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		ReAcquireDetailType="PRE_FIRE"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		FireSound="JAP_Tsunami_CannonFire"
		FireFX="FX_JapanTankGun"
		FireVeteranFX="FX_JapanTankGunHeroic"		
 		>
		<FiringDuration
			MinSeconds=".25s"
			MaxSeconds=".25s" />
		<ClipReloadTime
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="JapanAntiVehicleVehicleTech1Warhead"
				ProjectileTemplate="JapanAntiVehicleVehicleTech1Projectile">
                <VeterancyProjectiles
                    VeterancyLevel="HEROIC"
                    ProjectileTemplate="JapanAntiVehicleVehicleTech1Projectile_Veteran"/>
            </ProjectileNugget>
            <!--DamageNugget
				Damage="20.0"
				DamageType="CANNON"
				DamageFXType="JAPAN_CANNON"
				DeathType="EXPLODED" />
            <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" /-->
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiVehicleVehicleTech1Warhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<Nuggets>
			<DamageNugget
				Damage="20.0"
				DamageType="CANNON"
				DamageFXType="JAPAN_CANNON"
				DeathType="EXPLODED" />
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	
	<WeaponTemplate
		id="JapanAntiInfantryInfantryWeapon"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FireVeteranFX="FX_JapanAutoCannonMuzzleFlash_Vet"
		FireSound="JAP_ImperialWarrior_WeaponFire_MachineGun"
		RadiusDamageAffects="ENEMIES"
		ClipSize="5"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		AcceptableAimDelta="5d"
		CanFireWhileMoving="true"		
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="1.8s"
			MaxSeconds="2.2s" />
		<Nuggets>
			<DamageNugget
				Damage="8.0"
				DamageType="GUN"
				DamageFXType="JAPAN_AUTOCANNON"
				DeathType="NORMAL" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiInfantryInfantryWeaponBonzai"
		AttackRange="20.0"
		WeaponSpeed="100.0"
		RadiusDamageAffects="ENEMIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		ClipSize="1"
		AcceptableAimDelta="90d"
		MeleeWeapon="true"
		FinishAttackOnceStarted="true"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
				MinSeconds="1s"
				MaxSeconds="1s" />
		<ClipReloadTime
				MinSeconds="0.1s"
				MaxSeconds="0.1s" />
		<Nuggets>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="300.0"
				DamageType="MELEE"
				DamageFXType="JAPAN_BONZAI"
				DeathType="STABBED"
        DelayTimeSeconds="0.5s">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY">
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanScoutInfantryAttachWeapon"
		AttackRange="80.0"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_VEHICLE ANTI_AIRBORNE_VEHICLE"
		ForbiddenAntiMask="ANTI_INFANTRY ANTI_STRUCTURE ANTI_SUBMERGED ANTI_AIRBORNE_INFANTRY" 
		WeaponSpeed="125"
		CanFireWhileMoving="true"
		AcceptableAimDelta="180d"
		ProjectileSelf="true"
		ClipSize="1"
		Flags="NOT_ATTRACTED_BY_MAGNETS" 
		PreferredTargetBone="ROOTTRANSFORM"
		FinishAttackOnceStarted="true">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<ProjectileNugget
				ForbiddenTargetObjectStatus="VEHICLE_ATTACHED"
				WarheadTemplate="JapanScoutInfantryAttachWeaponWarhead">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE"
					StatusBitFlagsExclude="SUBMERGED">
					<ExcludeThing>JapanScoutInfantry</ExcludeThing>
				</SpecialObjectFilter>
      </ProjectileNugget>
			
	</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanScoutInfantryAttachWeaponWarhead"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		HitStoredTarget="true">
		<Nuggets>
			<AttachNugget
				AttachModuleId="ModuleTag_Attach"
				ForbiddenTargetObjectStatus="VEHICLE_ATTACHED"
			/>
			<SpecialPowerNugget
				SpecialPowerTemplate="SpecialPower_JapanScoutInfantryAttachWeaponDummy" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanScoutInfantryBombWeapon"
		RadiusDamageAffects="ENEMIES NEUTRALS ALLIES SELF"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_AIRBORNE_VEHICLE"
		Flags="NOT_ATTRACTED_BY_MAGNETS" 
		PreAttackFX="FX_None">
		<Nuggets>
			<!-- for effects and sounds -->
			<AttributeModifierNugget
				AttributeModifierOwnerName="JapanScoutInfantryBombWeapon_SelfModifier"
				Radius="0"/>
			<!-- self destruct after set time -->
			<DamageNugget
				Radius="0"
				OnlyKillOwnerWhenTriggered="true"
				DelayTimeSeconds="=$JAPAN_BURST_DRONE_SELF_DESTRUCT_TIMER"
				DamageType="UNRESISTABLE"
				DamageFXType="JAPAN_CANNON"
				DeathType="SUICIDED" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanScoutInfantryBombDieWeapon"
		RadiusDamageAffects="ENEMIES NEUTRALS ALLIES SELF"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_AIRBORNE_VEHICLE"
		Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Damage="200.0"
				Radius="20"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_CANNON"
				DeathType="EXPLODED">
				<ForbiddenUpgrade>Upgrade_JapanEnhancedKamikaze</ForbiddenUpgrade>
				<DamageScalarDetails Scalar= "75%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				<DamageScalarDetails Scalar= "40%">
					<Filter
					Rule="ANY"
					Include="EGG">						
					</Filter>		
					</DamageScalarDetails>					
			</DamageNugget>

			<!-- Enhanced Kamikaze Special power weapon -->
			<DamageNugget
				Damage="250.0"
				Radius="25"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_KAMIKAZE"
				DeathType="EXPLODED">
				<RequiredUpgrade>Upgrade_JapanEnhancedKamikaze</RequiredUpgrade>
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				<DamageScalarDetails Scalar= "40%">
					<Filter
					Rule="ANY"
					Include="EGG">						
					</Filter>		
					</DamageScalarDetails>		
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
		
	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech1CannonWeapon"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0" 
		ClipSize="1"  
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		FireSound="SOV_HammerTank_CanonFire"
		FireFX="FX_SovietTankGun"
		FireVeteranFX="FX_SovietTankGun_Vet">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds="0.6s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<ProjectileNugget 
				WarheadTemplate="SovietAntiVehicleVehicleTech1CannonWarhead" 
				ProjectileTemplate="SovietAntiVehicleVehicleTech1TankProjectile">
                <VeterancyProjectiles
                    VeterancyLevel="HEROIC"
                    ProjectileTemplate="SovietAntiVehicleVehicleTech1TankProjectile"/>
			</ProjectileNugget>
            <!--DamageNugget
				Damage="35.0"
				DamageType="CANNON"
				DamageFXType="SOVIET_CANNON"
				DeathType="EXPLODED" />
            <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" /-->
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech1CannonWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
        <Nuggets>
            <DamageNugget
				Damage="35.0"
				DamageType="CANNON"
				DamageFXType="SOVIET_CANNON"
				DeathType="EXPLODED" />
            <SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="3s" />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietAntiVehicleVehicleTech1LeechBeamWeapon"
		FiringLoopSound="SOV_HammerTank_LeechBeamLoop"
		FiringLoopSoundContinuesDuringReload="true"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		AttackRange="300.0"
		WeaponSpeed="999999.0"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		ReAcquireDetailType="PER_ATTACK"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		CanFireWhileMoving="false"
        IgnoresContactPoints="true">
		<ClipReloadTime
			MinSeconds="1s"
			MaxSeconds="1s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="1">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="INFANTRY AIRCRAFT"/>
			</ActivateLaserNugget>
			<LeechHealthDamageNugget
				Damage="20.0"
				DamageType="MAGIC"
				DeathType="NORMAL"
				NotifyOwnerOnVictimDeath="true">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="INFANTRY AIRCRAFT"/>
			</LeechHealthDamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech3Cannon"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		MinTargetPitch="-15d"
		MaxTargetPitch="15d"
		FireSound="SOV_ApocalypseTank_CannonFire"
		WeaponSpeed="1000"
		WeaponRecoil="1d"
		FireFX="FX_AlliedTankGun"
		FireVeteranFX="FX_AlliedTankGun_Vet"
		RadiusDamageAffects="ENEMIES"
		CanFireWhileMoving="true"
		ClipSize="2"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		ReAcquireDetailType="PER_SHOT"
		ShotsPerBarrel="1"		
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<FiringDuration
				MinSeconds="0.3s"
				MaxSeconds="0.3s" />
		<ClipReloadTime
				MinSeconds="2s"
				MaxSeconds="2s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="FXSovietAntiVehicleVehicleTech3Projectile"
				WarheadTemplate="SovietAntiVehicleVehicleTech3Cannon_Warhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="FXSovietAntiVehicleVehicleTech3Projectile_Veteran"/>
			</ProjectileNugget>
            <!--DamageNugget
				Damage="100.0"
				DamageType="CANNON"
				DamageFXType="SOVIET_CANNON"
				DeathType="EXPLODED" />
			<SuppressionNugget
					  Radius="25.0"
					  Suppression="75"
					  DurationSeconds="2s" /-->
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech3Cannon_Warhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<Nuggets>
			<DamageNugget
				Damage="100.0"
				DamageType="CANNON"
				DamageFXType="SOVIET_CANNON"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech3Cannon_Veteran"
		inheritFrom="SovietAntiVehicleVehicleTech3Cannon">
			<Nuggets
         xai:joinAction="Replace"  xmlns:xai="uri:ea.com:eala:asset:instance">
			<ProjectileNugget
				ProjectileTemplate="FXSovietAntiVehicleVehicleTech3Projectile_Veteran"
				WarheadTemplate="SovietAntiVehicleVehicleTech3CannonVeteran_Warhead">
			</ProjectileNugget>
		</Nuggets>
	</WeaponTemplate>
	
		<WeaponTemplate
		id="SovietAntiVehicleVehicleTech3CannonVeteran_Warhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<Nuggets>
			<DamageNugget
				Damage="125.0"
				Radius="15.0"
				DamageType="EXPLOSIVE"
				DamageFXType="SOVIET_CANNON"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiVehicleVehicleTech3Harpoon"
		AttackRange="300.0"
		MinTargetPitch="-15d"
		MaxTargetPitch="15d"
		AcceptableAimDelta="1d"
		FireSound="SOV_Apocalypse_WeaponHarpoon"
		WeaponSpeed="1000"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		RadiusDamageAffects="ENEMIES"
		CanFireWhileMoving="true"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ReAcquireDetailType="PER_CLIP"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		RequiredFiringObjectStatus="GENERIC_TOGGLE_STATE"
		IgnoresContactPoints="true">
	 	<!-- FiringLoopSound="SOV_ApocalypseTank_HarpoonLoop"
		FiringLoopSoundContinuesDuringReload="true"
		this only worked when force firing on ground, which isn't supposed to work anyways -->
		<FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
		<Nuggets>

			<GrapplingHookNugget
				Damage="1.0"
				DamageType="CANNON"
				ForbiddenTargetObjectStatus="UNDER_RUSH_ATTACK" >
				<SpecialObjectFilter
					Rule="ANY"
					Relationship="ALLIES ENEMIES NEUTRAL"
					Include="VEHICLE STRUCTURE TIME_BOMB"
					Exclude="AIRCRAFT BRIDGE BRIDGE_SEGMENT BRIDGE_GATEHOUSE BRIDGE_ENDCAP" />
			</GrapplingHookNugget>
		</Nuggets>
	</WeaponTemplate>

	
	<WeaponTemplate
		id="SovietPowerPlantAdvancedDeathWeapon"
		AttackRange="5.0"
		WeaponSpeed="999999.0"
		PreAttackFX="FX_None"
		FireFX="FX_SovPPXP"
		CanFireWhileMoving="false"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY">
		<PreAttackDelay
		  MinSeconds="0.5s"
		  MaxSeconds="0.5s" />
		<FiringDuration
			MinSeconds="3s"
			MaxSeconds="3s" />
		<Nuggets>
			<DamageNugget
				Damage="1500"
				DamageTaperOff="300"
				DelayTimeSeconds="0.5s"
				Radius="250"
				DamageType="EXPLOSIVE"
				DeathType="EXPLODED">
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<!--Catalyst weapon for continual infection in a radius, this version is for buildings; infantry have another weapon-->

	<WeaponTemplate
		id="CatalystBuildingDeathWeapon"
		AttackRange="5.0"
		WeaponSpeed="999999.0"
		PreAttackFX="FX_None"
		FireFX="FX_None"
		HitPercentage="0%"
		CanFireWhileMoving="false"
		ClipSize="1"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<PreAttackDelay
		  MinSeconds="0.5s"
		  MaxSeconds="0.5s" />
		<FiringDuration
			MinSeconds="3s"
			MaxSeconds="3s" />
		<ClipReloadTime
			MinSeconds="5s"
			MaxSeconds="5s" />
		<Nuggets>
			<TintObjectsNugget
				Radius="200"
				PreColorTime="4s"
				SustainedColorTime="0s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
				<Color R="1.3" G="1.3" B="1.5"/>
			</TintObjectsNugget>
			<DamageNugget
				id="DefaultCatalystDamageNugget"
				Damage="200"
				DamageTaperOff="100"
				Radius="100"
				DelayTimeSeconds="1.5s"
				DamageType="EXPLOSIVE"
				DeathType	="CATALYST">
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	
	<!--Catalyst weapon for continual infection in a radius, this version is for infantry; buildings have another weapon-->
	<WeaponTemplate
		id="CatalystInfantryDeathWeapon"
		
		AttackRange="5.0"
		WeaponSpeed="999999.0"
		PreAttackFX="FX_None"
		FireFX="FX_None"
    FireVeteranFX="FX_None"
		HitPercentage="0%"		
		CanFireWhileMoving="false"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<PreAttackDelay
		  MinSeconds="0.5s"
		  MaxSeconds="0.5s" />
		<FiringDuration
			MinSeconds="3s"
			MaxSeconds="3s" />
		<ClipReloadTime
			MinSeconds="5s"
			MaxSeconds="5s" />
		<Nuggets>
			<TintObjectsNugget
				Radius="100"
				PreColorTime="4s"
				SustainedColorTime="0s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
				<Color R="1.3" G="1.3" B="1.5"/>
			</TintObjectsNugget>
			<DamageNugget
				Damage="150"
				DamageTaperOff="50"
				Radius="50"
				DelayTimeSeconds="1.5s"
				DamageType="CANNON"
				DeathType="CATALYST">
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="SovietAntiStructureVehicleV4Rocket"
		inheritFrom="ScatterableWeapon"
		AttackRange="500.0"
		MinimumAttackRange="200"
		WeaponSpeed="200"
        MinWeaponSpeed="0" 
		AcceptableAimDelta="20d"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		FireSound="SOV_V4MissileLauncher_MissileFire"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		RadiusDamageAffects="ENEMIES"
		ReAcquireDetailType="PRE_FIRE"
		RevealShroudOnFire="true"
 		>
 		<PreAttackDelay
		  MinSeconds=".5s"
		  MaxSeconds=".5s" />
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="4.5s"
			MaxSeconds="5.5s" />
    <WeaponAiHintInfo
      UseLongLockOnTimeCode="true" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleV4RocketWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleV4RocketProjectile">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiStructureVehicleV4RocketProjectile_Veteran"/>
			</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
		<ScatterRadiusVsType
			Radius="0.1">
			<Filter
				Rule="ANY"
				Include="INFANTRY VEHICLE" />
		</ScatterRadiusVsType>
	</WeaponTemplate>

	<WeaponTemplate
			id="SovietAntiStructureVehicleV4RocketWarhead"
			ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
			RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
			RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="500.0"
				DamageType="EXPLOSIVE"
				DeathType="EXPLODED"
				Radius="40"
				DamageTaperOff="0"> 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
		 <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
				   ShockWaveTaperOff="1.0"/>
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="SovietAntiStructureVehicleMIRVRocket"
		inheritFrom="ScatterableWeapon"
		AttackRange="500.0"
		MinimumAttackRange="200"
		WeaponSpeed="300"
		MinWeaponSpeed="50"
		MaxWeaponSpeed="50"
		AcceptableAimDelta="20d"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		CanFireWhileMoving="false"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		FireSound="SOV_V4MissileLauncher_MIRVmissileFire"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		ReAcquireDetailType="PRE_FIRE"
		RadiusDamageAffects="ENEMIES"
		RevealShroudOnFire="true"
 		>
		<PreAttackDelay
		  MinSeconds=".5s"
		  MaxSeconds=".5s" />
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="4.5s"
			MaxSeconds="5.5s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="DummyWeaponWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVProjectile">
			</ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
		<ScatterRadiusVsType
			Radius="0.1">
			<Filter
				Rule="ALL"
				Include="INFANTRY VEHICLE" />
		</ScatterRadiusVsType>
	</WeaponTemplate>

	<!-- WeaponSpeed is zero, pick random from min and max -->
	<WeaponTemplate
		id="SovietAntiStructureVehicleMIRVLauncher"
		inheritFrom="ScatterableWeapon"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ENEMIES"
		WeaponSpeed="0"
		MinWeaponSpeed="50"
		MaxWeaponSpeed="250"
		ScatterIndependently="true"
		ScatterRadius="100"
		ClipSize="1"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>		
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<ProjectileNugget
				WarheadTemplate="SovietAntiStructureVehicleMIRVWarhead"
				ProjectileTemplate="SovietAntiStructureVehicleMIRVMiniRocketProjectile">
			</ProjectileNugget>
			<SuppressionNugget
			   Radius="100.0"
			   Suppression="25"
			   DurationSeconds="5s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiStructureVehicleMIRVWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
        <Nuggets>
            <DamageNugget
				Damage="100.0"
				DamageTaperOff="25"
				DamageType="EXPLOSIVE"
				DeathType="EXPLODED"
				Radius="25"/>
            <MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="25.0"
				ShockWaveTaperOff="1.0"/>
            <SuppressionNugget
			   Radius="20.0"
			   Suppression="25"
			   DurationSeconds="5s" />
        </Nuggets>
    </WeaponTemplate>

    <!-- Dreadnought weapon -->
    <WeaponTemplate
		id="SovietAntiStructureShipV4Rocket"
		inheritFrom="ScatterableWeapon"
		AttackRange="750.0"
		MinimumAttackRange="200"
		WeaponSpeed="200"
        MinWeaponSpeed="0" 
		AcceptableAimDelta="20d"
    ScatterRadius="30"
		ClipSize="3"
		AutoReloadsClip="AUTO"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		FireSound="SOV_Dreadnought_MissileLaunch"
		FireFX="FX_V4MissileFire"
		FireVeteranFX="FX_V4MissileFire_Vet" 
		RevealShroudOnFire="true">
        <FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <ClipReloadTime
			MinSeconds="4.5s"
			MaxSeconds="5.5s" />
        <Nuggets>
            <ProjectileNugget
				WarheadTemplate="SovietAntiStructureShipV4RocketWarhead"
				ProjectileTemplate="SovietAntiStructureShipV4RocketProjectile">
                <VeterancyProjectiles
                  VeterancyLevel="HEROIC"
                  ProjectileTemplate="SovietAntiStructureShipV4RocketProjectile_Veteran"/>
            </ProjectileNugget>
            <InformTargetNugget />

        </Nuggets>
        <ScatterRadiusVsType
			Radius="0.1">
            <Filter
				Rule="ALL"
				Include="INFANTRY VEHICLE" />
        </ScatterRadiusVsType>
    </WeaponTemplate>

    <WeaponTemplate
		id="SovietAntiStructureShipV4RocketWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<Nuggets>
			<DamageNugget
				Damage="200.0"
				Radius="40"
				DamageTaperOff="0"
				DamageType="EXPLOSIVE"
				DeathType="EXPLODED" > 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
			<MetaImpactNugget
				ShockWaveAmount="50.0"
				ShockWaveRadius="50.0"
				ShockWaveTaperOff="1.0"/>
			<SuppressionNugget
			   Radius="50.0"
			   Suppression="25"
			   DurationSeconds="5s" />
		</Nuggets>
		<ScatterRadiusVsType
			Radius="0.1">
			<Filter
				Rule="ALL"
				Include="INFANTRY VEHICLE" />
		</ScatterRadiusVsType>
	</WeaponTemplate>

	<!-- note AcceptableAimDelta is quite high to allow them to shoot circling aircraft directly above them. -->
	<WeaponTemplate
		id="SovietAntiVehicleFlakLauncher"
		inheritFrom="ScatterableWeapon"
		AttackRange="175.0"
		WeaponSpeed="1000"
		MinWeaponSpeed="1000"
		MaxWeaponSpeed="1010"
		FireFX="FX_SovietFlakTrooperFire"
		FireVeteranFX="FX_SovietFlakTrooperFire_Vet"
		FireSound="SOV_FlakTrooper_FlakFire"
		AcceptableAimDelta="15d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="1"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="false"
		FinishAttackOnceStarted="true">
		<PreAttackDelay
			MinSeconds=".2s"
			MaxSeconds=".2s" />
		<ClipReloadTime
			MinSeconds="0.8s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				Damage="25.0"
				Radius="20.0"
				DamageTaperOff="0"
				DamageType="FLAK"
				DamageFXType="SOVIET_FLAK"
				DeathType="EXPLODED">
			</DamageNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="5s"
			/>
		</Nuggets>
	</WeaponTemplate>
	
	
		<WeaponTemplate
		id="SovietAntiVehicleFlakLauncher_Aircraft"
		inheritFrom="SovietAntiVehicleFlakLauncher"
		AttackRange="300.0"
		AcceptableAimDelta="90d"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY">
		<IncompatibleAttributeModifier>AttributeModifier_Garrisoned</IncompatibleAttributeModifier>
	</WeaponTemplate>

	<!-- a single 20-round weapon instead of 4 5-round ones -->
	<WeaponTemplate
		id="SovietAntiGroundAircraftWeapon" 
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		WeaponSpeed="250"
		MinWeaponSpeed="50"
		MaxWeaponSpeed="250"
		FireFX="FX_SOV_Hind_MissleFire"
		FireVeteranFX="FX_SOV_Hind_MissleFire"
		AcceptableAimDelta="10d"
		ClipSize="8"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER">
		<FiringDuration
				MinSeconds=".1s"
				MaxSeconds=".1s" />
		<ClipReloadTime
				MinSeconds="8s"
				MaxSeconds="8s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="SovietAntiGroundAircraftWeaponProjectile"
				WarheadTemplate="SovietAntiGroundAircraftWeaponWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiGroundAircraftWeaponProjectile_Vet"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s" />
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiGroundAircraftWeaponWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		ProjectileCollidesWith  = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER" >
		<Nuggets>
			<DamageNugget
				Damage="25.0"
				Radius="20.0"
				DamageTaperOff="0"
				DamageType="ROCKET"
				DeathType="EXPLODED">
				<DamageScalarDetails Scalar= "25%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
     	<SuppressionNugget
				Radius="20.0"
				Suppression="8"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiGroundAircraftAutoCannon"
		FireFX="FX_MuzzleSovietAir"
		FireVeteranFX="FX_MuzzleSovietAir_Vet"
		FireSoundPerClip="SOV_Twinblade_MachineGunFire"
		AttackRange="150.0"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ClipSize="6"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		ReAcquireDetailType="PER_CLIP">
		<FiringDuration
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<DamageNugget
				Damage="5.0"
				Radius="0.0"
				DamageType="AUTO_CANNON"
				DelayTimeSeconds="0.5s"
				DamageFXType="SOVIET_MACHINEGUN"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>
	
<!-- START: SovietAntiVehicleVehicleTech1 Leech Beam weapons -->

	<WeaponTemplate
		id="Leech_ApocCannon"
		inheritFrom="SovietAntiVehicleVehicleTech3Cannon" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_AlliedTankCannon"
		inheritFrom="AlliedAntiVehicleVehicleTech1Cannon"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_SovietTankCannon"
		inheritFrom="SovietAntiVehicleVehicleTech1CannonWeapon"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_JapanTankCannon"
		inheritFrom="JapanAntiVehicleVehicleTech1Cannon"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_PrismCannon"
		inheritFrom="AlliedAntiVehicleVehicleTech3PrismCannon" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_GaussCannon"
		inheritFrom="AlliedAntiNavyShipTech1Cannon" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_AutoCannon"
		inheritFrom="SovietAntiInfantryVehicleChaingun" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_V4Rocket"
		inheritFrom="SovietAntiStructureVehicleV4Rocket" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_FlakMissile"
		inheritFrom="SovietFighterAircraftFlakMissile"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_StrikerMissile"
		inheritFrom="JapanAntiAirVehicleTech1_LandMissileLauncher"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_IFVMissile"
		inheritFrom="AlliedAntiAirVehicleTech1MissileLauncher" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_TeslaCoil"
		inheritFrom="SovietAntiNavyShipTech1TeslaGun" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_FlakCannon"
		inheritFrom="SovietAntiAirShipFlakCannon" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_BeamWeapon"
		inheritFrom="JapanAntiStructureVehicleBeamWeapon" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_LaserCannon"
		inheritFrom="JapanAntiVehicleVehicleTech3BeamWeapon" 
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_Athena_Cannon"
		inheritFrom="AlliedAntiStructureSolarTargeter"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_ShipWeapon"
		inheritFrom="JapanAntiStructureShipWeapon"
		ForbiddenFiringObjectStatus=""/>

	<WeaponTemplate
		id="Leech_AlliedAntiAir_PhalanxGun"
		inheritFrom="AlliedAntiAirShipPhalanxGun"
		ForbiddenFiringObjectStatus=""/>


	<!-- END: SovietAntiVehicleVehicleTech1 Leech Beam weapons-->
  
	<WeaponTemplate
			id="SovietAntiAirVehicleTech1FlakLauncher"
			AttackRange="300.0"
			WeaponSpeed="400"
			FireFX="FX_SovietFlakTrooperFire"
			FireVeteranFX="FX_SovietFlakTrooperFire_Vet"
			AcceptableAimDelta="20d"
			ReAcquireDetailType="PER_CLIP"
			ClipSize="5"
			Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
			RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
			CanFireWhileMoving="false">
		<FiringDuration
				MinSeconds="0.25s"
				MaxSeconds="0.25s" />
		<ClipReloadTime
				MinSeconds="0.25s"
				MaxSeconds="0.25s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="SovietAntiAirVehicleTech1FlakLauncherWarhead"
				ProjectileTemplate="SovietAntiVehicleFlakLauncherProjectile">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="SovietAntiVehicleFlakLauncherProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="5s"/>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="SovietAntiAirVehicleTech1FlakLauncherWarhead"
		ProjectileCollidesWith="ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ENEMIES NEUTRALS"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="25.0"
				Radius="25.0"
				DamageType="FLAK"
				DamageFXType="SOVIET_FLAK"
				DeathType="EXPLODED">
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>
  
	<WeaponTemplate
		id="JapanBaseDefenseGunGround"
		AttackRange="300.0"
		WeaponSpeed="999999.0"
		FireSound="JAP_DefenderVX_WeaponFireLand"
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FireVeteranFX="FX_JapanAutoCannonMuzzleFlash"
		RadiusDamageAffects="ENEMIES"
		ClipSize="8"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		CanFireWhileMoving="true"
		ReAcquireDetailType="PER_SHOT"	
		>
    <FiringDuration
			MinSeconds="0.13s"
			MaxSeconds="0.13s" />
    <ClipReloadTime
			MinSeconds=".13s"
			MaxSeconds=".2s" />
		<Nuggets>
			<DamageNugget
				Damage="15.0"
				Radius="0.0"
				DelayTimeSeconds="0.0s"
				DamageType="AUTO_CANNON"
				DamageFXType="JAPAN_AUTOCANNON"
				DeathType="NORMAL">
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="NONE"
						Include="INFANTRY" />
				</DamageScalarDetails>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanBaseDefenseGunAir"
		AttackRange="300.0"
		WeaponSpeed="200"
		MinWeaponSpeed="300"
		MaxWeaponSpeed="310"
		FireSound="JAP_DefenderVX_MissileFire"
		FireFX="FX_Japan_DefenderVX_Fire"
		FireVeteranFX="FX_Japan_DefenderVX_Fire"
		AcceptableAimDelta="20d"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		ReAcquireDetailType="PER_ATTACK"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		CanFireWhileMoving="true"
		VirtualDamage="SHARE"
		RequiredAntiMask="ANTI_AIRBORNE_INFANTRY ANTI_AIRBORNE_VEHICLE">
		<FiringDuration
			MinSeconds=".2s"
			MaxSeconds=".2s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiAirVehicleTech1MissileProjectile"
				WarheadTemplate="JapanBaseDefenseMissilePodProjectileWarhead">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="JapanAntiAirVehicleTech1MissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s" />
			<InformTargetNugget
				 MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanBaseDefenseMissilePodProjectileWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"        
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY" >
		<Nuggets>
			<DamageNugget
				Damage="20.0"
				Radius="10.0"
				DelayTimeSeconds="0.0s"
				DamageType="ROCKET"
				DamageFXType="JAPAN_MISSILE"
				DeathType="EXPLODED" />
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
		
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanLightTransportVehicleDisguiser"
		Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="ALLIES ENEMIES NOT_SIMILAR"
		AttackRange="999999.0"
		WeaponSpeed="999999.0"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
		CanFireWhileMoving="false"
		InstantLoadClipOnActivate="false"
		ContactWeapon="false"
		AcceptableAimDelta="180d"
		>
		<FiringDuration
			MinSeconds="5.01s"
			MaxSeconds="5.01s"
		/>
		<Nuggets>
			<SpecialPowerNugget
				SpecialPowerTemplate="SpecialPower_JapanLightTransportVehicleDisguise" />
		</Nuggets>
	</WeaponTemplate>

	<!--Make sure this weapons range and damage type matches the JapanAntiAirShipWeapon.  It's used to get the object
	   in range before surfacing to fire it's main weapon.-->
	<WeaponTemplate
		id="JapanAntiAirShipDummyWeapon"
		AttackRange="300"
		WeaponSpeed="200"
		ClipSize="0"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		CanFireWhileMoving="true"
		AcceptableAimDelta="180d"
		RequiredAntiMask="ANTI_AIRBORNE_INFANTRY ANTI_AIRBORNE_VEHICLE">
		<PreAttackDelay
			MinSeconds="40.0s"
			MaxSeconds="40.0s" />
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="3s"
			MaxSeconds="3s" />
		<Nuggets>
			<DamageNugget
				Damage="1.0"
				Radius="15.0"
				DamageType="ROCKET"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiAirShipWeapon"
		AttackRange="300"
		WeaponSpeed="200"
		FireSound="JAP_SeaWing_WeaponFire"
		FireFX="FX_Japan_DefenderVX_Fire"
		FireVeteranFX="FX_Japan_DefenderVX_Fire_Vet"
		AcceptableAimDelta="180d"
		ClipSize="4"
		CanFireWhileMoving="true"
		RequiredAntiMask="ANTI_AIRBORNE_INFANTRY ANTI_AIRBORNE_VEHICLE">
		<FiringDuration
			MinSeconds=".25s"
			MaxSeconds=".25s"/>
		<ClipReloadTime
			MinSeconds="0.25s"
			MaxSeconds="0.25s"/>
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiAirShipWeaponProjectile"
				WarheadTemplate="JapanAntiAirShipWeaponWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanAntiAirShipWeaponProjectile_Veteran"/>
			</ProjectileNugget>
			<InformTargetNugget
				MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
		id="JapanAntiAirShipWeaponWarhead"
		ProjectileCollidesWith="ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_AIRBORNE_INFANTRY ANTI_AIRBORNE_VEHICLE" >
		<Nuggets>
			<DamageNugget
				Damage="25"
				DamageType="ROCKET"
				DamageFXType="JAPAN_ROCKET"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- JapanAntiAirShipWeapon Advanced Missile Packs Upgraded Weapon -->
	<WeaponTemplate
		id="JapanAntiAirShipWeapon_JapanAdvancedMissilePacks"
		inheritFrom="JapanAntiAirShipWeapon"
		ClipSize="6">
		<FiringDuration
			MinSeconds="0.20s"
			MaxSeconds="0.20s"/>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanAntiAirShipWeaponTransformed"
		AttackRange="70"
		WeaponSpeed="150"
		AcceptableAimDelta="20d"
		ClipSize="0"
		CanFireWhileMoving="true"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE ANTI_GROUND"
		UseCenterForRangeCheck="true">
		<FiringDuration
			MinSeconds="2s"
			MaxSeconds="2s"/>
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiAirShipWeaponProjectileTransformed"
				WarheadTemplate="JapanAntiAirShipWeaponTransformedWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanAntiAirShipWeaponProjectile_Veteran"/>
			</ProjectileNugget>
			<InformTargetNugget
				MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
		id="JapanAntiAirShipWeaponTransformedWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ENEMIES NEUTRALS"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_SUBMERGED ANTI_STRUCTURE ANTI_GROUND" >
		<Nuggets>
			<DamageNugget
				Damage="75"
				Radius="20"
				DamageTaperOff="0" 
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_MISSILE"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>

	<!-- JapanAntiAirShipWeaponTransformed Advanced Missile Packs Upgraded Weapon -->
	<WeaponTemplate
		id="JapanAntiAirShipWeaponTransformed_JapanAdvancedMissilePacks"
		inheritFrom="JapanAntiAirShipWeaponTransformed"
		ClipSize="2">
		<ClipReloadTime
			MinSeconds="2s"
			MaxSeconds="2s" />
	</WeaponTemplate>


	<WeaponTemplate
		id="JapanAntiAirVehicleTech1_LandMissileLauncher"
		inheritFrom="ScatterableWeapon"
		AttackRange="300.0"
		WeaponSpeed="300"
		FireSound="JAP_ChopperVX_MissileFire"
		FireFX="FX_Japan_ChopperVX_Fire2"
		FireVeteranFX="FX_Japan_ChopperVX_Fire2Vet"
		AcceptableAimDelta="20d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="3"
		VirtualDamage="SHARE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		CanFireWhileMoving="true">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds=".5s"
			MaxSeconds=".5s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiAirVehicleTech1MissileProjectile"
				WarheadTemplate="JapanAntiAirVehicleTech1_LandMissileLauncherWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanAntiAirVehicleTech1MissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s"/>
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiAirVehicleTech1_LandMissileLauncherWarhead"
		ProjectileCollidesWith="ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY" >
		<Nuggets>
			<DamageNugget
				Damage="25"
				Radius="20.0"
				DamageType="ROCKET"
				DamageFXType="JAPAN_MISSILE"
				DeathType="EXPLODED"/>
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- JapanAntiAirShipWeapon Advanced Missile Packs Upgraded Weapon -->
	<WeaponTemplate
		id="JapanAntiAirVehicleTech1_LandMissileLauncher_JapanAdvancedMissilePacks"
		inheritFrom="JapanAntiAirVehicleTech1_LandMissileLauncher"
		ClipSize="6">
		<ClipReloadTime
			MinSeconds=".5s"
			MaxSeconds=".5s" />
	</WeaponTemplate>


	<WeaponTemplate
		id="JapanAntiAirVehicleTech1_AirMissileLauncher"
		inheritFrom="ScatterableWeapon"
		AttackRange="150.0"
		WeaponSpeed="200"
		FireSound="JAP_ChopperVX_MissileFire"
		FireFX="FX_Japan_ChopperVX_Fire"
		FireVeteranFX="FX_Japan_ChopperVX_FireVet"
		AcceptableAimDelta="20d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		ClipSize="5"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		FinishAttackOnceStarted="true"
		CanFireWhileMoving="true">
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<ClipReloadTime
			MinSeconds=".5s"
			MaxSeconds=".5s" />
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiAirVehicleTech1MissileProjectile"
				WarheadTemplate="JapanAntiAirVehicleTech1_AirMissileLauncherWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanAntiAirVehicleTech1MissileProjectile_Veteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="20.0"
				Suppression="10"
				DurationSeconds="1.0s"/>
			<InformTargetNugget
					 MaxTimeToImpactFudgeFactor="1.6" />
		</Nuggets>
		<ScatterRadiusVsType
			Radius="25.0">
			<Filter
				Rule="NONE"
				Include="INFANTRY" />
		</ScatterRadiusVsType>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiAirVehicleTech1_AirMissileLauncherWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER" >
		<Nuggets>
			<DamageNugget
				Damage="25.0"
				Radius="20.0"
				DamageType="ROCKET"
				DamageFXType="JAPAN_MISSILE"
				DeathType="EXPLODED">
				<DamageScalarDetails Scalar= "25%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
     	<SuppressionNugget
				Radius="20.0"
				Suppression="2"
				DurationSeconds="3s" />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- JapanAntiAirShipWeapon Advanced Missile Packs Upgraded Weapon -->
	<WeaponTemplate
		id="JapanAntiAirVehicleTech1_AirMissileLauncher_JapanAdvancedMissilePacks"
		inheritFrom="JapanAntiAirVehicleTech1_AirMissileLauncher"
		ClipSize="6">
		<ClipReloadTime
			MinSeconds=".25s"
			MaxSeconds=".25s" />
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiStructureVehicleBeamWeapon"
		FireSound="JAP_Waveforce_WeaponFire"
		FireFX="FX_JapanLaserFire"
		FireVeteranFX="FX_JapanLaserFire_Vet"
		AttackRange="500.0"
		MinimumAttackRange="200"
		WeaponSpeed="999999.0"
		ClipSize="1"
		WeaponRecoil="2d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="POST_FIRE"
		AutoReloadsClip="AUTO"
		Flags="NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		CanFireWhileMoving="false"
		RevealShroudOnFire="true">
		<PreAttackDelay
			MinSeconds="4.0s"
			MaxSeconds="4.0s" />
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<WeaponAiHintInfo
			UseLongLockOnTimeCode="true" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="401" 
				OverShootDistance="0.0"/>
			<LineDamageNugget
        id="DefaultDamageNugget" 
				Damage="750.0"
				LineWidth="5.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_FORCE"
				DeathType="NORMAL"
				UseDynamicLineLength="true"
				OverShootDistance="50.0"/>				
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanFloatingFortressMainGun"
		AttackRange="1150.0"
		FireSound="J06_FloatingFortress_WeaponFire"
		FireFX="FX_JapanLaserFire"
		FireVeteranFX="FX_JapanLaserFire"
		WeaponSpeed="999999.0"
		ClipSize="1"
		WeaponRecoil="2d"
		PreAttackType="PER_SHOT"		
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		CanFireWhileMoving="false"
		FinishAttackOnceStarted="true">
		<PreAttackDelay
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<FiringDuration
			MinSeconds="3.0s"
			MaxSeconds="3.0s" />
		<ClipReloadTime
			MinSeconds="4s"
			MaxSeconds="4s" />
		<WeaponAiHintInfo
			UseLongLockOnTimeCode="true" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="1"/>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="2"/>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="3"/>
			<DamageNugget
				id="ModuleTag_DamageNugget" 
				Damage="750.0"
				Radius="0.0"
				DelayTimeSeconds="0.0s"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_FORCE"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>			
	
	<WeaponTemplate
		id="JapanAntiAirShipGun"		
		AttackRange="200.0"
		WeaponSpeed="999999.0"
		FireSound=""
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FireVeteranFX="FX_JapanAutoCannonMuzzleFlash_Vet"		
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE"
		CanFireWhileMoving="true"
		ReAcquireDetailType="PER_SHOT"
		UseCenterForRangeCheck="true"
		AcceptableAimDelta="360d"
		>
		<FiringDuration
			MinSeconds="0.13s"
			MaxSeconds="0.13s" />
		<Nuggets>
			<DamageNugget
				Damage="5.0"
				Radius="0.0"
				DelayTimeSeconds="0.0s"
				DamageType="AUTO_CANNON"
				DamageFXType="JAPAN_AUTOCANNON"
				DeathType="NORMAL">
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="JapanAntiInfantryVehicleGun"		
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		FireSound="JAP_JetTengu_WeaponFire"
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FireVeteranFX="FX_JapanAutoCannonMuzzleFlash_Vet"		
		ClipSize="8"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER ANTI_STRUCTURE"
		CanFireWhileMoving="true"
		ReAcquireDetailType="PER_SHOT"
		ForbiddenFiringObjectStatus="AIRBORNE_TARGET"
		AcceptableAimDelta="10d"
		>
		<FiringDuration
			MinSeconds="0.13s"
			MaxSeconds="0.13s" />
		<ClipReloadTime
			MinSeconds=".13s"
			MaxSeconds=".2s" />
		<Nuggets>
			<!-- Halved the damage from 6 to 3 because JapanAntiInfantryVehicle now has 
			 2 of this weapon (it has 2 guns so i thought this made sense) -->
			<DamageNugget
				Damage="4.0"
				Radius="0.0"
				DelayTimeSeconds="0.0s"
				DamageType="AUTO_CANNON"
				DamageFXType="JAPAN_AUTOCANNON"
				DeathType="NORMAL" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanFighterAircraftGun"
		AttackRange="200.0"
		WeaponSpeed="999999.0"
		FireSound="JAP_JetTengu_WeaponFire"
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FireVeteranFX="FX_JapanAutoCannonMuzzleFlash_Vet"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		CanFireWhileMoving="true"		
		ReAcquireDetailType="PER_SHOT"
		AcceptableAimDelta="20d"
		>
		<FiringDuration
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<Nuggets>
			<DamageNugget
        id="DefaultNugget" 
				Damage="23.0"
				Radius="0.0"
				DelayTimeSeconds="0.0s"
				DamageType="AUTO_CANNON"
				DamageFXType="JAPAN_AUTOCANNON"
				DeathType="NORMAL">	
				<DamageScalarDetails Scalar="30%">
					<Filter
					Rule="NONE">
						<IncludeThing>SovietFighterAircraft</IncludeThing>
						<IncludeThing>AlliedFighterAircraft</IncludeThing>
						<IncludeThing>JapanAntiInfantryVehicle</IncludeThing>
					</Filter>		
					</DamageScalarDetails>
				</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiVehicleVehicleTech3MeleeAttackWeapon"
		AttackRange="50.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
		DamageDealtAtSelfPosition="true"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		AcceptableAimDelta="90d">
        <Nuggets>
            <DamageNugget
				Damage="10.0"
				Radius="1.0"
				DamageType="MELEE"
				DamageFXType="JAPAN_MECHA"
				DeathType="EXPLODED"/>
            <MetaImpactNugget
					ShockWaveAmount="89"
					ShockWaveRadius="75.0"
					ShockWaveZMult="1.0"
					ShockWaveArc="135d"
					ForbiddenTargetObjectStatus="LEECHED_TARGET_ACTIVE"
					ForbiddenTargetModelCondition="STUNNED STUNNED_STANDING_UP STUNNED_FLAILING">
                <SpecialObjectFilter
                    Rule="ANY"
                    Include="INFANTRY">
                </SpecialObjectFilter>
            </MetaImpactNugget>
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="JapanAntiVehicleVehicleTech3BeamWeapon"
		AttackRange="150.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
		PreAttackFX="FX_JAP_KingOni_LaserChargeUp"
		FireFX="FX_JapanOniEyes"
    FireVeteranFX="FX_JapanOniEyes"
		FireSound="JAP_KingOni_LaserFire"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="10d"
		PreAttackType="PER_TARGET"
		ReAcquireDetailType="PRE_FIRE"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		PreAttackWeapon="JapanAntiVehicleVehicleTech3MeleeAttackWeapon">
		<PreAttackDelay
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
		<FiringDuration
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
		<ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<Nuggets>
			<DamageNugget
				Damage="175.0"
				Radius="0.0"
				DamageType="CANNON"
				DeathType="EXPLODED"/>
			<ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="101"/>
			<ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="102"/>
		</Nuggets>
	</WeaponTemplate>

  <WeaponTemplate
		id="JapanAntiVehicleVehicleTech3BeamWeapon_Veteran"
		AttackRange="150.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
		PreAttackFX="FX_JAP_KingOni_LaserChargeUp"
		FireFX="FX_JapanOniEyes_Vet"
    FireVeteranFX="FX_JapanOniEyes_Vet"
		FireSound="JAP_KingOni_LaserFire"
		RadiusDamageAffects="ENEMIES"
		AcceptableAimDelta="10d"
		PreAttackType="PER_TARGET"
		ReAcquireDetailType="PRE_FIRE"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		PreAttackWeapon="JapanAntiVehicleVehicleTech3MeleeAttackWeapon">
    <PreAttackDelay
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
    <FiringDuration
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
    <ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
    <Nuggets>
      <DamageNugget
				Damage="175.0"
				Radius="0.0"
				DamageType="CANNON"
				DeathType="EXPLODED"/>
      <ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="103"/>
      <ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="104"/>
    </Nuggets>
  </WeaponTemplate>

	<!-- the Range limits in the unit's Special Power determine the weapon range. -->
	<!-- the IdleAfterFiringDelaySeconds attribute sets the Vulnerable cooldown time -->
	<WeaponTemplate
		id="JapanAntiVehicleVehicleTech3RushAttackWeapon"
		AttackRange="30.0"
		IdleAfterFiringDelaySeconds="3s"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		PreAttackType="PER_SHOT"
        CanFireWhileMoving="false"
		InstantLoadClipOnActivate="true"
		FireFX="FX_None"
        FireVeteranFX="FX_None">
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
        <ClipReloadTime
			MinSeconds="5.0s"
			MaxSeconds="5.0s" />
		<Nuggets>
            <DamageNugget
				Damage="50.0"
				Radius="75.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_RUSH"
				DeathType="EXPLODED">
                <SpecialObjectFilter
                        Rule="ANY"
                        Include="INFANTRY">
                </SpecialObjectFilter>
            </DamageNugget>
            <DamageNugget
				Damage="500.0"
				Radius="5.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_RUSH"
				DeathType="EXPLODED"/>
			<MetaImpactNugget
				ShockWaveAmount="89"
				ShockWaveRadius="75.0"
				ShockWaveTaperOff="1.0"
				ShockWaveZMult="1.0"
				ShockWaveArc="180d"
				ForbiddenTargetObjectStatus="LEECHED_TARGET_ACTIVE"
				ForbiddenTargetModelCondition="STUNNED STUNNED_STANDING_UP STUNNED_FLAILING">
				<SpecialObjectFilter
					Rule="ANY"					
					Include="INFANTRY">
				</SpecialObjectFilter>
			</MetaImpactNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- the Range limits in the unit's Special Power determine the weapon range. -->
	<!-- the IdleAfterFiringDelaySeconds attribute sets the Vulnerable cooldown time -->
	<WeaponTemplate
		id="JapanAntiStructureShipWeaponRushAttackWeapon"
		AttackRange="100.0"
		IdleAfterFiringDelaySeconds="3s"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		PreAttackType="PER_SHOT"
        CanFireWhileMoving="false"
		FireFX="FX_None"
        FireVeteranFX="FX_None">
        <ClipReloadTime
			MinSeconds="5.0s"
			MaxSeconds="5.0s" />
		<Nuggets>
            <DamageNugget
				Damage="500.0"
				Radius="5.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_RUSH"
				DeathType="EXPLODED"/>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>	

	<WeaponTemplate
	id="JapanAntiVehicleShipTorpedo"
	AttackRange="150.0"
	WeaponSpeed="250"
	FireSound="JAP_NaginataCruiser_TorpedoFire"
	CanFireWhileMoving="true"
	ClipSize="2"
    Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
	AcceptableAimDelta="20d"
	RequiredAntiMask="ANTI_WATER ANTI_STRUCTURE ANTI_SUBMERGED"
	ForbiddenAntiMask="ANTI_GROUND" >
		<FiringDuration
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<ProjectileNugget
				id="JapanAntiVehicleShipTorpedoProjectileNugget"
				ProjectileTemplate="JapanAntiVehicleShipTorpedoProjectile"
				WarheadTemplate="JapanAntiVehicleShipTorpedoWarhead">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="JapanAntiVehicleShipTorpedoProjectile_Veteran"/>
      </ProjectileNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>
	
	<!-- This weapon is used specifically to target bridges -->
	<WeaponTemplate
	id="JapanAntiVehicleShipTorpedoForBridges"
	inheritFrom="JapanAntiVehicleShipTorpedo"
	RequiredAntiMask="ANTI_STRUCTURE"
	ForbiddenAntiMask="ANTI_SUBMERGED">
		<Nuggets>
			<ProjectileNugget
				id="JapanAntiVehicleShipTorpedoProjectileNugget">
				<SpecialObjectFilter
					Rule="ANY"
					Include="BRIDGE_SEGMENT BRIDGE" />
      		</ProjectileNugget>
		</Nuggets>
	</WeaponTemplate>	

	<WeaponTemplate
		id="JapanAntiVehicleShipTorpedoWarhead"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_STRUCTURE ANTI_SUBMERGED"
        Flags="NOT_ATTRACTED_BY_MAGNETS">
        <Nuggets>
            <DamageNugget
				Damage="60.0"
				Radius="10.0"
				DamageType="CONCUSSIVE"
        DamageFXType="JAPAN_TORPEDO"
				DeathType="EXPLODED" />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="JapanAntiVehicleShipTorpedoSpread"
		WeaponSpeed="150.0"
		AttackRange="100000.0"
		CanFireWhileMoving="true"
        Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_STRUCTURE ANTI_SUBMERGED"
		ForbiddenAntiMask="ANTI_GROUND" >
        <FiringDuration
			MinSeconds="1s"
			MaxSeconds="1s" />
        <Nuggets>
            <!-- The right most torpedo-->
             <ProjectileNugget
				ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"
                WarheadTemplate="JapanAntiVehicleShipTorpedoSpreadWarhead">
                <AttackOffset x="2298.1" y="-1928.3"/>
			<VeterancyProjectiles
                  VeterancyLevel="HEROIC"
                  ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"/>
            </ProjectileNugget>
            <!-- The middle right torpedo-->
            <ProjectileNugget
				ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"
				WarheadTemplate="JapanAntiVehicleShipTorpedoSpreadWarhead">
                <AttackOffset x="2819.0" y="-1026.0"/>
			<VeterancyProjectiles
                  VeterancyLevel="HEROIC"
                  ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"/>
            </ProjectileNugget>
            <!-- The center torpedo-->
            <ProjectileNugget
				ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"
				WarheadTemplate="JapanAntiVehicleShipTorpedoSpreadWarhead">
                <AttackOffset x="3000.0" y="0.0"/>
			<VeterancyProjectiles
                  VeterancyLevel="HEROIC"
                  ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"/>
            </ProjectileNugget>
            <!-- The middle left torpedo-->
            <ProjectileNugget
				ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"
				WarheadTemplate="JapanAntiVehicleShipTorpedoSpreadWarhead">
                <AttackOffset x="2819.0" y="1026.0"/>
			<VeterancyProjectiles
                  VeterancyLevel="HEROIC"
                  ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"/>
            </ProjectileNugget>
            <!-- The left most torpedo-->
            <ProjectileNugget
				ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"
				WarheadTemplate="JapanAntiVehicleShipTorpedoSpreadWarhead">
                <AttackOffset x="2298.1" y="1928.3"/>
			<VeterancyProjectiles
                  VeterancyLevel="HEROIC"
                  ProjectileTemplate="JapanAntiVehicleShipTorpedoSpreadProjectile"/>
            </ProjectileNugget>
            <InformTargetNugget />
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="JapanAntiVehicleShipTorpedoSpreadWarhead"
		AttackRange="100000.0"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_WATER ANTI_STRUCTURE ANTI_SUBMERGED"
		ForbiddenAntiMask="ANTI_GROUND" >
		<Nuggets>
			<DamageNugget
				Damage="150.0"
				Radius="15.0"
				DamageType="CONCUSSIVE"
				DamageFXType="JAPAN_TORPEDO"
				DeathType="EXPLODED"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiStructureShipWeapon"
		AttackRange="750.0"
		MinimumAttackRange="200"
		WeaponSpeed="750"
		ScatterRadius="50"		
		FireSound="JAP_ShogunBattleship_WeaponFire"
		FireFX="FX_JapanAntiStructureGunFire"
		FireVeteranFX="FX_JapanAntiStructureGunFire_Vet"
		RadiusDamageAffects="ENEMIES"
		CanFireWhileMoving="true"
		ClipSize="3"
		ReAcquireDetailType="PRE_FIRE"
		Flags="RELOAD_WHEN_ATTACK_STOPS FORCE_EMPTY_ENTIRE_CLIP"
		ShotsPerBarrel="1"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		WeaponRecoil="1d"
		AcceptableAimDelta="1d"
		RevealShroudOnFire="true">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="7.0s"
			MaxSeconds="8.0s"
		/>
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiStructureShipWeaponProjectile"
				WarheadTemplate="JapanAntiStructureShipWeaponWarhead">
				<VeterancyProjectiles
					VeterancyLevel="HEROIC"
					ProjectileTemplate="JapanAntiStructureShipWeaponProjectileVeteran"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="100.0"
				Suppression="100"
				DurationSeconds="5s" 
			/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiStructureShipWeaponWarhead"
		ProjectileCollidesWith = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_STRUCTURE ANTI_WATER ANTI_GROUND"
		Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Damage="150.0"
				Radius="15.0"
				DamageTaperOff="0.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_CANNON"
				DeathType="NORMAL"> 
			<DamageScalarDetails Scalar= "50%">
					<Filter
						Rule="ALL"
						Relationship="ALLIES" />
			</DamageScalarDetails>	
		</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

	
		<WeaponTemplate
		id="DefensiveTechStructureWeapon"
		AttackRange="300.0"
		MinimumAttackRange="100"
		WeaponSpeed="1000"
		FireFX="FX_Allied_NavyTech1Gun"
		FireVeteranFX="FX_Allied_NavyTech1GunHeroic"
		RadiusDamageAffects="ENEMIES"
		CanFireWhileMoving="false"
		ClipSize="1"
		ReAcquireDetailType="PER_CLIP"
		Flags="RELOAD_WHEN_ATTACK_STOPS"
		ShotsPerBarrel="1"
		AimDirection="90d"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RevealShroudOnFire="true">
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="1.25s"
			MaxSeconds="1.25s"
		/>
		<Nuggets>
			<ProjectileNugget
				ProjectileTemplate="JapanAntiStructureShipWeaponProjectile"
				WarheadTemplate="DefensiveTechStructureWeaponWarhead">
        <VeterancyProjectiles
          VeterancyLevel="HEROIC"
          ProjectileTemplate="JapanAntiStructureShipWeaponProjectile"/>
			</ProjectileNugget>
			<SuppressionNugget
				Radius="100.0"
				Suppression="100"
				DurationSeconds="5s" 
			/>
		</Nuggets>
	</WeaponTemplate>
	
	
		<WeaponTemplate
		id="DefensiveTechStructureWeaponWarhead"
		ProjectileCollidesWith = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_STRUCTURE ANTI_WATER ANTI_GROUND"
		Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Damage="500.0"
				Radius="50.0"
				DamageTaperOff="0.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_CANNON"
				DeathType="NORMAL"
				/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanMinerGun"
		AttackRange="150.0"
		WeaponSpeed="999999.0"
		FiringLoopSound="JAP_OreCollector_WeaponFireLP"
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FireVeteranFX="FX_JapanAutoCannonMuzzleFlash_Vet"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true"
		ReAcquireDetailType="PER_CLIP"
		AcceptableAimDelta="20d"
		>
		<FiringDuration
			MinSeconds="0.13s"
			MaxSeconds="0.13s" />
		<Nuggets>
			<DamageNugget
				Damage="4.0"
				Radius="0.0"
				DelayTimeSeconds="0.0s"
				DamageType="AUTO_CANNON"
				DamageFXType="JAPAN_AUTOCANNON"
				DeathType="NORMAL" />
		</Nuggets>
	</WeaponTemplate>
  
  <!-- Used by the SkirmishAI to make the Japan Miner's secondary ability function as a weapon toggle. -->
  <WeaponTemplate
		id="BlankWeapon"
		AttackRange="0.0"
		>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanBaseDefenseAdvancedBeamWeapon"
		FireSound="JAP_WaveforceBattery_WeaponFireMS"
		FireFX="FX_JapanLaserFire"
		FireVeteranFX="FX_JapanLaserFire"
		AttackRange="350.0"
		WeaponSpeed="999999.0"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_SUBMERGED">
		<PreAttackDelay
			MinSeconds="3.0s"
			MaxSeconds="3.0s" />
		<ClipReloadTime
			MinSeconds="0.2s"
			MaxSeconds="0.2s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="1"/>
			<LineDamageNugget
				Damage="350.0"
				LineWidth="5.0"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_FORCE"
				DeathType="EXPLODED"
				UseDynamicLineLength="true"/>
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanAntiVehicleInfantryPlasmaBazooka"
		FireSound="JAP_Tankbuster_WeaponFire"
		FireFX="FX_JapanTankBusterFire"
		PreAttackFX="FX_JapanTankBusterCharge"
		FireVeteranFX="FX_JapanTankBusterFire_Vet"
		AttackRange="175.0"
		WeaponSpeed="999999.0"
		ClipSize="1"
		AcceptableAimDelta="10d"
		ReAcquireDetailType="POST_FIRE"
		PreAttackType="PER_TARGET"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="false"
		FinishAttackOnceStarted="true"  >
		<PreAttackDelay
			MinSeconds="0.13s"
			MaxSeconds="0.15s" />
		<FiringDuration
			MinSeconds="0.50s"
			MaxSeconds="0.54s" />
		<ClipReloadTime
			MinSeconds="0.65s"
			MaxSeconds="1.05s" />
		<Nuggets>
      <!-- if you change the lifetime - see casey -->
			<ActivateLaserNugget
				Lifetime="0.5s" 
				LaserId="1"/>
			<DamageNugget
				id="DefaultDamageNugget"
				Damage="60.0"
				DamageType="ROCKET"
				DamageFXType="JAPAN_PLASMA"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanAntiVehicleInfantryPlasmaBazookaIFV"
		FireFX="FX_None"
		FireVeteranFX="FX_None"
		AttackRange="290.0"
		WeaponSpeed="999999.0"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ENEMIES"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		CanFireWhileMoving="true">
		<PreAttackDelay
			MinSeconds="0.0s"
			MaxSeconds="0.0s" />
		<ClipReloadTime
			MinSeconds="0.5s"
			MaxSeconds="0.5s" />
		<Nuggets>
			<ActivateLaserNugget
				Lifetime="1s"
				LaserId="1"/>
			<DamageNugget
				Damage="100.0"
				DamageType="ROCKET"
				DamageFXType="JAPAN_PLASMA"
				DeathType="NORMAL"/>
		</Nuggets>
	</WeaponTemplate>

	<!-- player power weapons for Emperor's Rage (resolve) level 1. -->
	<WeaponTemplate
		id="JapanEmperorsResolveWeapon_L1"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="=$EMPERORS_RESOLVE_AFFECTS">
        <Nuggets>
            <WeaponOCLNugget
				WeaponOCL="OCL_JapanEmperorsResolveEffect_L1_Small"
				TargetAsPrimaryObject="true">
                <SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY">
                    <IncludeThing>SovietScoutVehicle</IncludeThing>
                </SpecialObjectFilter>
            </WeaponOCLNugget>
            <WeaponOCLNugget
				WeaponOCL="OCL_JapanEmperorsResolveEffect_L1_Medium"
				TargetAsPrimaryObject="true">
                <SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE">
                    <ExcludeThing>SovietScoutVehicle</ExcludeThing>
                </SpecialObjectFilter>
            </WeaponOCLNugget>
        </Nuggets>
    </WeaponTemplate>
    <WeaponTemplate
		id="PlayerPowerJapanEmperorsResolveWeapon_L1"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="=$EMPERORS_RESOLVE_AFFECTS">
		<Nuggets>
			<FireOnObjectsNugget
				Radius="=$JAPAN_EMPERORS_RAGE_RADIUS_LEVEL_1"
				FireOnVictimObject="true"
				Weapon="JapanEmperorsResolveWeapon_L1">
				<Filter
					Rule="ALL"
					Exclude="STRUCTURE"
					StatusBitFlagsExclude="=$EMPERORS_RAGE_TARGET_OBJSTATUS_TO_EXCLUDE"/>
			</FireOnObjectsNugget>
		</Nuggets>
	</WeaponTemplate>

	<!-- player power weapons for Emperor's Rage (resolve) level 2. -->
	<WeaponTemplate
		id="JapanEmperorsResolveWeapon_L2"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="=$EMPERORS_RESOLVE_AFFECTS">
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_JapanEmperorsResolveEffect_L2_Small"
				TargetAsPrimaryObject="true">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
				</SpecialObjectFilter>
			</WeaponOCLNugget>
			<WeaponOCLNugget
				WeaponOCL="OCL_JapanEmperorsResolveEffect_L2_Medium"
				TargetAsPrimaryObject="true">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</WeaponOCLNugget>
		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
		id="PlayerPowerJapanEmperorsResolveWeapon_L2"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="=$EMPERORS_RESOLVE_AFFECTS">
        <Nuggets>
            <FireOnObjectsNugget
				Radius="=$JAPAN_EMPERORS_RAGE_RADIUS_LEVEL_2"
				FireOnVictimObject="true"
				Weapon="JapanEmperorsResolveWeapon_L2">
                <Filter
					Rule="ALL"
					Exclude="STRUCTURE"
					StatusBitFlagsExclude="=$EMPERORS_RAGE_TARGET_OBJSTATUS_TO_EXCLUDE"/>
            </FireOnObjectsNugget>
        </Nuggets>
    </WeaponTemplate>

    <!-- player power weapons for Emperor's Rage (resolve) level 3. -->
    <WeaponTemplate
		id="JapanEmperorsResolveWeapon_L3"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="=$EMPERORS_RESOLVE_AFFECTS">
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_JapanEmperorsResolveEffect_L3_Small"
				TargetAsPrimaryObject="true">
				<SpecialObjectFilter
					Rule="ANY"
					Include="INFANTRY">
					<IncludeThing>SovietScoutVehicle</IncludeThing>
				</SpecialObjectFilter>
			</WeaponOCLNugget>
			<WeaponOCLNugget
				WeaponOCL="OCL_JapanEmperorsResolveEffect_L3_Medium"
				TargetAsPrimaryObject="true">
				<SpecialObjectFilter
					Rule="ANY"
					Include="VEHICLE">
					<ExcludeThing>SovietScoutVehicle</ExcludeThing>
				</SpecialObjectFilter>
			</WeaponOCLNugget>
		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
		id="PlayerPowerJapanEmperorsResolveWeapon_L3"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="=$EMPERORS_RESOLVE_AFFECTS">
		<Nuggets>
			<FireOnObjectsNugget
				Radius="=$JAPAN_EMPERORS_RAGE_RADIUS_LEVEL_3"
				FireOnVictimObject="true"
				Weapon="JapanEmperorsResolveWeapon_L3">
				<Filter
					Rule="ALL"
					Exclude="STRUCTURE"
					StatusBitFlagsExclude="=$EMPERORS_RAGE_TARGET_OBJSTATUS_TO_EXCLUDE"/>
			</FireOnObjectsNugget>
		</Nuggets>
	</WeaponTemplate>

	
	
	
	
	

	<!-- the weapon fired by a player to initially irratiate a target. -->
	<WeaponTemplate
		id="PlayerPowerIrradiateTargetWeapon"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS">
		<!-- FireFX="FX_SOV_ToxicCorrosionLaunch" no worky -->
		<PreAttackDelay
			MinSeconds="0.0s"
			MaxSeconds="0.0s" />
		<Nuggets>
			<TintObjectsNugget
				PreColorTime="1s"
				SustainedColorTime="99999999.0s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
				<Color R="1.58" G="1.98" B="1.19"/>
      </TintObjectsNugget>
      <DOTNugget
				id="DefaultDamageNugget"
				Damage="10"
				DamageInterval="0.1s"
				DamageDuration="99999999s"
				DamageType="RADIATION"
				DamageFXType="RADIATION"
				DeathType="IRRADIATED"
				RemoveIfHealed="true"
			/>
			<WeaponOCLNugget
				WeaponOCL="OCL_IrradiatedTargetSpawnedParasite"
				TargetAsPrimaryObject="true"
			/>
		</Nuggets>
	</WeaponTemplate>

	<!-- one shot weapon fired when an irradiated (aka toxic corrosion) target is killed. -->
	<WeaponTemplate
		id="Weapon_IrradiatedTargetDieOneShot"
	    FireFX="FX_SovIrradiationDecal" 
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS">
		<!--     	FireSound="SOV_ToxicCorrosion_Launch" -->
        <Nuggets>
            <DamageNugget
				Damage="5000"
				Radius="80"
				DamageType="RADIATION"
				DamageFXType="RADIATION"
				DeathType="IRRADIATED"
			/>
            <TintObjectsNugget
				Radius="80"
				PreColorTime="1s"
				SustainedColorTime="2s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
                <Color R="1.58" G="1.98" B="1.19"/>
            </TintObjectsNugget>
        </Nuggets>
    </WeaponTemplate>

    <!-- weapon fired repeatedly by the desolator field left when an irradiated (aka toxic corrosion) target is killed. -->
    <WeaponTemplate
		id="Weapon_IrradiatedTargetDieUpdate"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS">
		<Nuggets>
			<DamageNugget
				Damage="20"
				Radius="80"
				DamageType="RADIATION"
				DamageFXType="RADIATION"
				DeathType="IRRADIATED">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="DRONE" />
			</DamageNugget>
			<TintObjectsNugget
				Radius="80"
				PreColorTime="1s"
				SustainedColorTime="2s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
				<Color R="1.58" G="1.98" B="1.19"/>
			</TintObjectsNugget>
		</Nuggets>
	</WeaponTemplate>

	<!-- field left by bombs dropped by the desolator bomber -->
	<WeaponTemplate
		id="Weapon_DesolatorBombFieldUpdate"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS">
        <Nuggets>
        <DamageContainedNugget
					MaxUnitsToDamage="1"
					WindowBlastFX="FX_None"
					Damage="10"
					Radius="150"
					DamageType="RADIATION"
					DamageFXType="RADIATION"
					DeathType="IRRADIATED">
				<DamageObjectFilter
					Rule="NONE"
					Include="INFANTRY" />
				</DamageContainedNugget>
			<DamageNugget
					Damage="20"
				Radius="150"
				DamageType="RADIATION"
				DamageFXType="RADIATION"
				DeathType="IRRADIATED">
				<SpecialObjectFilter
					Rule="ALL"
					Exclude="DRONE" />
			</DamageNugget>
            <TintObjectsNugget
				Radius="150"
				PreColorTime="1s"
				SustainedColorTime="2s"
				PostColorTime="1s"
				Frequency="0"
				Amplitude="0">
                <Color R="1.58" G="1.98" B="1.19"/>
            </TintObjectsNugget>
        </Nuggets>
    </WeaponTemplate>

    <!-- player power weapon for production kickbacks. -->
    <WeaponTemplate
		id="PlayerPowerProductionKickbacksWeapon"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS">
	<!-- no worky         FireSound="SOV_CashBounty_Cast" -->
		<PreAttackDelay
			MinSeconds="0.0s"
			MaxSeconds="0.0s" />
		<Nuggets>
			<FireOnObjectsNugget
				Radius="100.0"
				FireOnVictimObject="true"
				PartitionFilterTestType="CIRCLE"
				Weapon="PlayerPowerProductionKickbacksWeapon_Individual">
				<Filter
					Rule="ANY"
					Include="INFANTRY VEHICLE HUGE_VEHICLE STRUCTURE"/>
			</FireOnObjectsNugget>
		</Nuggets>
	</WeaponTemplate>
	<WeaponTemplate
		id="PlayerPowerProductionKickbacksWeapon_Individual"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS">
	<!-- no worky         FireSound="SOV_CashBounty_Cast" -->
		<PreAttackDelay
			MinSeconds="0.0s"
			MaxSeconds="0.0s" />
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_ProductionKickbacksHelper"
				TargetAsPrimaryObject="true"
			/>
		</Nuggets>
	</WeaponTemplate>


	<WeaponTemplate
		id="PlayerPowerPointDefenseDronesWeapon"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_WATER"
		RadiusDamageAffects="ALLIES">
        <PreAttackDelay
			      MinSeconds="0.0s"
			      MaxSeconds="0.0s" />
        <Nuggets>
          <FireOnObjectsNugget
             Radius="100.0"
             FireOnVictimObject="true"
             PartitionFilterTestType="CIRCLE"
             Weapon="PlayerPowerPointDefenseDronesWeapon_Individual">
             <!-- this objfilter must be the same as the one in the SpecialPower_PointDefenseDrones special power template -->
             <Filter
					      Rule="ANY"
					      Relationship="ALLIES"
					      Include="=$POINT_DEFENSE_DRONE_INCLUDE_KINDOF"
					      Exclude="=$POINT_DEFENSE_DRONE_EXCLUDE_KINDOF"
					      StatusBitFlagsExclude="=$POINT_DEFENSE_DRONE_EXCLUDE_OBJECTSTATUS">
                <ExcludeThing>JapanPointDefenseDrone</ExcludeThing>
             </Filter>
          </FireOnObjectsNugget>
        
        </Nuggets>
    </WeaponTemplate>

    <WeaponTemplate
		id="PlayerPowerPointDefenseDronesWeapon_Individual"
		AttackRange="999999"
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_GROUND ANTI_WATER"
		RadiusDamageAffects="ALLIES">
		<PreAttackDelay
			MinSeconds="0.0s"
			MaxSeconds="0.0s" />
		<Nuggets>
			<WeaponOCLNugget
				WeaponOCL="OCL_PointDefenseDrone"
				TargetAsPrimaryObject="true">
				
			        <SpecialObjectFilter
					      Rule="ANY"
					      Relationship="ALLIES"
					      Include="=$POINT_DEFENSE_DRONE_INCLUDE_KINDOF"
					      Exclude="=$POINT_DEFENSE_DRONE_EXCLUDE_KINDOF"
					      StatusBitFlagsExclude="=$POINT_DEFENSE_DRONE_EXCLUDE_OBJECTSTATUS">
                <ExcludeThing>JapanPointDefenseDrone</ExcludeThing>
             </SpecialObjectFilter>	
				
			</WeaponOCLNugget>
		</Nuggets>
	</WeaponTemplate>

	<!-- The Japan Final Squadron -->
	<WeaponTemplate
		id="JapanFinalSquadronAircraftGun"
		AttackRange="500.0"
		WeaponSpeed="999999.0"
		FireFX="FX_JapanAutoCannonMuzzleFlash"
		FiringLoopSound="JAP_FinalSquadron_MGFireLP"		
		ClipSize="100"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER ANTI_AIRBORNE_VEHICLE"
		CanFireWhileMoving="true"
		ReAcquireDetailType="PRE_FIRE"
		AcceptableAimDelta="30d"
		>
		<FiringDuration
			MinSeconds="0.25s"
			MaxSeconds="0.25s" />
		<ClipReloadTime
			MinSeconds="0.1s"
			MaxSeconds="0.1s" />
		<Nuggets>
		<DamageNugget
				Damage="5.0"
				Radius="1.0"
				DamageTaperOff="0"
				DamageType="AUTO_CANNON"
				DeathType="EXPLODED" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="JapanFinalSquadronAircraftKamikazeAttack"
		AttackRange="99999.0"
		WeaponSpeed="300"
		ProjectileSelf="true"
		PreAttackType="PER_CLIP"
		ClipSize="1"
		AcceptableAimDelta="180d"
		RadiusDamageAffects="SELF ALLIES ENEMIES NEUTRALS"
		AutoReloadsClip="NONE"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS IGNORE_ENCLOSURE_CHECK"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ContactWeapon="true">
		<FiringDuration
			MinSeconds="10.25s"
			MaxSeconds="10.25s" />
		<ClipReloadTime
			MinSeconds="1.1s"
			MaxSeconds="1.1s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="JapanFinalSquadronAircraftKamikazeWarhead"/>
		</Nuggets>
	</WeaponTemplate>
	
	<WeaponTemplate
		id="JapanFinalSquadronAircraftKamikazeWarhead"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		HitStoredTarget="true">
		<Nuggets>
			<DamageNugget
				Radius="0"
				OnlyKillOwnerWhenTriggered="true"
				DamageType="UNRESISTABLE"
				DamageFXType="JAPAN_KAMIKAZE"
				DeathType="SUICIDED" />
			<!-- -->

			<DamageNugget
				Damage="100.0"
				DamageTaperOff="50"
        
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_KAMIKAZE"
				Radius="20"
				DeathType="EXPLODED"
				RadiusAffectsBridges="true">
				<!--ForbiddenUpgrade>Upgrade_JapanEnhancedKamikaze</ForbiddenUpgrade-->
				
				<SpecialObjectFilter
					Rule="ALL">
					<ExcludeThing>JapanFinalSquadronAircraft</ExcludeThing>
				</SpecialObjectFilter>
				
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
					</Filter>		
					</DamageScalarDetails>	
				
			</DamageNugget>

			<!-- Enhanced Kamikaze Special power weapon -->
			<DamageNugget
				Damage="150.0"
				DamageTaperOff="50"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_KAMIKAZE"
				Radius="30"
				DeathType="EXPLODED"
				RadiusAffectsBridges="true">
				<SpecialObjectFilter
					Rule="ALL">
					<ExcludeThing>JapanFinalSquadronAircraft</ExcludeThing>
				</SpecialObjectFilter>
				
				<RequiredUpgrade>Upgrade_JapanEnhancedKamikaze</RequiredUpgrade>
				
				<DamageScalarDetails Scalar= "50%">
					<Filter
					Rule="NONE">
						<IncludeThing>AlliedMiner</IncludeThing>
						<IncludeThing>SovietMiner</IncludeThing>
						<IncludeThing>JapanMiner</IncludeThing>
						<IncludeThing>AlliedRefinery</IncludeThing>
						<IncludeThing>SovietRefinery</IncludeThing>
						<IncludeThing>JapanRefinery</IncludeThing>
					</Filter>		
					</DamageScalarDetails>		
					
			</DamageNugget>

			<MetaImpactNugget
				ShockWaveAmount="50"
				ShockWaveRadius="20.0"
				ShockWaveTaperOff="1.0"
				ShockWaveZMult="1.0"
				ShockWaveArc="5d"
				ForbiddenTargetObjectStatus="LEECHED_TARGET_ACTIVE"
				ForbiddenTargetModelCondition="STUNNED STUNNED_STANDING_UP STUNNED_FLAILING"/>
		</Nuggets>
	</WeaponTemplate>
	
	<!-- The Explode on Death weapon used in Enhanced Kamikaze -->
	<WeaponTemplate
		id="EnhancedKamikazeDeathPlayerPowerWeapon"
		RadiusDamageAffects="ENEMIES NEUTRALS SELF"
		FireFX="FX_JapanEnhancedKamikaze"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Radius="0"
				OnlyKillOwnerWhenTriggered="true"
				DamageType="UNRESISTABLE"
				DamageFXType="JAPAN_KAMIKAZE"
				DeathType="SUICIDED" />
			<!-- -->
			<DamageNugget
        			id="DefaultDamageNugget" 
				Damage="200.0"
				DamageTaperOff="100"
				DamageType="EXPLOSIVE"
				DamageFXType="JAPAN_KAMIKAZE"
				Radius="50"
				DeathType="EXPLODED">
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>


	<!-- Neutral Faction Weapons -->
	<WeaponTemplate
		id="NeutralDefensiveStructureCannon"
				
		AttackRange="1000.0"
		MinimumAttackRange="25.0"
		MinTargetPitch="-50d"
		MaxTargetPitch="50d"
		WeaponSpeed="1000"
		MinWeaponSpeed="5000"
		MaxWeaponSpeed="5000"
		FireSound="ALL_Guardian_WeaponFire"		
		FireFX="FX_AlliedTankGun"
		FireVeteranFX="FX_AlliedTankGun_Vet"
		WeaponRecoil="0d"
		RadiusDamageAffects="ALLIES ENEMIES"
		CanFireWhileMoving="false"
		ClipSize="5"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE"
		ReAcquireDetailType="PER_CLIP"
		ShotsPerBarrel="1"
		ProjectileCollidesWith="ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
 		>
		<FiringDuration
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
		<ClipReloadTime
			MinSeconds="3s"
			MaxSeconds="3s" />
		<Nuggets>
			<ProjectileNugget
				WarheadTemplate="NeutralDefensiveStructureCannonWarhead"
				ProjectileTemplate="NeutralDefensiveStructureProjectile" />
			<SuppressionNugget
				Radius="50.0"
				Suppression="25"
				DurationSeconds="5s" />
		</Nuggets>
	</WeaponTemplate>

	<WeaponTemplate
		id="NeutralDefensiveStructureCannonWarhead"
		
		ProjectileCollidesWith  = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS"
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="500.0"
				DelayTimeSeconds="0.0s"
				DamageType="CANNON"
				DamageFXType="NEUTRAL_CANNON"
				DeathType="NORMAL"
				Radius="50.0" />
		</Nuggets>
	</WeaponTemplate>
  
  <WeaponTemplate
      id="ExplodingBarrelWeapon"
      RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"
	  Flags="NOT_ATTRACTED_BY_MAGNETS" 
      FireFX="FX_None">
    <Nuggets>
      <DamageNugget
				Damage="1000"
				Radius="100"
				DamageType="GRENADE"
				DeathType="NORMAL">
      </DamageNugget>
    </Nuggets>
  </WeaponTemplate>

	<!-- Campaign Mission S8 -->
	<WeaponTemplate
		id="EI_EasterIslandHeadDefenseTeslaGun"
		inheritFrom="SovietBaseDefenseAdvancedTeslaGun"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="6">
		<PreAttackDelay
			MinSeconds="3.0s"
			MaxSeconds="3.0s" />
		<Nuggets>
			<DamageNugget
				Damage="300.0"
				DamageType="TESLA"
				DamageFXType="SOVIET_TESLA"
				DeathType="ELECTROCUTED"
				DelayTimeSeconds="0.7s"/>
		</Nuggets>
	</WeaponTemplate>

	<!-- Campaign Mission S7 -->
	<WeaponTemplate
		id="JapanEmperorMechaBeamWeapon"
		AttackRange="150.0"
		CanFireWhileMoving="true"
		WeaponSpeed="999999.0"
		PreAttackFX="FX_JAP_KingOni_LaserChargeUp"
    FireFX="FX_JapanOniEyes"
		FireSound="JAP_KingOni_LaserFire"
		RadiusDamageAffects="ENEMIES NEUTRALS"
		AcceptableAimDelta="10d"
		PreAttackType="PER_SHOT"
		ReAcquireDetailType="PRE_FIRE"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="1"
		AutoReloadsClip="AUTO"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS">
    <PreAttackDelay
			MinSeconds="0.75s"
			MaxSeconds="0.75s" />
    <ClipReloadTime
			MinSeconds="1.0s"
			MaxSeconds="1.0s" />
    <Nuggets>
      <DamageNugget
				Damage="400.0"
				Radius="0.0"
				DamageType="CANNON"
				DamageFXType="JAPAN_MECHA"
				DeathType="EXPLODED"/>
      <ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="1"/>
      <ActivateLaserNugget
				Lifetime="0.75s"
				LaserId="2"/>
    </Nuggets>
  </WeaponTemplate>

	<!-- the Range limits in the unit's Special Power determine the weapon range. -->
	<!-- the IdleAfterFiringDelaySeconds attribute sets the Vulnerable cooldown time -->
	<WeaponTemplate
		id="JapanEmperorMechaRushAttackWeapon"
		
		AttackRange="999999.0"
		IdleAfterFiringDelaySeconds="3s"
		RadiusDamageAffects="ENEMIES"
		Flags="ATTACK_NEEDS_LINE_OF_SIGHT NOT_ATTRACTED_BY_MAGNETS IGNORE_WALL_RELATIONSHIP"
		RequiredAntiMask="ANTI_GROUND ANTI_STRUCTURE ANTI_WATER"
		ClipSize="=$UNLIMITED_CLIP_SIZE"
		AutoReloadsClip="AUTO"
		PreAttackType="PER_SHOT"
		FireFX="FX_None">
		<Nuggets>
			<DamageNugget
				Damage="6000.0"
				Radius="5.0"
				DamageType="CRUSH"
				DamageFXType="JAPAN_MECHARUSH"
				DeathType="EXPLODED"/>
			<MetaImpactNugget
				ShockWaveAmount="89"
				ShockWaveRadius="75.0"
				ShockWaveTaperOff="1.0"
				ShockWaveZMult="1.0"
				ShockWaveArc="180d"
				ForbiddenTargetObjectStatus="LEECHED_TARGET_ACTIVE"
				ForbiddenTargetModelCondition="STUNNED STUNNED_STANDING_UP STUNNED_FLAILING">
				<SpecialObjectFilter
					Rule="ANY"
					Relationship="ENEMIES"
					Include="INFANTRY">
				</SpecialObjectFilter>
			</MetaImpactNugget>
			<InformTargetNugget />
		</Nuggets>
	</WeaponTemplate>

	
	
	<WeaponTemplate
		id="BombCrateWarhead"		
		ProjectileCollidesWith  = "ALLIES ENEMIES NEUTRAL STRUCTURES WALLS"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS" 
        Flags="NOT_ATTRACTED_BY_MAGNETS" 
		RequiredAntiMask="ANTI_WATER ANTI_GROUND ANTI_STRUCTURE">
		<Nuggets>
			<DamageNugget
				Damage="450.0"
				Radius="50"
				DamageType="EXPLOSIVE"
				DamageFXType="ALLIED_PRESISIONBOMB"
				DeathType="NORMAL"
				/>		
			<MetaImpactNugget
				ShockWaveAmount="89.0"
				ShockWaveRadius="50.0"
				ShockWaveZMult="1.50" />
		</Nuggets>
	</WeaponTemplate>	

	<!-- kill self so we trigger our FireWeaponWhenDead, which handles AOE damage -->
	<WeaponTemplate
		id="JapanBalloonBombSuicideWeapon"
		RadiusDamageAffects="ALLIES ENEMIES NEUTRALS SELF"
		RequiredAntiMask="ANTI_AIRBORNE_VEHICLE ANTI_AIRBORNE_INFANTRY"
		Flags="NOT_ATTRACTED_BY_MAGNETS">
		<Nuggets>
			<DamageNugget
				Damage="99999"
				Radius="0"
				OnlyKillOwnerWhenTriggered="true"
				DamageType="UNRESISTABLE"
				DamageFXType="JAPAN_BOMB"
				DeathType="SUICIDED">
				<SpecialObjectFilter
					Rule="ANY"
					Include="AIRCRAFT"
					Exclude="NO_COLLIDE">
					<ExcludeThing>JapanBalloonBomb</ExcludeThing>
					<ExcludeThing>JapanRisingBalloon</ExcludeThing>
					<ExcludeThing>JapanFallingBalloonBomb</ExcludeThing>
				</SpecialObjectFilter>
			</DamageNugget>
		</Nuggets>
	</WeaponTemplate>

</AssetDeclaration>

