Repo-wide formatting pass
This commit is contained in:
1 parent
20b5d31836
commit
62ade7ea45
291 files changed
+1405
-1423
No files matched your search
@@ -13,32 +13,34 @@ local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCann
|
||||
|
||||
SRRIFLEMANIIC = Class(TWalkingLandUnit) {
|
||||
Weapons = {
|
||||
CLPLAA = Class(CDFParticleCannonWeapon) {},
|
||||
CLPL = Class(CDFParticleCannonWeapon) {},
|
||||
CLPLAA = Class(CDFParticleCannonWeapon) {},
|
||||
CLPL = Class(CDFParticleCannonWeapon) {},
|
||||
},
|
||||
|
||||
OnCreate = function(self)
|
||||
TWalkingLandUnit.OnCreate(self)
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
end,
|
||||
|
||||
|
||||
OnScriptBitSet = function(self, bit)
|
||||
TWalkingLandUnit.OnScriptBitSet(self, bit)
|
||||
if bit == 1 then
|
||||
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,
|
||||
|
||||
OnScriptBitClear = function(self, bit)
|
||||
TWalkingLandUnit.OnScriptBitClear(self, bit)
|
||||
if bit == 1 then
|
||||
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,
|
||||
}
|
||||
|
||||
TypeClass = SRRIFLEMANIIC
|
||||
TypeClass = SRRIFLEMANIIC
|
||||
@@ -46,8 +46,8 @@ UnitBlueprint {
|
||||
Categories = {
|
||||
'PRODUCTSC1',
|
||||
'SELECTABLE',
|
||||
'BUILTBYTIER1FACTORY',
|
||||
'BUILTBYTIER2FACTORY',
|
||||
'BUILTBYTIER1FACTORY',
|
||||
'BUILTBYTIER2FACTORY',
|
||||
'BUILTBYTIER3FACTORY',
|
||||
'SR',
|
||||
'MOBILE',
|
||||
@@ -235,7 +235,7 @@ UnitBlueprint {
|
||||
FireTargetLayerCapsTable = {
|
||||
Land = 'Air',
|
||||
Water = 'Air',
|
||||
},
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0,
|
||||
@@ -334,7 +334,7 @@ UnitBlueprint {
|
||||
Water = 'Land|Water',
|
||||
Seabed = 'Water|Sub|Seabed',
|
||||
},
|
||||
FiringTolerance = 10,
|
||||
FiringTolerance = 10,
|
||||
Label = 'CLPL',
|
||||
LeadTarget = false,
|
||||
MaxRadius = 69,
|
||||
|
||||
Reference in new issue
Block a user