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:
cardboardbread committed 2026-10-26 20:34:33 -04:00
1 parent 70f34f8f40
commit 3bb2a6dfe0
301 files changed
+6030 -5806

No files matched your search

+33 -31
View File
@@ -2,46 +2,48 @@ local TLandUnit = import('/lua/terranunits.lua').TLandUnit
local TDFGaussCannonWeapon = import('/lua/terranweapons.lua').TDFGaussCannonWeapon
local ADFLaserLightWeapon = import('/lua/aeonweapons.lua').ADFLaserLightWeapon
local TDFMachineGunWeapon = import('/lua/terranweapons.lua').TDFMachineGunWeapon
local BTMediumLaserWeapon = import('/mods/Supreme Mech Commander 2/lua/btweapons.lua').BTMediumLaserWeapon
local EffectUtils = import('/lua/effectutilities.lua')
local Effects = import('/lua/effecttemplates.lua')
---@class LAPATTONULTRA : TLandUnit
LAPATTONULTRA = Class(TLandUnit) {
Weapons = {
AC10 = Class(TDFGaussCannonWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
-- self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
TDFGaussCannonWeapon.PlayFxWeaponPackSequence(self)
end,
UAC10 = Class(TDFGaussCannonWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Turret_Barrel', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFGaussCannonWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 240, 120)
self.unit.Trash:Add(self.SpinManip)
end
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 240, 120)
self.unit.Trash:Add(self.SpinManip)
end
if self.SpinManip then
-- self.SpinManip:SetTargetSpeed(120)
self.SpinManip:SetTargetSpeed(110)
end
TDFGaussCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
if self.SpinManip then
-- self.SpinManip:SetTargetSpeed(120)
self.SpinManip:SetTargetSpeed(110)
end
TDFGaussCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
-- self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
TDFGaussCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
ML = Class(ADFLaserLightWeapon) {},
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Turret_Barrel', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFGaussCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
ML = Class(BTMediumLaserWeapon) {},
MG = Class(TDFMachineGunWeapon) {},
},
}