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
@@ -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) {},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -44,7 +44,6 @@ UnitBlueprint {
|
||||
},
|
||||
BuildIconSortPriority = 65,
|
||||
Categories = {
|
||||
'BUILTBYTIER2FACTORY',
|
||||
'BUILTBYTIER3FACTORY',
|
||||
'DIRECTFIRE',
|
||||
'INNERSPHERE',
|
||||
@@ -53,10 +52,10 @@ UnitBlueprint {
|
||||
'MOBILE',
|
||||
'OVERLAYDIRECTFIRE',
|
||||
'OVERLAYINDIRECTFIRE',
|
||||
'PRODUCTSC1',
|
||||
'BATTLETECH',
|
||||
'RECLAIMABLE',
|
||||
'SELECTABLE',
|
||||
'TECH2',
|
||||
'TECH3',
|
||||
'UEF',
|
||||
'VEHICLE',
|
||||
'VISIBLETORECON',
|
||||
@@ -68,7 +67,7 @@ UnitBlueprint {
|
||||
RegenRate = 0,
|
||||
SurfaceThreatLevel = 116.2,
|
||||
},
|
||||
Description = '<LOC LAPATTON_desc>65 Ton Heavy Tank',
|
||||
Description = '<LOC LAPATTON_desc>Brawler Tank',
|
||||
Display = {
|
||||
Abilities = {
|
||||
'1x UAC/10 |-| Max: 540m',
|
||||
@@ -154,7 +153,7 @@ UnitBlueprint {
|
||||
VisionRadius = 38,
|
||||
},
|
||||
Interface = {
|
||||
HelpText = '<LOC LAPATTON_help>Patton Tank',
|
||||
HelpText = '<LOC LAPATTON_help>65 Ton (Heavy) Patton Tank',
|
||||
},
|
||||
LifeBarHeight = 0.075,
|
||||
LifeBarOffset = 0.5,
|
||||
@@ -226,12 +225,12 @@ UnitBlueprint {
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0,
|
||||
Label = 'AC10',
|
||||
FiringTolerance = 1,
|
||||
Label = 'UAC10',
|
||||
MaxRadius = 45,
|
||||
MinRadius = 0,
|
||||
MuzzleSalvoDelay = 0,
|
||||
MuzzleSalvoSize = 1,
|
||||
MuzzleSalvoDelay = 0.1,
|
||||
MuzzleSalvoSize = 2,
|
||||
MuzzleVelocity = 30,
|
||||
ProjectileId = '/projectiles/TDFGauss01/TDFGauss01_proj.bp',
|
||||
ProjectileLifetimeUsesMultiplier = 2,
|
||||
@@ -252,8 +251,8 @@ UnitBlueprint {
|
||||
RackSalvoSize = 1,
|
||||
RackSlavedToTurret = false,
|
||||
RangeCategory = 'UWRC_DirectFire',
|
||||
RateOfFire = 0.87,
|
||||
TargetCheckInterval = 0.5,
|
||||
RateOfFire = 0.5,
|
||||
TargetCheckInterval = 1,
|
||||
TargetPriorities = {
|
||||
'SPECIALHIGHPRI',
|
||||
'MOBILE',
|
||||
@@ -262,18 +261,18 @@ UnitBlueprint {
|
||||
'ALLUNITS',
|
||||
},
|
||||
TargetRestrictDisallow = 'UNTARGETABLE',
|
||||
TrackingRadius = 38,
|
||||
TurretBoneMuzzle = 'Muzzle',
|
||||
TurretBonePitch = 'Turret_Barrel',
|
||||
TurretBoneYaw = 'Turret',
|
||||
TurretDualManipulators = false,
|
||||
TurretPitch = 0,
|
||||
TurretPitchRange = 45,
|
||||
TurretPitchSpeed = 45,
|
||||
TurretPitchRange = 60,
|
||||
TurretPitchSpeed = 90,
|
||||
TurretYaw = 0,
|
||||
TurretYawRange = 180,
|
||||
TurretYawSpeed = 180,
|
||||
TurretYawSpeed = 90,
|
||||
Turreted = true,
|
||||
UseFiringSolutionInsteadOfAimBone = true,
|
||||
WeaponCategory = 'Direct Fire',
|
||||
WeaponRepackTimeout = 0,
|
||||
WeaponUnpacks = false,
|
||||
@@ -289,6 +288,8 @@ UnitBlueprint {
|
||||
},
|
||||
},
|
||||
BallisticArc = 'RULEUBA_None',
|
||||
BeamCollisionDelay = 1,
|
||||
BeamLifetime = 1,
|
||||
CollideFriendly = false,
|
||||
Damage = 90,
|
||||
DamageRadius = 0,
|
||||
@@ -301,15 +302,14 @@ UnitBlueprint {
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0,
|
||||
FiringTolerance = 1,
|
||||
Label = 'ML',
|
||||
MaxRadius = 9,
|
||||
MuzzleSalvoDelay = 0,
|
||||
MuzzleSalvoSize = 2,
|
||||
MuzzleVelocity = 100,
|
||||
PrefersPrimaryWeaponTarget = true,
|
||||
ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
|
||||
ProjectileLifetimeUsesMultiplier = 2,
|
||||
-- ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
|
||||
-- ProjectileLifetimeUsesMultiplier = 2,
|
||||
ProjectilesPerOnFire = 1,
|
||||
RackBones = {
|
||||
{
|
||||
@@ -320,16 +320,16 @@ UnitBlueprint {
|
||||
RackBone = 'ML_BB',
|
||||
},
|
||||
},
|
||||
RackFireTogether = true,
|
||||
RackFireTogether = false,
|
||||
RackRecoilDistance = 0,
|
||||
RackReloadTimeout = 10,
|
||||
RackSalvoChargeTime = 0,
|
||||
RackSalvoReloadTime = 0,
|
||||
RackSalvoSize = 1,
|
||||
RackSlavedToTurret = true,
|
||||
RackSlavedToTurret = false,
|
||||
RangeCategory = 'UWRC_DirectFire',
|
||||
RateOfFire = 0.2,
|
||||
TargetCheckInterval = 0.5,
|
||||
RateOfFire = 0.5,
|
||||
TargetCheckInterval = 1,
|
||||
TargetPriorities = {
|
||||
'SPECIALHIGHPRI',
|
||||
'MOBILE',
|
||||
@@ -338,18 +338,18 @@ UnitBlueprint {
|
||||
'ALLUNITS',
|
||||
},
|
||||
TargetRestrictDisallow = 'UNTARGETABLE',
|
||||
TrackingRadius = 38,
|
||||
TurretBoneMuzzle = 'ML_MB',
|
||||
TurretBonePitch = 'ML_BB',
|
||||
TurretBoneYaw = 'ML_BB',
|
||||
TurretBoneYaw = 'Turret',
|
||||
TurretDualManipulators = false,
|
||||
TurretPitch = 0,
|
||||
TurretPitchRange = 45,
|
||||
TurretPitchSpeed = 45,
|
||||
TurretPitchRange = 60,
|
||||
TurretPitchSpeed = 90,
|
||||
TurretYaw = 0,
|
||||
TurretYawRange = 180,
|
||||
TurretYawSpeed = 180,
|
||||
TurretYawSpeed = 90,
|
||||
Turreted = true,
|
||||
UseFiringSolutionInsteadOfAimBone = true,
|
||||
WeaponCategory = 'Direct Fire',
|
||||
MinRadius = 0,
|
||||
},
|
||||
@@ -373,7 +373,7 @@ UnitBlueprint {
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0,
|
||||
FiringTolerance = 1,
|
||||
Label = 'MG',
|
||||
MaxRadius = 9,
|
||||
MuzzleSalvoDelay = 0,
|
||||
@@ -396,17 +396,16 @@ UnitBlueprint {
|
||||
RackBone = 'MG_BB2',
|
||||
},
|
||||
},
|
||||
RackFireTogether = true,
|
||||
RackFireTogether = false,
|
||||
RackRecoilDistance = 0,
|
||||
RackReloadTimeout = 10,
|
||||
RackSalvoChargeTime = 0,
|
||||
RackSalvoReloadTime = 0,
|
||||
RackSalvoSize = 1,
|
||||
RackSlavedToTurret = false,
|
||||
PrefersPrimaryWeaponTarget = true,
|
||||
RangeCategory = 'UWRC_DirectFire',
|
||||
RateOfFire = 2.5,
|
||||
TargetCheckInterval = 0.66,
|
||||
RateOfFire = 0.5*2,
|
||||
TargetCheckInterval = 1,
|
||||
TargetPriorities = {
|
||||
'SPECIALHIGHPRI',
|
||||
'TECH3 MOBILE',
|
||||
@@ -423,20 +422,19 @@ UnitBlueprint {
|
||||
'ALLUNITS',
|
||||
},
|
||||
TargetRestrictDisallow = 'UNTARGETABLE',
|
||||
TrackingRadius = 38,
|
||||
TurretBoneMuzzle = 'MG_MB1',
|
||||
TurretBonePitch = 'MG_B',
|
||||
TurretBoneYaw = 'MG_B',
|
||||
TurretDualManipulators = false,
|
||||
TurretPitch = 0,
|
||||
TurretPitchRange = 45,
|
||||
TurretPitchSpeed = 45,
|
||||
TurretPitchRange = 60,
|
||||
TurretPitchSpeed = 90,
|
||||
TurretYaw = 0,
|
||||
TurretYawRange = 10,
|
||||
TurretYawSpeed = 45,
|
||||
TurretYawRange = 30,
|
||||
TurretYawSpeed = 90,
|
||||
Turreted = true,
|
||||
UseFiringSolutionInsteadOfAimBone = true,
|
||||
WeaponCategory = 'Direct Fire',
|
||||
WeaponRepackTimeout = 0,
|
||||
WeaponUnpacks = false,
|
||||
MinRadius = 0,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user