Repo-wide formatting pass
This commit is contained in:
1 parent
20b5d31836
commit
62ade7ea45
33 files changed
+36
-54
No files matched your search
@@ -6,4 +6,3 @@ ArtemisLRM = Class(TMissileAAProjectile) {
|
||||
}
|
||||
|
||||
TypeClass = ArtemisLRM
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
|
||||
local ADFCannonOblivionWeapon = import('/lua/aeonweapons.lua').ADFCannonOblivionWeapon
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ CLANFACTORYAT1 = Class(TAirFactoryUnit) {
|
||||
self.ArmSlider = CreateSlider(self, 'Arm01')
|
||||
self.Trash:Add(self.ArmSlider)
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
MovingArmsThread = function(self)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TLandFactoryUnit = import('/lua/terranunits.lua').TLandFactoryUnit
|
||||
|
||||
CLANMFACTORYT1 = Class(TLandFactoryUnit) {}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TLandFactoryUnit = import('/lua/terranunits.lua').TLandFactoryUnit
|
||||
|
||||
CLANMFACTORYT2 = Class(TLandFactoryUnit) {}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
|
||||
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TAirUnit = import('/lua/terranunits.lua').TAirUnit
|
||||
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ FSFACTORYAT1 = Class(TAirFactoryUnit) {
|
||||
self.ArmSlider = CreateSlider(self, 'Arm01')
|
||||
self.Trash:Add(self.ArmSlider)
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
MovingArmsThread = function(self)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TSeaFactoryUnit = import('/lua/terranunits.lua').TSeaFactoryUnit
|
||||
|
||||
FSFACTORYNT1 = Class(TSeaFactoryUnit) {
|
||||
@@ -9,7 +7,6 @@ FSFACTORYNT1 = Class(TSeaFactoryUnit) {
|
||||
self.ArmSlider = CreateSlider(self, 'Right_Arm')
|
||||
self.Trash:Add(self.ArmSlider)
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
MovingArmsThread = function(self)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
|
||||
local ADFCannonQuantumWeapon = import('/lua/aeonweapons.lua').ADFCannonQuantumWeapon
|
||||
|
||||
|
||||
@@ -23,4 +23,3 @@ FSISBA = Class(TWalkingLandUnit) {
|
||||
},
|
||||
}
|
||||
TypeClass = FSISBA
|
||||
|
||||
@@ -79,7 +79,8 @@ FSKARNOV = Class(TAirUnit) {
|
||||
AirDestructionEffectsThread = function(self)
|
||||
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
|
||||
for i = 0, numExplosions do
|
||||
explosion.CreateDefaultHitExplosionAtBone( self, self.AirDestructionEffectBones[util.GetRandomInt( 1, numExplosions )], 0.5 )
|
||||
explosion.CreateDefaultHitExplosionAtBone(self,
|
||||
self.AirDestructionEffectBones[util.GetRandomInt(1, numExplosions)], 0.5)
|
||||
WaitSeconds(util.GetRandomFloat(0.2, 0.9))
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -451,4 +451,3 @@ UnitBlueprint {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -32,7 +32,8 @@ FSPARTISAN = Class(TLandUnit) {
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('GroundGun', true)
|
||||
self:SetWeaponEnabledByLabel('AAGun', false)
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -41,7 +42,8 @@ FSPARTISAN = Class(TLandUnit) {
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('GroundGun', false)
|
||||
self:SetWeaponEnabledByLabel('AAGun', true)
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
--#****************************************************************************
|
||||
local TLandUnit = import('/lua/terranunits.lua').TLandUnit
|
||||
local TDFGaussCannonWeapon = import('/lua/terranweapons.lua').TDFGaussCannonWeapon
|
||||
|
||||
@@ -445,4 +445,3 @@ UnitBlueprint {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -68,7 +68,8 @@ FSWARRIORH7 = Class(TAirUnit) {
|
||||
AirDestructionEffectsThread = function(self)
|
||||
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
|
||||
for i = 0, numExplosions do
|
||||
explosion.CreateDefaultHitExplosionAtBone( self, self.AirDestructionEffectBones[util.GetRandomInt( 1, numExplosions )], 0.5 )
|
||||
explosion.CreateDefaultHitExplosionAtBone(self,
|
||||
self.AirDestructionEffectBones[util.GetRandomInt(1, numExplosions)], 0.5)
|
||||
WaitSeconds(util.GetRandomFloat(0.2, 0.9))
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -25,4 +25,3 @@ HHGOLEMROCK = Class(TWalkingLandUnit) {
|
||||
},
|
||||
}
|
||||
TypeClass = HHGOLEMROCK
|
||||
|
||||
@@ -13,7 +13,8 @@ HHMADDOGE = Class(TWalkingLandUnit) {
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
self.SpinManip2:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'L_Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'L_Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
|
||||
@@ -38,7 +39,8 @@ HHMADDOGE = Class(TWalkingLandUnit) {
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
self.SpinManip2:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'L_Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'L_Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ LAFACTORYAT1 = Class(TAirFactoryUnit) {
|
||||
self.ArmSlider = CreateSlider(self, 'Arm01')
|
||||
self.Trash:Add(self.ArmSlider)
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
MovingArmsThread = function(self)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TSeaFactoryUnit = import('/lua/terranunits.lua').TSeaFactoryUnit
|
||||
|
||||
FSFACTORYNT1 = Class(TSeaFactoryUnit) {
|
||||
@@ -9,7 +7,6 @@ FSFACTORYNT1 = Class(TSeaFactoryUnit) {
|
||||
self.ArmSlider = CreateSlider(self, 'Right_Arm')
|
||||
self.Trash:Add(self.ArmSlider)
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
MovingArmsThread = function(self)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
|
||||
local ADFCannonQuantumWeapon = import('/lua/aeonweapons.lua').ADFCannonQuantumWeapon
|
||||
|
||||
|
||||
@@ -23,4 +23,3 @@ LAISBA = Class(TWalkingLandUnit) {
|
||||
},
|
||||
}
|
||||
TypeClass = LAISBA
|
||||
|
||||
@@ -79,7 +79,8 @@ LAKARNOV = Class(TAirUnit) {
|
||||
AirDestructionEffectsThread = function(self)
|
||||
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
|
||||
for i = 0, numExplosions do
|
||||
explosion.CreateDefaultHitExplosionAtBone( self, self.AirDestructionEffectBones[util.GetRandomInt( 1, numExplosions )], 0.5 )
|
||||
explosion.CreateDefaultHitExplosionAtBone(self,
|
||||
self.AirDestructionEffectBones[util.GetRandomInt(1, numExplosions)], 0.5)
|
||||
WaitSeconds(util.GetRandomFloat(0.2, 0.9))
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -451,4 +451,3 @@ UnitBlueprint {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -32,7 +32,8 @@ LAPARTISAN = Class(TLandUnit) {
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('GroundGun', true)
|
||||
self:SetWeaponEnabledByLabel('AAGun', false)
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -41,7 +42,8 @@ LAPARTISAN = Class(TLandUnit) {
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('GroundGun', false)
|
||||
self:SetWeaponEnabledByLabel('AAGun', true)
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -445,4 +445,3 @@ UnitBlueprint {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
local TAirUnit = import('/lua/terranunits.lua').TAirUnit
|
||||
local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
|
||||
local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
local TAirUnit = import('/lua/terranunits.lua').TAirUnit
|
||||
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
|
||||
|
||||
|
||||
@@ -68,7 +68,8 @@ LAWARRIORH7 = Class(TAirUnit) {
|
||||
AirDestructionEffectsThread = function(self)
|
||||
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
|
||||
for i = 0, numExplosions do
|
||||
explosion.CreateDefaultHitExplosionAtBone( self, self.AirDestructionEffectBones[util.GetRandomInt( 1, numExplosions )], 0.5 )
|
||||
explosion.CreateDefaultHitExplosionAtBone(self,
|
||||
self.AirDestructionEffectBones[util.GetRandomInt(1, numExplosions)], 0.5)
|
||||
WaitSeconds(util.GetRandomFloat(0.2, 0.9))
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -23,4 +23,3 @@ SRELEMENTAL = Class(TWalkingLandUnit) {
|
||||
}
|
||||
|
||||
TypeClass = SRELEMENTAL
|
||||
|
||||
@@ -28,7 +28,8 @@ SROROHAG = Class(TLandUnit) {
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
|
||||
@@ -50,7 +51,8 @@ SROROHAG = Class(TLandUnit) {
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
},
|
||||
@@ -65,7 +67,8 @@ SROROHAG = Class(TLandUnit) {
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
|
||||
@@ -87,7 +90,8 @@ SROROHAG = Class(TLandUnit) {
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
},
|
||||
@@ -105,7 +109,8 @@ SROROHAG = Class(TLandUnit) {
|
||||
self:SetWeaponEnabledByLabel('GroundGun', true)
|
||||
self:SetWeaponEnabledByLabel('AAGun', false)
|
||||
self:SetWeaponEnabledByLabel('CLPL', true)
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -115,7 +120,8 @@ SROROHAG = Class(TLandUnit) {
|
||||
self:SetWeaponEnabledByLabel('GroundGun', false)
|
||||
self:SetWeaponEnabledByLabel('AAGun', true)
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -27,7 +27,8 @@ SRRIFLEMANIIC = Class(TWalkingLandUnit) {
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('CLPL', true)
|
||||
self:SetWeaponEnabledByLabel('CLPLAA', false)
|
||||
self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('CLPLAA'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPLAA')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
|
||||
@@ -36,7 +37,8 @@ SRRIFLEMANIIC = Class(TWalkingLandUnit) {
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
self:SetWeaponEnabledByLabel('CLPLAA', true)
|
||||
self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('CLPL'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPL')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user