Repo-wide formatting pass

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

No files matched your search

+78 -72
View File
@@ -22,75 +22,79 @@ SROROHAG = Class(TLandUnit) {
self.unit:SetScriptBit('RULEUTC_WeaponToggle', false)
end,
},
AAGun = Class(TDFHeavyPlasmaCannonWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end,
AAGun = Class(TDFHeavyPlasmaCannonWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
end
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
GroundGun = Class(TDFHeavyPlasmaCannonWeapon)
{
SetOnTransport = function(self, transportstate)
TDFHeavyPlasmaCannonWeapon.SetOnTransport(self, transportstate)
self.unit:SetScriptBit('RULEUTC_WeaponToggle', false)
end,
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
end
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
end
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
GroundGun = Class(TDFHeavyPlasmaCannonWeapon)
{
SetOnTransport = function(self, transportstate)
TDFHeavyPlasmaCannonWeapon.SetOnTransport(self, transportstate)
self.unit:SetScriptBit('RULEUTC_WeaponToggle', false)
end,
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
end
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
},
OnCreate = function(self)
@@ -98,25 +102,27 @@ SROROHAG = Class(TLandUnit) {
self:SetWeaponEnabledByLabel('CLPL', false)
self:SetWeaponEnabledByLabel('GroundGun', false)
end,
OnScriptBitSet = function(self, bit)
TLandUnit.OnScriptBitSet(self, bit)
if bit == 1 then
if bit == 1 then
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,
OnScriptBitClear = function(self, bit)
TLandUnit.OnScriptBitClear(self, bit)
if bit == 1 then
if bit == 1 then
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,
}
TypeClass = SROROHAG
TypeClass = SROROHAG