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 TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
|
||||
local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon
|
||||
|
||||
|
||||
LASTEINADLER = Class(TAirUnit) {
|
||||
PlayDestructionEffects = true,
|
||||
DamageEffectPullback = 0.25,
|
||||
DestroySeconds = 7.5,
|
||||
|
||||
Weapons = {
|
||||
SRM = Class(TSAMLauncher) {},
|
||||
LRM1 = Class(TSAMLauncher) {},
|
||||
LRM2 = Class(TSAMLauncher) {},
|
||||
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.5)
|
||||
TIFCarpetBombWeapon.OnGotTarget(self)
|
||||
end,
|
||||
},
|
||||
|
||||
OnGotTarget = function(self)
|
||||
self.unit:SetBreakOffTriggerMult(2.0)
|
||||
self.unit:SetBreakOffDistanceMult(8.0)
|
||||
self.unit:SetSpeedMult(0.5)
|
||||
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 = LASTEINADLER
|
||||
Reference in new issue
Block a user