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

+7 -5
View File
@@ -2,14 +2,16 @@ local TerranWeaponFile = import('/lua/terranweapons.lua')
local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
local ADFLaserLightWeapon = import('/lua/aeonweapons.lua').ADFLaserLightWeapon
local BTSmallLaserWeapon = import('/mods/Supreme Mech Commander 2/lua/btweapons.lua').BTSmallLaserWeapon
---@class LAPPR5T : TWalkingLandUnit
LAPPR5T = Class(TWalkingLandUnit) {
Weapons = {
LRM01 = Class(TSAMLauncher) {},
LRM02 = Class(TSAMLauncher) {},
LRM03 = Class(TSAMLauncher) {},
SL01 = Class(ADFLaserLightWeapon) {},
SL02 = Class(ADFLaserLightWeapon) {},
LT_LRM = Class(TSAMLauncher) {},
RT_RM = Class(TSAMLauncher) {},
LA_LRM = Class(TSAMLauncher) {},
LT_SL = Class(BTSmallLaserWeapon) {},
RT_SL = Class(BTSmallLaserWeapon) {},
},
}
+61 -74
View File
@@ -55,7 +55,7 @@ UnitBlueprint {
'OVERLAYDIRECTFIRE',
'OVERLAYINDIRECTFIRE',
'OVERLAYRADAR',
'PRODUCTSC1',
'BATTLETECH',
'RECLAIMABLE',
'SELECTABLE',
'TECH2',
@@ -69,7 +69,7 @@ UnitBlueprint {
RegenRate = 0,
SurfaceThreatLevel = 158.9,
},
Description = '<LOC PPR5T_desc>80 Ton Assault Mech',
Description = '<LOC PPR5T_desc>Missile Boat Battlemech',
Display = {
Abilities = {
'<LOC ability_amphibious>Amphibious',
@@ -131,7 +131,7 @@ UnitBlueprint {
WaterVisionRadius = 24,
},
Interface = {
HelpText = '<LOC LAPPR5T_help>Salamander PPR-5T',
HelpText = '<LOC LAPPR5T_help>80 Ton (Assault) Salamander PPR-5T',
},
LifeBarHeight = 0.075,
LifeBarOffset = 0.45,
@@ -198,7 +198,7 @@ UnitBlueprint {
CannotAttackGround = false,
CollideFriendly = false,
Damage = 30,
DamageRadius = 0,
DamageRadius = 1,
DamageType = 'BTCluster',
DisplayName = 'Long Range Missiles',
FireTargetLayerCapsTable = {
@@ -207,16 +207,15 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
Label = 'LRM01',
FiringTolerance = 5,
Label = 'LT_LRM',
MaxRadius = 63,
MinRadius = 18,
MuzzleSalvoDelay = 0.1,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 15,
MuzzleVelocity = 25,
-- PrefersPrimaryWeaponTarget = true,
ProjectileId = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp',
ProjectileLifetime = 5,
ProjectileId = '/projectiles/TAAMissileFlayer01/TAAMissileFlayer01_proj.bp',
ProjectileLifetime = 10,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -240,17 +239,16 @@ UnitBlueprint {
RackBone = 'L_LRM',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = true,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_IndirectFire',
RateOfFire = 0.5,
-- RenderFireClock = true,
TargetCheckInterval = 0.2,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -259,16 +257,15 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 104,
TurretBoneMuzzle = 'L_LRM_001',
TurretBonePitch = 'L_LRM',
TurretBoneYaw = 'Torso',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 50,
TurretPitchSpeed = 180,
TurretPitchRange = 90,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 125,
TurretYawRange = 135,
TurretYawSpeed = 90,
Turreted = true,
WeaponCategory = 'Missile',
@@ -286,7 +283,7 @@ UnitBlueprint {
CannotAttackGround = false,
CollideFriendly = false,
Damage = 30,
DamageRadius = 0,
DamageRadius = 1,
DamageType = 'BTCluster',
DisplayName = 'Long Range Missiles',
FireTargetLayerCapsTable = {
@@ -295,16 +292,15 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
Label = 'LRM02',
FiringTolerance = 5,
Label = 'RT_LRM',
MaxRadius = 63,
MinRadius = 18,
MuzzleSalvoDelay = 0.1,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 15,
MuzzleVelocity = 25,
-- PrefersPrimaryWeaponTarget = true,
ProjectileId = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp',
ProjectileLifetime = 5,
ProjectileId = '/projectiles/TAAMissileFlayer01/TAAMissileFlayer01_proj.bp',
ProjectileLifetime = 10,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -328,17 +324,16 @@ UnitBlueprint {
RackBone = 'R_LRM',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = true,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_IndirectFire',
RateOfFire = 0.5,
-- RenderFireClock = true,
TargetCheckInterval = 0.2,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -347,16 +342,15 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 104,
TurretBoneMuzzle = 'R_LRM_001',
TurretBonePitch = 'R_LRM',
TurretBoneYaw = 'Torso',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 50,
TurretPitchSpeed = 180,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 125,
TurretYawRange = 135,
TurretYawSpeed = 90,
Turreted = true,
WeaponCategory = 'Missile',
@@ -374,7 +368,7 @@ UnitBlueprint {
CannotAttackGround = false,
CollideFriendly = false,
Damage = 30,
DamageRadius = 0,
DamageRadius = 1,
DamageType = 'BTCluster',
DisplayName = 'Long Range Missiles',
FireTargetLayerCapsTable = {
@@ -383,16 +377,15 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
Label = 'LRM03',
FiringTolerance = 5,
Label = 'LA_LRM',
MaxRadius = 63,
MinRadius = 18,
MuzzleSalvoDelay = 0.1,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 15,
MuzzleVelocity = 25,
-- PrefersPrimaryWeaponTarget = true,
ProjectileId = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp',
ProjectileLifetime = 5,
ProjectileId = '/projectiles/TAAMissileFlayer01/TAAMissileFlayer01_proj.bp',
ProjectileLifetime = 10,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -416,17 +409,16 @@ UnitBlueprint {
RackBone = 'LA_LRM',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = true,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_IndirectFire',
RateOfFire = 0.5,
-- RenderFireClock = true,
TargetCheckInterval = 0.2,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -435,16 +427,15 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 104,
TurretBoneMuzzle = 'LA_LRM_001',
TurretBonePitch = 'LA_LRM',
TurretBoneYaw = 'Torso',
TurretBoneYaw = 'LA',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 50,
TurretPitchSpeed = 180,
TurretYaw = 0,
TurretYawRange = 125,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 90,
TurretYawRange = 135,
TurretYawSpeed = 90,
Turreted = true,
WeaponCategory = 'Missile',
@@ -460,6 +451,8 @@ UnitBlueprint {
},
},
BallisticArc = 'RULEUBA_None',
BeamCollisionDelay = 1,
BeamLifetime = 1,
CollideFriendly = false,
Damage = 90,
DamageRadius = 0,
@@ -472,15 +465,14 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
Label = 'SL01',
FiringTolerance = 1,
Label = 'LT_SL',
MaxRadius = 9,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleVelocity = 100,
PrefersPrimaryWeaponTarget = true,
ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
ProjectileLifetimeUsesMultiplier = 2,
-- ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
-- ProjectileLifetimeUsesMultiplier = 2,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -499,7 +491,7 @@ UnitBlueprint {
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.5,
TargetCheckInterval = 0.2,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -508,18 +500,15 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 104,
-- HeadingArcCenter = 0,
-- HeadingArcRange = 125,
TurretBoneMuzzle = 'L_SL_Muzzle',
TurretBonePitch = 'L_SL',
TurretBoneYaw = 'Torso',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 90,
TurretPitchSpeed = 45,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 125,
TurretYawRange = 135,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
@@ -537,6 +526,8 @@ UnitBlueprint {
},
},
BallisticArc = 'RULEUBA_None',
BeamCollisionDelay = 1,
BeamLifetime = 1,
CollideFriendly = false,
Damage = 90,
DamageRadius = 0,
@@ -549,15 +540,14 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
Label = 'SL02',
FiringTolerance = 1,
Label = 'RT_SL',
MaxRadius = 9,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleVelocity = 100,
PrefersPrimaryWeaponTarget = true,
ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
ProjectileLifetimeUsesMultiplier = 2,
-- ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
-- ProjectileLifetimeUsesMultiplier = 2,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -576,7 +566,7 @@ UnitBlueprint {
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.5,
TargetCheckInterval = 0.2,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -585,18 +575,15 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 104,
-- HeadingArcCenter = 0,
-- HeadingArcRange = 125,
TurretBoneMuzzle = 'R_SL_Muzzle',
TurretBonePitch = 'R_SL',
TurretBoneYaw = 'Torso',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 90,
TurretPitchSpeed = 45,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 125,
TurretYawRange = 135,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,