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

+68 -33
View File
@@ -1,50 +1,85 @@
local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
local TDFHeavyPlasmaCannonWeapon = import('/lua/terranweapons.lua').TDFHeavyPlasmaGatlingCannonWeapon
local TDFGaussCannonWeapon = import("/lua/terranweapons.lua").TDFGaussCannonWeapon
local TDFRiotWeapon = import("/lua/terranweapons.lua").TDFRiotWeapon
local EffectUtils = import('/lua/effectutilities.lua')
local Effects = import('/lua/effecttemplates.lua')
---@class HHMADDOGE : TWalkingLandUnit
HHMADDOGE = Class(TWalkingLandUnit) {
Weapons = {
HAG = Class(TDFHeavyPlasmaCannonWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
self.SpinManip2:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'L_Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end,
L_HAG = Class(TDFRiotWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
self.SpinManip2:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'L_Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFRiotWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'L_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, 'L_Gun_Barrel', 'z', nil, 270, 180, 60)
self.SpinManip2 = CreateRotator(self.unit, 'R_Gun_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
self.SpinManip2:SetTargetSpeed(500)
end
TDFRiotWeapon.PlayFxRackSalvoChargeSequence(self)
end,
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
self.SpinManip2:SetTargetSpeed(500)
end
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
self.SpinManip2:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'L_Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFRiotWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
R_HAG = Class(TDFRiotWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
self.SpinManip2:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'R_Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFRiotWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
self.SpinManip2:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'L_Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip2 = CreateRotator(self.unit, 'R_Gun_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
},
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
self.SpinManip2:SetTargetSpeed(500)
end
TDFRiotWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
self.SpinManip2:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'R_Exhaust', self.unit:GetArmy(),
Effects.WeaponSteam01)
TDFRiotWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
},
}