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
|
||||
Reference in new issue
Block a user