starting pass for unit tweaks, changing unit tiers to weight class, added custom weapons for bt lasers, notebook incompatible blueprints
This commit is contained in:
1 parent
70f34f8f40
commit
3bb2a6dfe0
301 files changed
+6030
-5806
No files matched your search
@@ -11,36 +11,37 @@
|
||||
local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
|
||||
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
|
||||
|
||||
---@class SRRIFLEMANIIC : TWalkingLandUnit
|
||||
SRRIFLEMANIIC = Class(TWalkingLandUnit) {
|
||||
Weapons = {
|
||||
CLPLAA = Class(CDFParticleCannonWeapon) {},
|
||||
-- CLPLAA = Class(CDFParticleCannonWeapon) {},
|
||||
CLPL = Class(CDFParticleCannonWeapon) {},
|
||||
},
|
||||
|
||||
OnCreate = function(self)
|
||||
TWalkingLandUnit.OnCreate(self)
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
end,
|
||||
-- OnCreate = function(self)
|
||||
-- TWalkingLandUnit.OnCreate(self)
|
||||
-- self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
-- end,
|
||||
|
||||
OnScriptBitSet = function(self, bit)
|
||||
TWalkingLandUnit.OnScriptBitSet(self, bit)
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('CLPL', true)
|
||||
self:SetWeaponEnabledByLabel('CLPLAA', false)
|
||||
self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPLAA')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
-- OnScriptBitSet = function(self, bit)
|
||||
-- TWalkingLandUnit.OnScriptBitSet(self, bit)
|
||||
-- if bit == 1 then
|
||||
-- self:SetWeaponEnabledByLabel('CLPL', true)
|
||||
-- self:SetWeaponEnabledByLabel('CLPLAA', false)
|
||||
-- self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPLAA')
|
||||
-- :GetHeadingPitch())
|
||||
-- end
|
||||
-- end,
|
||||
|
||||
OnScriptBitClear = function(self, bit)
|
||||
TWalkingLandUnit.OnScriptBitClear(self, bit)
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
self:SetWeaponEnabledByLabel('CLPLAA', true)
|
||||
self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPL')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
-- OnScriptBitClear = function(self, bit)
|
||||
-- TWalkingLandUnit.OnScriptBitClear(self, bit)
|
||||
-- if bit == 1 then
|
||||
-- self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
-- self:SetWeaponEnabledByLabel('CLPLAA', true)
|
||||
-- self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPL')
|
||||
-- :GetHeadingPitch())
|
||||
-- end
|
||||
-- end,
|
||||
}
|
||||
|
||||
TypeClass = SRRIFLEMANIIC
|
||||
Reference in new issue
Block a user