Initial commit
This commit is contained in:
commit
74162a93be
1366 files changed
+81395
No files matched your search
@@ -0,0 +1,49 @@
|
||||
#****************************************************************************
|
||||
|
||||
local TAirUnit = import('/lua/terranunits.lua').TAirUnit
|
||||
local ADFLaserLightWeapon = import('/lua/aeonweapons.lua').ADFLaserLightWeapon
|
||||
local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon
|
||||
|
||||
|
||||
LAOWL2 = Class(TAirUnit) {
|
||||
PlayDestructionEffects = true,
|
||||
DamageEffectPullback = 0.25,
|
||||
DestroySeconds = 7.5,
|
||||
|
||||
Weapons = {
|
||||
ML = Class(ADFLaserLightWeapon) {},
|
||||
SL = Class(ADFLaserLightWeapon) {},
|
||||
SL2 = Class(ADFLaserLightWeapon) {},
|
||||
Bomb = Class(TIFCarpetBombWeapon) {
|
||||
|
||||
IdleState = State (TIFCarpetBombWeapon.IdleState) {
|
||||
Main = function(self)
|
||||
TIFCarpetBombWeapon.IdleState.Main(self)
|
||||
end,
|
||||
|
||||
OnGotTarget = function(self)
|
||||
self.unit:SetBreakOffTriggerMult(2.0)
|
||||
self.unit:SetBreakOffDistanceMult(8.0)
|
||||
self.unit:SetSpeedMult(0.25)
|
||||
TIFCarpetBombWeapon.OnGotTarget(self)
|
||||
end,
|
||||
},
|
||||
|
||||
OnGotTarget = function(self)
|
||||
self.unit:SetBreakOffTriggerMult(2.0)
|
||||
self.unit:SetBreakOffDistanceMult(8.0)
|
||||
self.unit:SetSpeedMult(0.25)
|
||||
TIFCarpetBombWeapon.OnGotTarget(self)
|
||||
end,
|
||||
|
||||
OnLostTarget = function(self)
|
||||
self.unit:SetBreakOffTriggerMult(1.0)
|
||||
self.unit:SetBreakOffDistanceMult(1.0)
|
||||
self.unit:SetSpeedMult(1.0)
|
||||
TIFCarpetBombWeapon.OnLostTarget(self)
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
TypeClass = LAOWL2
|
||||
Reference in new issue
Block a user