52 lines
2.3 KiB
Lua
52 lines
2.3 KiB
Lua
--#****************************************************************************
|
|
--#**
|
|
--#** File : /cdimage/units/UEA0104/UEA0104_script.lua
|
|
--#** Author(s): John Comes, David Tomandl, Jessica St. Croix, Gordon Duclos, Andres Mendez
|
|
--#**
|
|
--#** Summary : UEF T2 Transport Script
|
|
--#**
|
|
--#** Copyright � 2006 Gas Powered Games, Inc. All rights reserved.
|
|
--#****************************************************************************
|
|
local TAirUnit = import('/lua/terranunits.lua').TAirUnit
|
|
local util = import('/lua/utilities.lua')
|
|
local ADFCannonOblivionWeapon = import('/lua/aeonweapons.lua').ADFCannonOblivionWeapon
|
|
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
|
|
local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
|
|
local CDFLaserHeavyWeapon = import('/lua/cybranweapons.lua').CDFLaserHeavyWeapon
|
|
local BTLargeLaserWeapon = import('/mods/Supreme Mech Commander 2/lua/btweapons.lua').BTLargeLaserWeapon
|
|
|
|
-- TODO: replace with import("/lua/defaultunits.lua").AirTransport, = ClassUnit(AirTransport)
|
|
---@class FSLEOPARDDS : TAirUnit
|
|
FSLEOPARDDS = Class(TAirUnit) {
|
|
|
|
Weapons = {
|
|
NOS_ERPPC = Class(ADFCannonOblivionWeapon) {},
|
|
ERLL1 = Class(BTLargeLaserWeapon) {},
|
|
ERLL2 = Class(BTLargeLaserWeapon) {},
|
|
AFT_ERLL = Class(BTLargeLaserWeapon) {},
|
|
NOS_LRM = Class(TSAMLauncher) {},
|
|
LS_LRM = Class(TSAMLauncher) {},
|
|
RS_LRM = Class(TSAMLauncher) {},
|
|
LS_MPL = Class(CDFParticleCannonWeapon) {},
|
|
RS_MPL = Class(CDFParticleCannonWeapon) {},
|
|
NOS_MPL1 = Class(CDFParticleCannonWeapon) {}, -- TODO: nose mpls into one weapon
|
|
NOS_MPL2 = Class(CDFParticleCannonWeapon) {},
|
|
NOS_MPL3 = Class(CDFParticleCannonWeapon) {},
|
|
AFT_MPL = Class(CDFParticleCannonWeapon) {},
|
|
},
|
|
|
|
--# When one of our attached units gets killed, detach it
|
|
OnAttachedKilled = function(self, attached)
|
|
attached:DetachFrom()
|
|
end,
|
|
|
|
OnKilled = function(self, instigator, type, overkillRatio)
|
|
TAirUnit.OnKilled(self, instigator, type, overkillRatio)
|
|
--# TransportDetachAllUnits takes 1 bool parameter. If true, randomly destroys some of the transported
|
|
--# units, otherwise successfully detaches all.
|
|
self:TransportDetachAllUnits(true)
|
|
end,
|
|
}
|
|
|
|
TypeClass = FSLEOPARDDS
|