-----------------------------------------------------------------------------
--  File     : /units/UAL0204/UAL0204_unit.bp
--
--  Author(s): EbolaSoup, Resin Smoker, Optimus Prime, Vissroid 
--
--  Summary  : Aeon T2 Sniper Bot 
--
--  Copyright © 2010 4DC_V0.8  All rights reserved.
-----------------------------------------------------------------------------
UnitBlueprint {
    Audio = {
        AmbientMove = Sound {
            Bank = 'UAL',
            Cue = 'UAL0303_Move_Loop',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        Destroyed = Sound {
            Bank = 'UALDestroy',
            Cue = 'UAL_Destroy_Land',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        EnhanceEnd = Sound {
            Bank = 'UnitsGlobal',
            Cue = 'GLB_Enhance_Stop',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        EnhanceFail = Sound {
            Bank = 'UnitsGlobal',
            Cue = 'GLB_Enhance_Fail',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        EnhanceLoop = Sound {
            Bank = 'UnitsGlobal',
            Cue = 'GLB_Enhance_Loop',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        EnhanceStart = Sound {
            Bank = 'UnitsGlobal',
            Cue = 'GLB_Enhance_Start',
            LodCutoff = 'UnitMove_LodCutoff',
        },         
        StartMove = Sound {
            Bank = 'UAL',
            Cue = 'UAL0303_Move_Start',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        StopMove = Sound {
            Bank = 'UAL',
            Cue = 'UAL0303_Move_Stop',
            LodCutoff = 'UnitMove_LodCutoff',
        },
        UISelection = Sound {
            Bank = 'Interface',
            Cue = 'Aeon_Select_Bot',
            LodCutoff = 'UnitMove_LodCutoff',
        },
    },
    Buffs = {
        Regen = {
            Level1 = 2,
            Level2 = 4,
            Level3 = 6,
            Level4 = 8,
            Level5 = 10,
        },
    },
    BuildIconSortPriority = 20,
    Categories = {
        'MODCONTENT4D', 
        'AEON',           
        'DIRECTFIRE',
        'BUILTBYTIER2FACTORY',
        'BUILTBYTIER3FACTORY',
        'LAND',
        'MOBILE',
        'OVERLAYDIRECTFIRE',        
        'OVERLAYOMNI',        
        'RECLAIMABLE',        
        'SELECTABLE',       
        'TECH2',                
        'VISIBLETORECON',
    },
    Defense = {       
        AirThreatLevel = 0,        
        ArmorType = 'Normal',
        EconomyThreatLevel = 0,         
        Health = 250,
        MaxHealth = 250,
        RegenRate = 1,
        SubThreatLevel = 0,
        SurfaceThreatLevel = 20, 
        ThreatLevel = 20,         
    },
    Description = 'Sniper Bot',
    Display = {
        Abilities = {
            '<LOC ability_customizable>Customizable',  
            '<LOC ability_personalstealth>Personal Stealth',                      
        },       
        AnimationWalk = '/mods/4DC_V0.8/units/UAL0204/ual0204_awalk.sca',
        AnimationWalkRate = 3.92, 
        Mesh = {
            IconFadeInZoom = 130,
            LODs = {
                {
                    MeshName = '/mods/4DC_V0.8/units/UAL0204/UAL0204_lod0.scm',
	                AlbedoName = '/mods/4DC_V0.8/units/UAL0204/UAL0204_Albedo.dds',
	                NormalsName = '/mods/4DC_V0.8/units/UAL0204/UAL0204_normalsTS.dds',
	                SpecularName = '/mods/4DC_V0.8/units/UAL0204/UAL0204_SpecTeam.dds',
	                LODCutoff = 215,
                    ShaderName = 'Aeon',	                
                },
            },
        },
        MovementEffects = {
            Land = {
                Effects = {
                    {
                        Bones = {
                            'Foot1',
                            'Foot2',
                            'Foot3',
                            'Foot4',                            
                        },
                        Offset = {
                            0,
                            0,
                            0,
                        },
                        Type = 'GroundKickup01',
                    },
                },
            },
        },
        PlaceholderMeshName = 'UXL0001',
        SpawnRandomRotation = true,
        UniformScale = 0.007,
    },
    Economy = {
        BuildCostEnergy = 2000,
        BuildCostMass = 350,
        BuildRate = 10,  -- T2 Engineer BuildRate           
        BuildTime = 2000,
        StorageEnergy = 2000,   -- Energy storage added to facilitate the smooth firing of the cannons          
        TeleportEnergyMod = 0.15,
        TeleportMassMod = 1,
        TeleportTimeMod = 0.01,
    },
    Enhancements = {
        Slots = {
            LCH = {
                name = '<LOC _LCH>',
                x = 50,
                y = -10,
            }, 
            RCH = {
                name = '<LOC _RCH>',
                x = -12,
                y = -10,
            },                   
        }, 
        EnhancedWeapon = {
            BuildCostEnergy = 667,
            BuildCostMass = 117,
            BuildTime = 667,
            Icon = 'cba',
            Name = 'Enhanced Weapon Range & Damage',
            Slot = 'LCH',
            UpgradeUnitAmbientBones = {
                'sniper_barrel',
            },
            UpgradeEffectBones = {
                'sniper_barrel',
            },          
        },
        EnhancedWeaponRemove = {
            BuildCostEnergy = 1,
            BuildCostMass = 1,
            BuildTime = 0.1,
            Icon = 'cba',
            Name = 'Remove Enhanced Weapon',
            Prerequisite = 'ShieldDisruptor',
            RemoveEnhancements = {
                'ShieldDisruptor',
                'ShieldDisruptorRemove',
            },    
            Slot = 'LCH',
        },                           
        EnhancedSensors = {
            BuildCostEnergy = 667,
            BuildCostMass = 117,
            BuildTime = 667,
            Icon = 'ess',
            Name = 'Enhanced Sensor System',
            Slot = 'RCH',
            UpgradeUnitAmbientBones = {
                'body',
            },
            UpgradeEffectBones = {
                'body',
            },
        },
        EnhancedSensorsRemove = {
            BuildCostEnergy = 1,
            BuildCostMass = 1,
            BuildTime = 0.1,
            Icon = 'ess',
            Name = 'Remove Enhanced Sensor System',
            Prerequisite = 'EnhancedSensors',
            RemoveEnhancements = {
                'EnhancedSensors',
                'EnhancedSensorsRemove',
            },
            Slot = 'RCH',
        },                              
    },       
    General = {
        Category = 'Direct Fire',
        Classification = 'RULEUC_MilitaryVehicle',
        CommandCaps = {
            RULEUCC_Attack = true,
            RULEUCC_CallTransport = true,
            RULEUCC_Capture = false,
            RULEUCC_Guard = true,
            RULEUCC_Move = true,
            RULEUCC_Nuke = false,
            RULEUCC_Patrol = true,
            RULEUCC_Reclaim = false,
            RULEUCC_Repair = false,
            RULEUCC_RetaliateToggle = true,
            RULEUCC_Stop = true,
            RULEUCC_Transport = false,
        },
        FactionName = 'Aeon',
        TechLevel = 'RULEUTL_Advanced',
        UnitName = 'Predator',
        UnitWeight = 1,
    },
    Intel = {
        FreeIntel = true,    
        VisionRadius = 26,
        OmniRadius = 13, 
        StealthStartsOn = true,
        RadarStealth = true,               
    },
    Interface = {
    	HelpText = '<LOC Unit_Description_4103>Predator',
    },    
    LifeBarHeight = 0.05,
    LifeBarOffset = 0.75,
    LifeBarSize = 0.75,
    Physics = {
        BankingSlope = 0,
        BuildOnLayerCaps = {
            LAYER_Air = false,
            LAYER_Land = true,
            LAYER_Orbit = false,
            LAYER_Seabed = false,
            LAYER_Sub = false,
            LAYER_Water = false,
        },
        DragCoefficient = 0.2,
        MaxAcceleration = 2.5,  
        MaxBrake = 2.5, 
        MaxSpeed = 5.0, 
        MaxSpeedReverse = 0,
        MaxSteerForce = 10,
        MeshExtentsX = 1,
        MeshExtentsY = 1.25,
        MeshExtentsZ = 1,
        MinSpeedPercent = 0,
        MotionType = 'RULEUMT_Land',
        TurnRadius = 2,
        TurnRate = 66,
    },
    SelectionSizeX = 0.7,
    SelectionSizeZ = 0.75,
    SelectionThickness = 0.6,
    SizeX = 0.6,
    SizeY = 1.1,
    SizeZ = 0.4,
    StrategicIconName = 'icon_bot2_directfire',
    ModIconName = '4dc',      
    StrategicIconSortPriority = 115,
    Transport = {
        CanFireFromTransport = false,
        TransportClass = 2,
    },
    Veteran = {
        Level1 = 6,
        Level2 = 12,
        Level3 = 18,
        Level4 = 24,
        Level5 = 30,
    },
    Weapon = {
-- Sniper Rifle with Shield Piercing Projectile
        {
            AboveWaterTargetsOnly = true,
            AimsStraightOnDisable = true,                 
            Audio = {
                BarrelLoop = Sound {
                    Bank = 'UAB',
                    Cue = 'UAB2302_Turret_Loop',
                    LodCutoff = 'WeaponBig_LodCutoff',
                },
                BarrelStart = Sound {
                    Bank = 'UAB',
                    Cue = 'UAB2302_Turret_Start',
                    LodCutoff = 'WeaponBig_LodCutoff',
                },
                Fire = Sound {
                    Bank = 'UALWeapon',
                    Cue = 'UAB2302_Artillery_Sonance',
                    LodCutoff = 'Weapon_LodCutoff',
                },
                MuzzleChargeStart = Sound {
                    Bank = 'UALWeapon',
                    Cue = 'UAB2302_Artillery_Son_Charge',
                    LodCutoff = 'Weapon_LodCutoff',
                },  
            },
            AutoInitiateAttackCommand = 'false',             
            BallisticArc = 'RULEUBA_None',
            CameraShakeDuration = 0.1,
            CameraShakeMax = 0.2, 
            CameraShakeMin = 0.1,
            CameraShakeRadius = 1,                        
            CollideFriendly = false,
            Damage = 720,           
            DamageRadius = 1,
            DamageType = 'Normal',
            DisplayName = 'Sniper Piercing',
            EnergyChargeForFirstShot = false,            
            EnergyDrainPerSecond = 250,
            EnergyRequired = 1000,                                       
            FireTargetLayerCapsTable = {
                Land = 'Land|Water',
            },
            FiringRandomnessWhileMoving = 0.5,
            FiringTolerance = 1,
            Label = 'Sniper_Piercing_Rifle',
            MaxRadius = 40,
            MinRadius = 5,
            MuzzleSalvoDelay = 0,
            MuzzleChargeDelay = 0,
            MuzzleSalvoSize = 1,
            MuzzleVelocity = 120,                           
            ProjectileId = '/mods/4DC_V0.8/projectiles/Sniper_Piercing/Sniper_Piercing_proj.bp',                     
            ProjectileLifetime = 1.0,
            ProjectilesPerOnFire = 1,
            RackBones = {
                {
                    MuzzleBones = {
                        'sniper_muzzle',
                    },
                    RackBone = 'sniper_barrel',
                },
            },
            RangeCategory = 'UWRC_DirectFire',
            RackFireTogether = false,
            RackRecoilDistance = -40.0,
            RackReloadTimeout = 0,
            RackSalvoChargeTime = 0,
            RackSalvoReloadTime = 0,
            RackSalvoSize = 1,
            RackSlavedToTurret = false,
            RateOfFire = 0.25,
            RenderFireClock = true,              
            TargetCheckInterval = 0.5,
            TargetPriorities = {
                'EXPERIMENTAL',   
                'MOBILE SHIELD',      
                'STRUCTURE DEFENSE',
                'TECH1 MOBILE',                
                'TECH2 MOBILE',
                'TECH3 MOBILE',                
                'ALLUNITS',  
            },
            TargetRestrictDisallow = 'UNTARGETABLE',
            TrackingRadius = 1.1,
            TurretBoneMuzzle = 'sniper_muzzle',
            TurretBonePitch = 'sniper_pitch',
            TurretBoneYaw = 'body',
            TurretDualManipulators = false,
            TurretPitch = 0,
            TurretPitchRange = 50,
            TurretPitchSpeed = 30,
            TurretYaw = 0,
            TurretYawRange = 180,
            TurretYawSpeed = 90,
            Turreted = true,
            WeaponCategory = 'Direct Fire',
        },                
    },
    Wreckage = {
        Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp',
        EnergyMult = 0,
        HealthMult = 0.9,
        MassMult = 0.9,
        ReclaimTimeMultiplier = 1,
        WreckageLayers = {
            Air = false,
            Land = true,
            Seabed = false,
            Sub = false,
            Water = false,
        },
    },
}