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

+3 -1
View File
@@ -3,7 +3,9 @@ local ADFCannonOblivionWeapon = import('/lua/aeonweapons.lua').ADFCannonOblivion
local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
local ADFLaserLightWeapon = import('/lua/aeonweapons.lua').ADFLaserLightWeapon
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
local BTSmallLaserWeapon = import('/mods/Supreme Mech Commander 2/lua/btweapons.lua').BTSmallLaserWeapon
---@class CLANKIRGHIZB : TAirUnit
CLANKIRGHIZB = Class(TAirUnit) {
PlayDestructionEffects = true,
DamageEffectPullback = 0.25,
@@ -14,7 +16,7 @@ CLANKIRGHIZB = Class(TAirUnit) {
CERPPC2 = Class(ADFCannonOblivionWeapon) {},
CERPPC3 = Class(ADFCannonOblivionWeapon) {},
CLRM = Class(TSAMLauncher) {},
CERSL = Class(ADFLaserLightWeapon) {},
CERSL = Class(BTSmallLaserWeapon) {},
CMPL = Class(CDFParticleCannonWeapon) {},
},
}
+61 -68
View File
@@ -96,17 +96,15 @@ UnitBlueprint {
'AIR',
'ANTIAIR',
'BOMBER',
'BUILTBYTIER1FACTORY',
'BUILTBYTIER2FACTORY',
'BUILTBYTIER3FACTORY',
'CLAN',
'HIGHALTAIR',
'MOBILE',
'OVERLAYRADAR',
'PRODUCTSC1',
'BATTLETECH',
'RECLAIMABLE',
'SELECTABLE',
'TECH1',
'TECH3',
'VISIBLETORECON',
},
CollisionOffsetY = 0,
@@ -117,7 +115,7 @@ UnitBlueprint {
MaxHealth = 7980,
RegenRate = 0,
},
Description = '<LOC CLANKIRGHIZB_desc>Kirghiz OmniFighter',
Description = '<LOC CLANKIRGHIZB_desc>Attack Fighter',
Display = {
Abilities = {
'<LOC ability_aa>Anti-Air',
@@ -224,7 +222,7 @@ UnitBlueprint {
},
FactionName = 'CLAN',
Icon = 'air',
TechLevel = 'RULEUTL_Basic',
TechLevel = 'RULEUTL_Secret',
UnitName = '<LOC CLANKIRGHIZB_name>Kirghiz B',
UnitWeight = 1,
},
@@ -233,7 +231,7 @@ UnitBlueprint {
VisionRadius = 24,
},
Interface = {
HelpText = '<LOC CLANKIRGHIZB_help>Fighter/Ground Strike',
HelpText = '<LOC CLANKIRGHIZB_help>100 Ton (Heavy) OmniFighter Kirghiz B',
},
LifeBarHeight = 0.075,
LifeBarOffset = 0.65,
@@ -278,7 +276,7 @@ UnitBlueprint {
Level4 = 40,
Level5 = 80,
},
Weapon = {
Weapon = { -- TODO fix PPCs to ERPPCs
{
AboveWaterTargetsOnly = false,
Audio = {
@@ -300,7 +298,7 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'CERPPC1',
MaxRadius = 54,
MinRadius = 9,
@@ -318,7 +316,7 @@ UnitBlueprint {
RackBone = 'NOSPPC_BB',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
@@ -326,8 +324,8 @@ UnitBlueprint {
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.13,
TargetCheckInterval = 0.5,
RateOfFire = 0.5,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -336,18 +334,18 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 114,
TurretBoneMuzzle = 'NOSPPC_MB',
TurretBonePitch = 'NOSPPC_BB',
TurretBoneYaw = 'NOSPPC_BB',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 45,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 45,
TurretYawRange = 60,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
@@ -373,7 +371,7 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'CERPPC2',
MaxRadius = 54,
MinRadius = 9,
@@ -392,7 +390,7 @@ UnitBlueprint {
RackBone = 'RPPC_BB',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
@@ -400,8 +398,8 @@ UnitBlueprint {
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.13,
TargetCheckInterval = 0.5,
RateOfFire = 0.5,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -410,18 +408,18 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 114,
TurretBoneMuzzle = 'RPPC_MB',
TurretBonePitch = 'RPPC_BB',
TurretBoneYaw = 'RPPC_BB',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 45,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 45,
TurretYawRange = 60,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
@@ -447,7 +445,7 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'CERPPC3',
MaxRadius = 54,
MinRadius = 9,
@@ -466,7 +464,7 @@ UnitBlueprint {
RackBone = 'LPPC_BB',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
@@ -474,8 +472,8 @@ UnitBlueprint {
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.13,
TargetCheckInterval = 0.5,
RateOfFire = 0.5,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -484,23 +482,23 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 114,
TurretBoneMuzzle = 'LPPC_MB',
TurretBonePitch = 'LPPC_BB',
TurretBoneYaw = 'LPPC_BB',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 45,
TurretPitchRange = 60,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 45,
TurretYawRange = 60,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
},
{
{ -- TODO: split into 4 weapons
AlwaysRecheckTarget = true,
Audio = {
Fire = Sound {
@@ -514,7 +512,7 @@ UnitBlueprint {
CannotAttackGround = false,
CollideFriendly = false,
Damage = 30,
DamageRadius = 0,
DamageRadius = 1,
DamageType = 'BTCluster',
DisplayName = 'Clan Long Range Missiles',
FireTargetLayerCapsTable = {
@@ -523,7 +521,7 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'CLRM',
MaxRadius = 63,
MinRadius = 0,
@@ -531,8 +529,8 @@ UnitBlueprint {
MuzzleSalvoSize = 20,
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 = {
{
@@ -661,7 +659,7 @@ UnitBlueprint {
RackBone = 'LRM5_BB',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
@@ -669,9 +667,8 @@ UnitBlueprint {
RackSalvoSize = 1,
RackSlavedToTurret = true,
RangeCategory = 'UWRC_IndirectFire',
RateOfFire = 0.5,
RenderFireClock = true,
TargetCheckInterval = 0.3,
RateOfFire = 0.5*4,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -680,17 +677,16 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 114,
TurretBoneMuzzle = 'LRM3_MB04',
TurretBonePitch = 'LRM3_MB04',
TurretBoneYaw = 'LRM3_MB04',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 50,
TurretPitchSpeed = 180,
TurretPitchRange = 0,
TurretPitchSpeed = 0,
TurretYaw = 0,
TurretYawRange = 10,
TurretYawSpeed = 90,
TurretYawRange = 0,
TurretYawSpeed = 0,
Turreted = false,
WeaponCategory = 'Missile',
},
@@ -705,6 +701,8 @@ UnitBlueprint {
},
AutoInitiateAttackCommand = true,
BallisticArc = 'RULEUBA_None',
BeamCollisionDelay = 1,
BeamLifetime = 1,
CannotAttackGround = false,
CollideFriendly = false,
Damage = 150,
@@ -716,15 +714,15 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'CERSL',
MaxRadius = 18,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 2,
MuzzleSalvoSize = 1,
MuzzleVelocity = 100,
PrefersPrimaryWeaponTarget = true,
ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
ProjectileLifetimeUsesMultiplier = 1.15,
-- ProjectileId = '/projectiles/CDFLaserHeavy01/CDFLaserHeavy01_proj.bp',
-- ProjectileLifetimeUsesMultiplier = 1.15,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -734,7 +732,7 @@ UnitBlueprint {
RackBone = 'ERSL_BB',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
@@ -742,8 +740,8 @@ UnitBlueprint {
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.2,
TargetCheckInterval = 0.5,
RateOfFire = 0.5,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -752,20 +750,19 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 114,
TurretBoneMuzzle = 'ERSL_MB',
TurretBonePitch = 'ERSL_BB',
TurretBoneYaw = 'ERSL_BB',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 60,
TurretPitchSpeed = 180,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 90,
TurretYawSpeed = 180,
TurretYawRange = 60,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
MinRadius = 0,
},
@@ -782,7 +779,7 @@ UnitBlueprint {
BallisticArc = 'RULEUBA_None',
CannotAttackGround = true,
CollideFriendly = false,
BeamCollisionDelay = 0.3,
BeamCollisionDelay = 0.5,
BeamLifetime = 0.5,
Damage = 210,
DamageType = 'BTDirectEnergy',
@@ -793,13 +790,11 @@ UnitBlueprint {
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'CMPL',
LeadTarget = false,
MaxRadius = 36,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
PrefersPrimaryWeaponTarget = false,
ProjectilesPerOnFire = 1,
RackBones = {
{
@@ -809,7 +804,7 @@ UnitBlueprint {
RackBone = 'MPL_BB',
},
},
RackFireTogether = true,
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
@@ -817,9 +812,8 @@ UnitBlueprint {
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.57,
ReTargetOnMiss = true,
TargetCheckInterval = 0.25,
RateOfFire = 0.5,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'TECH1 MOBILE',
@@ -830,20 +824,19 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 114,
TurretBoneMuzzle = 'MPL_MB',
TurretBonePitch = 'MPL_BB',
TurretBoneYaw = 'MPL_BB',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 60,
TurretPitchSpeed = 180,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 90,
TurretYawSpeed = 180,
TurretYawSpeed = 90,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
MinRadius = 0,
MuzzleVelocity = 100,
@@ -856,7 +849,7 @@ UnitBlueprint {
DamageType = 'Normal',
DisplayName = 'Air Crash',
DummyWeapon = true,
FiringTolerance = 0,
FiringTolerance = 1,
Label = 'DeathImpact',
WeaponCategory = 'Death',
TrackingRadius = 114,