52 lines
2.1 KiB
Lua
52 lines
2.1 KiB
Lua
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 = {
|
|
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
|
|
|
|
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, 'Turret_Barrel', self.unit:GetArmy(),
|
|
Effects.WeaponSteam01)
|
|
TDFGaussCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
|
end,
|
|
},
|
|
ML = Class(BTMediumLaserWeapon) {},
|
|
MG = Class(TDFMachineGunWeapon) {},
|
|
},
|
|
}
|
|
|
|
TypeClass = LAPATTONULTRA
|