Initial commit
This commit is contained in:
commit
74162a93be
1366 files changed
+81395
No files matched your search
@@ -0,0 +1,48 @@
|
||||
#****************************************************************************
|
||||
#**
|
||||
#** File : /cdimage/units/FSJI50ML/FSJI50ML_script.lua
|
||||
#** Author(s): John Comes, David Tomandl, Jessica St. Croix, Kami, FuegoTigre
|
||||
#**
|
||||
#** Summary : FedSuns Jifty Tier 2 Engineer
|
||||
#**
|
||||
#** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
|
||||
#****************************************************************************
|
||||
|
||||
local EffectTemplate = import('/lua/EffectTemplates.lua')
|
||||
local TConstructionUnit = import('/lua/terranunits.lua').TConstructionUnit
|
||||
local ADFLaserLightWeapon = import('/lua/aeonweapons.lua').ADFLaserLightWeapon
|
||||
|
||||
FSJI50ML = Class(TConstructionUnit) {
|
||||
Weapons = {
|
||||
ML = Class(ADFLaserLightWeapon) {},
|
||||
},
|
||||
|
||||
OnStopBeingBuilt = function(self)
|
||||
self:SetMaintenanceConsumptionActive()
|
||||
TConstructionUnit.OnStopBeingBuilt(self)
|
||||
end,
|
||||
|
||||
OnStartBuild = function(self, unitBeingBuilt, order)
|
||||
--Disable the gun while building something
|
||||
self:SetWeaponEnabledByLabel('ML', false)
|
||||
TConstructionUnit.OnStartBuild(self, unitBeingBuilt, order)
|
||||
end,
|
||||
|
||||
OnStopBuild = function(self)
|
||||
--Re-enable the gun after done building
|
||||
self:SetWeaponEnabledByLabel('ML', true)
|
||||
TConstructionUnit.OnStopBuild(self)
|
||||
end,
|
||||
|
||||
OnStartReclaim = function(self, target)
|
||||
TConstructionUnit.OnStartReclaim(self, target)
|
||||
self:SetAllWeaponsEnabled(false)
|
||||
end,
|
||||
|
||||
OnStopReclaim = function(self, target)
|
||||
TConstructionUnit.OnStopReclaim(self, target)
|
||||
self:SetAllWeaponsEnabled( true)
|
||||
end,
|
||||
}
|
||||
|
||||
TypeClass = FSJI50ML
|
||||
Reference in new issue
Block a user