Repo-wide formatting pass

This commit is contained in:
cardboardbread committed 2026-09-18 07:14:49 -04:00
1 parent 20b5d31836
commit 62ade7ea45
33 files changed
+36 -54

No files matched your search

@@ -6,4 +6,3 @@ ArtemisLRM = Class(TMissileAAProjectile) {
} }
TypeClass = ArtemisLRM TypeClass = ArtemisLRM
@@ -1,5 +1,3 @@
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
local ADFCannonOblivionWeapon = import('/lua/aeonweapons.lua').ADFCannonOblivionWeapon local ADFCannonOblivionWeapon = import('/lua/aeonweapons.lua').ADFCannonOblivionWeapon
@@ -18,7 +18,6 @@ CLANFACTORYAT1 = Class(TAirFactoryUnit) {
self.ArmSlider = CreateSlider(self, 'Arm01') self.ArmSlider = CreateSlider(self, 'Arm01')
self.Trash:Add(self.ArmSlider) self.Trash:Add(self.ArmSlider)
end end
end, end,
MovingArmsThread = function(self) MovingArmsThread = function(self)
@@ -1,5 +1,3 @@
local TLandFactoryUnit = import('/lua/terranunits.lua').TLandFactoryUnit local TLandFactoryUnit = import('/lua/terranunits.lua').TLandFactoryUnit
CLANMFACTORYT1 = Class(TLandFactoryUnit) {} CLANMFACTORYT1 = Class(TLandFactoryUnit) {}
@@ -1,5 +1,3 @@
local TLandFactoryUnit = import('/lua/terranunits.lua').TLandFactoryUnit local TLandFactoryUnit = import('/lua/terranunits.lua').TLandFactoryUnit
CLANMFACTORYT2 = Class(TLandFactoryUnit) {} CLANMFACTORYT2 = Class(TLandFactoryUnit) {}
@@ -1,5 +1,3 @@
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
@@ -1,5 +1,3 @@
local TAirUnit = import('/lua/terranunits.lua').TAirUnit local TAirUnit = import('/lua/terranunits.lua').TAirUnit
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
@@ -18,7 +18,6 @@ FSFACTORYAT1 = Class(TAirFactoryUnit) {
self.ArmSlider = CreateSlider(self, 'Arm01') self.ArmSlider = CreateSlider(self, 'Arm01')
self.Trash:Add(self.ArmSlider) self.Trash:Add(self.ArmSlider)
end end
end, end,
MovingArmsThread = function(self) MovingArmsThread = function(self)
@@ -1,5 +1,3 @@
local TSeaFactoryUnit = import('/lua/terranunits.lua').TSeaFactoryUnit local TSeaFactoryUnit = import('/lua/terranunits.lua').TSeaFactoryUnit
FSFACTORYNT1 = Class(TSeaFactoryUnit) { FSFACTORYNT1 = Class(TSeaFactoryUnit) {
@@ -9,7 +7,6 @@ FSFACTORYNT1 = Class(TSeaFactoryUnit) {
self.ArmSlider = CreateSlider(self, 'Right_Arm') self.ArmSlider = CreateSlider(self, 'Right_Arm')
self.Trash:Add(self.ArmSlider) self.Trash:Add(self.ArmSlider)
end end
end, end,
MovingArmsThread = function(self) MovingArmsThread = function(self)
-2
View File
@@ -1,5 +1,3 @@
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
local ADFCannonQuantumWeapon = import('/lua/aeonweapons.lua').ADFCannonQuantumWeapon local ADFCannonQuantumWeapon = import('/lua/aeonweapons.lua').ADFCannonQuantumWeapon
-1
View File
@@ -23,4 +23,3 @@ FSISBA = Class(TWalkingLandUnit) {
}, },
} }
TypeClass = FSISBA TypeClass = FSISBA
+2 -1
View File
@@ -79,7 +79,8 @@ FSKARNOV = Class(TAirUnit) {
AirDestructionEffectsThread = function(self) AirDestructionEffectsThread = function(self)
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5) local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
for i = 0, numExplosions do 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)) WaitSeconds(util.GetRandomFloat(0.2, 0.9))
end end
end, end,
-1
View File
@@ -451,4 +451,3 @@ UnitBlueprint {
}, },
}, },
} }
+4 -2
View File
@@ -32,7 +32,8 @@ FSPARTISAN = Class(TLandUnit) {
if bit == 1 then if bit == 1 then
self:SetWeaponEnabledByLabel('GroundGun', true) self:SetWeaponEnabledByLabel('GroundGun', true)
self:SetWeaponEnabledByLabel('AAGun', false) self:SetWeaponEnabledByLabel('AAGun', false)
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
:GetHeadingPitch())
end end
end, end,
@@ -41,7 +42,8 @@ FSPARTISAN = Class(TLandUnit) {
if bit == 1 then if bit == 1 then
self:SetWeaponEnabledByLabel('GroundGun', false) self:SetWeaponEnabledByLabel('GroundGun', false)
self:SetWeaponEnabledByLabel('AAGun', true) self:SetWeaponEnabledByLabel('AAGun', true)
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
:GetHeadingPitch())
end end
end, end,
} }
-1
View File
@@ -1,4 +1,3 @@
--#**************************************************************************** --#****************************************************************************
local TLandUnit = import('/lua/terranunits.lua').TLandUnit local TLandUnit = import('/lua/terranunits.lua').TLandUnit
local TDFGaussCannonWeapon = import('/lua/terranweapons.lua').TDFGaussCannonWeapon local TDFGaussCannonWeapon = import('/lua/terranweapons.lua').TDFGaussCannonWeapon
-1
View File
@@ -445,4 +445,3 @@ UnitBlueprint {
}, },
}, },
} }
+2 -1
View File
@@ -68,7 +68,8 @@ FSWARRIORH7 = Class(TAirUnit) {
AirDestructionEffectsThread = function(self) AirDestructionEffectsThread = function(self)
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5) local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
for i = 0, numExplosions do 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)) WaitSeconds(util.GetRandomFloat(0.2, 0.9))
end end
end, end,
-1
View File
@@ -25,4 +25,3 @@ HHGOLEMROCK = Class(TWalkingLandUnit) {
}, },
} }
TypeClass = HHGOLEMROCK TypeClass = HHGOLEMROCK
+4 -2
View File
@@ -13,7 +13,8 @@ HHMADDOGE = Class(TWalkingLandUnit) {
self.SpinManip:SetTargetSpeed(0) self.SpinManip:SetTargetSpeed(0)
self.SpinManip2:SetTargetSpeed(0) self.SpinManip2:SetTargetSpeed(0)
end 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) TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end, end,
@@ -38,7 +39,8 @@ HHMADDOGE = Class(TWalkingLandUnit) {
self.SpinManip:SetTargetSpeed(200) self.SpinManip:SetTargetSpeed(200)
self.SpinManip2:SetTargetSpeed(200) self.SpinManip2:SetTargetSpeed(200)
end 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) TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end, end,
@@ -18,7 +18,6 @@ LAFACTORYAT1 = Class(TAirFactoryUnit) {
self.ArmSlider = CreateSlider(self, 'Arm01') self.ArmSlider = CreateSlider(self, 'Arm01')
self.Trash:Add(self.ArmSlider) self.Trash:Add(self.ArmSlider)
end end
end, end,
MovingArmsThread = function(self) MovingArmsThread = function(self)
@@ -1,5 +1,3 @@
local TSeaFactoryUnit = import('/lua/terranunits.lua').TSeaFactoryUnit local TSeaFactoryUnit = import('/lua/terranunits.lua').TSeaFactoryUnit
FSFACTORYNT1 = Class(TSeaFactoryUnit) { FSFACTORYNT1 = Class(TSeaFactoryUnit) {
@@ -9,7 +7,6 @@ FSFACTORYNT1 = Class(TSeaFactoryUnit) {
self.ArmSlider = CreateSlider(self, 'Right_Arm') self.ArmSlider = CreateSlider(self, 'Right_Arm')
self.Trash:Add(self.ArmSlider) self.Trash:Add(self.ArmSlider)
end end
end, end,
MovingArmsThread = function(self) MovingArmsThread = function(self)
-2
View File
@@ -1,5 +1,3 @@
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
local ADFCannonQuantumWeapon = import('/lua/aeonweapons.lua').ADFCannonQuantumWeapon local ADFCannonQuantumWeapon = import('/lua/aeonweapons.lua').ADFCannonQuantumWeapon
-1
View File
@@ -23,4 +23,3 @@ LAISBA = Class(TWalkingLandUnit) {
}, },
} }
TypeClass = LAISBA TypeClass = LAISBA
+2 -1
View File
@@ -79,7 +79,8 @@ LAKARNOV = Class(TAirUnit) {
AirDestructionEffectsThread = function(self) AirDestructionEffectsThread = function(self)
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5) local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
for i = 0, numExplosions do 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)) WaitSeconds(util.GetRandomFloat(0.2, 0.9))
end end
end, end,
-1
View File
@@ -451,4 +451,3 @@ UnitBlueprint {
}, },
}, },
} }
+4 -2
View File
@@ -32,7 +32,8 @@ LAPARTISAN = Class(TLandUnit) {
if bit == 1 then if bit == 1 then
self:SetWeaponEnabledByLabel('GroundGun', true) self:SetWeaponEnabledByLabel('GroundGun', true)
self:SetWeaponEnabledByLabel('AAGun', false) self:SetWeaponEnabledByLabel('AAGun', false)
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
:GetHeadingPitch())
end end
end, end,
@@ -41,7 +42,8 @@ LAPARTISAN = Class(TLandUnit) {
if bit == 1 then if bit == 1 then
self:SetWeaponEnabledByLabel('GroundGun', false) self:SetWeaponEnabledByLabel('GroundGun', false)
self:SetWeaponEnabledByLabel('AAGun', true) self:SetWeaponEnabledByLabel('AAGun', true)
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
:GetHeadingPitch())
end end
end, end,
} }
-1
View File
@@ -445,4 +445,3 @@ UnitBlueprint {
}, },
}, },
} }
@@ -1,4 +1,3 @@
local TAirUnit = import('/lua/terranunits.lua').TAirUnit local TAirUnit = import('/lua/terranunits.lua').TAirUnit
local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon
-2
View File
@@ -1,5 +1,3 @@
local TAirUnit = import('/lua/terranunits.lua').TAirUnit local TAirUnit = import('/lua/terranunits.lua').TAirUnit
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
+2 -1
View File
@@ -68,7 +68,8 @@ LAWARRIORH7 = Class(TAirUnit) {
AirDestructionEffectsThread = function(self) AirDestructionEffectsThread = function(self)
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5) local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
for i = 0, numExplosions do 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)) WaitSeconds(util.GetRandomFloat(0.2, 0.9))
end end
end, end,
-1
View File
@@ -23,4 +23,3 @@ SRELEMENTAL = Class(TWalkingLandUnit) {
} }
TypeClass = SRELEMENTAL TypeClass = SRELEMENTAL
+12 -6
View File
@@ -28,7 +28,8 @@ SROROHAG = Class(TLandUnit) {
if self.SpinManip then if self.SpinManip then
self.SpinManip:SetTargetSpeed(0) self.SpinManip:SetTargetSpeed(0)
end 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) TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end, end,
@@ -50,7 +51,8 @@ SROROHAG = Class(TLandUnit) {
if self.SpinManip then if self.SpinManip then
self.SpinManip:SetTargetSpeed(200) self.SpinManip:SetTargetSpeed(200)
end 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) TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end, end,
}, },
@@ -65,7 +67,8 @@ SROROHAG = Class(TLandUnit) {
if self.SpinManip then if self.SpinManip then
self.SpinManip:SetTargetSpeed(0) self.SpinManip:SetTargetSpeed(0)
end 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) TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end, end,
@@ -87,7 +90,8 @@ SROROHAG = Class(TLandUnit) {
if self.SpinManip then if self.SpinManip then
self.SpinManip:SetTargetSpeed(200) self.SpinManip:SetTargetSpeed(200)
end 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) TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end, end,
}, },
@@ -105,7 +109,8 @@ SROROHAG = Class(TLandUnit) {
self:SetWeaponEnabledByLabel('GroundGun', true) self:SetWeaponEnabledByLabel('GroundGun', true)
self:SetWeaponEnabledByLabel('AAGun', false) self:SetWeaponEnabledByLabel('AAGun', false)
self:SetWeaponEnabledByLabel('CLPL', true) self:SetWeaponEnabledByLabel('CLPL', true)
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
:GetHeadingPitch())
end end
end, end,
@@ -115,7 +120,8 @@ SROROHAG = Class(TLandUnit) {
self:SetWeaponEnabledByLabel('GroundGun', false) self:SetWeaponEnabledByLabel('GroundGun', false)
self:SetWeaponEnabledByLabel('AAGun', true) self:SetWeaponEnabledByLabel('AAGun', true)
self:SetWeaponEnabledByLabel('CLPL', false) self:SetWeaponEnabledByLabel('CLPL', false)
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
:GetHeadingPitch())
end end
end, end,
} }
+4 -2
View File
@@ -27,7 +27,8 @@ SRRIFLEMANIIC = Class(TWalkingLandUnit) {
if bit == 1 then if bit == 1 then
self:SetWeaponEnabledByLabel('CLPL', true) self:SetWeaponEnabledByLabel('CLPL', true)
self:SetWeaponEnabledByLabel('CLPLAA', false) self:SetWeaponEnabledByLabel('CLPLAA', false)
self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('CLPLAA'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPLAA')
:GetHeadingPitch())
end end
end, end,
@@ -36,7 +37,8 @@ SRRIFLEMANIIC = Class(TWalkingLandUnit) {
if bit == 1 then if bit == 1 then
self:SetWeaponEnabledByLabel('CLPL', false) self:SetWeaponEnabledByLabel('CLPL', false)
self:SetWeaponEnabledByLabel('CLPLAA', true) self:SetWeaponEnabledByLabel('CLPLAA', true)
self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('CLPL'):GetHeadingPitch() ) self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPL')
:GetHeadingPitch())
end end
end, end,
} }