Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #****************************************************************************
- #**
- #** File : /cdimage/units/UAB0301/UAB0301_script.lua
- #** Author(s): David Tomandl
- #**
- #** Summary : Aeon Land Factory Tier 3 Script
- #**
- #** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
- #****************************************************************************
- local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
- local UEL0001OLD = UEL0001
- UEL0001 = Class(UEL0001OLD) {
- GetHologramUnits = function(self)
- local OldHolograms = PrevUnit.GetHologramUnits(self)
- local MyHologram = { MyHologramTable = { UEF = { Tech3 = { Land = { WEL0302_HOLOGRAM }, }, }, }, }
- return table.merged(MyHologram, OldHolograms)
- end,
- CreateEnhancement = function(self, enh)
- UEL0001OLD.CreateEnhancement(self, enh)
- local bp = self:GetBlueprint().Enhancements[enh]
- if enh =='HeavyAntiMatterCannon' then
- if not Buffs['UEFACUdmgMod'] then
- BuffBlueprint {
- Name = 'UEFACUdmgMod',
- DisplayName = 'UEFACUdmgMod',
- BuffType = 'ACUBUILDRATE',
- Stacks = 'ALWAYS',
- Duration = -1,
- Affects = {
- Damage = {
- Add = bp.NewDamage - self:GetBlueprint().Weapon[1].Damage,
- Mult = 1.0,
- },
- MaxRadius = {
- Add = bp.NewRange - self:GetBlueprint().Weapon[1].MaxRadius,
- Mult = 1.0,
- },
- MaxRadius = {
- Add = bp.NewRange - self:GetBlueprint().Weapon[2].MaxRadius,
- Mult = 1.0,
- },
- },
- }
- end
- Buff.ApplyBuff(self, 'UEFACUdmgMod')
- elseif enh =='HeavyAntiMatterCannonRemove' then
- if Buff.HasBuff( self, 'UEFACUdmgMod' ) then
- Buff.RemoveBuff( self, 'UEFACUdmgMod' )
- end
- elseif enh == 'Holograms' then
- self.ViewHolograms = true
- local intelTypes = { Holographics = true, }
- local spec = {
- Holographics = {
- WatchPower = true,
- AddToggles = true,
- Toggles = { RULEETC_HologramToggle = { StartEnabled = true }, },
- EnabledOnTransport = false,
- MaintenanceConsumptionPerSecondEnergy = 100,
- MaxDistance = 30,
- MinDistance = 0.1,
- HologramGroup = 'MyHologramTable',
- T3Land = 3,
- },
- }
- self:AddCustomUnitIntel(intelTypes, spec)
- elseif enh == 'HologramsRemove' then
- self:RemoveCustomIntel('Holographics')
- end
- end,
- }
- TypeClass = UEL0001
Add Comment
Please, Sign In to add comment