
##-------------------------------------------------------------------------
## Cybran units

##Shields

##structures
UnitBlueprint {
	Merge = true,
	BlueprintId="urb4202", #Cybran T2 Shield Gen lvl 1
	
	ModIconName = '4dc', 
	
	AddExtraCategories = {
		SHIELDRESIZER = true,
    },
    		
	Defense = {
		Shield = {
			ShieldSlider = true,
			AdjustEnergy = true,
		},
	},
}

UnitBlueprint {
	Merge = true,
	BlueprintId="urb4204", #Cybran T3 Shield Gen lvl 2
	
	ModIconName = '4dc', 
	
	AddExtraCategories = {
		SHIELDRESIZER = true,
    },
    		
	Defense = {
		Shield = {
			ShieldSlider = true,
			AdjustEnergy = true,
			AutomaticShield = true,
			TriggerDistance = 4,
		},
	},
}

UnitBlueprint {
	Merge = true,
	BlueprintId="urb4205", #Cybran T2 Shield Gen lvl 3
	
	ModIconName = '4dc', 
	
	AddExtraCategories = {
		SHIELDRESIZER = true,
    },
    		
	Defense = {
		Shield = {
			ShieldSlider = true,
			AdjustEnergy = true,
			AutomaticShield = true,
			TriggerDistance = 4,
		},
	},
}

UnitBlueprint {
	Merge = true,
	BlueprintId="urb4206", #Cybran T2 Shield Gen lvl 4
	
	ModIconName = '4dc', 
	
	AddExtraCategories = {
		SHIELDRESIZER = true,
    },
    		
	Defense = {
		Shield = {
			ShieldSlider = true,
			AdjustEnergy = true,
			AutomaticShield = true,
			TriggerDistance = 4,
		},
	},
}

UnitBlueprint {
	Merge = true,
	BlueprintId="urb4207", #Cybran T2 Shield Gen lvl 5
	
	ModIconName = '4dc', 
	
	AddExtraCategories = {
		SHIELDRESIZER = true,
    },
    		
	Defense = {
		Shield = {
			ShieldSlider = true,
			AdjustEnergy = true,
			AutomaticShield = true,
			TriggerDistance = 4,
		},
	},
}

##mobile units


-- Modified Version of Jon's mod courtesy of "Ruifung" (allows the brackman megalith to spawn in mission 5)
UnitBlueprint {
  Merge=true,
  BlueprintId="xrl0403",
    Weapon={
        {},
       {},
       {},
       {},
       {},
       {      
            AboveWaterTargetsOnly = true,
            ArtilleryShieldBlocks = true,
            Audio = {
                Fire = Sound {
                    Bank = 'XRL_Stream',
                    Cue = 'Op5_Megalith_Fire',
                    LodCutoff = 'Weapon_LodCutoff',
                },
            },
            BallisticArc = 'RULEUBA_HighArc',
            CollideFriendly = false,
            Damage = 0,
            DamageFriendly = false,
            DamageRadius = 0,
            DamageType = 'Normal',
            DisplayName = 'Brackman Hack Peg Launcher',
            FireTargetLayerCapsTable = {
                Land = 'Land|Water|Seabed',
                Water = 'Land|Water|Seabed',
            },
            FiringRandomness = 0,
            FiringTolerance = 0,
            Label = 'HackPegLauncher',
            MaxRadius = 30,
            MinRadius = 6,
            MuzzleSalvoDelay = 0,
            MuzzleSalvoSize = 1,
            MuzzleVelocity = 14,
            MuzzleVelocityReduceDistance = 28,
            ProjectileId = '/projectiles/CIFBrackmanHackPegs01/CIFBrackmanHackPegs01_proj.bp',
            ProjectilesPerOnFire = 5,
            RackBones = {
                {
                    MuzzleBones = {
                        'XRL0403',
                    },
                    RackBone = 'XRL0403',
                },
            },
            RackFireTogether = false,
            RackRecoilDistance = -1,
            RackReloadTimeout = 10,
            RackSalvoChargeTime = 0,
            RackSalvoReloadTime = 0,
            RackSalvoSize = 1,
            RackSlavedToTurret = false,
            RateOfFire = 0.03,
            SlavedToBody = true,
            SlavedToBodyArcRange = 40,
            TargetCheckInterval = 1,
            TargetPriorities = {
                'SPECIALHIGHPRI',
                'STRUCTURE DEFENSE',
                'SPECIALLOWPRI',
                'ALLUNITS',
            },
            TargetRestrictDisallow = 'UNTARGETABLE',
            TrackingRadius = 0,
            TurretBoneMuzzle = 'Missile_Muzzle',
            TurretBonePitch = 'Missile_Turret',
            TurretBoneYaw = 'Missile_Turret',
            TurretDualManipulators = false,
            TurretPitch = 45,
            TurretPitchRange = 90,
            TurretPitchSpeed = 70,
            TurretYaw = 0,
            TurretYawRange = 45,
            TurretYawSpeed = 70,
            Turreted = false,
            WeaponCategory = 'Artillery',
        },
    },
}

