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

+24 -23
View File
@@ -11,36 +11,37 @@
local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
local CDFParticleCannonWeapon = import('/lua/cybranweapons.lua').CDFParticleCannonWeapon
---@class SRRIFLEMANIIC : TWalkingLandUnit
SRRIFLEMANIIC = Class(TWalkingLandUnit) {
Weapons = {
CLPLAA = Class(CDFParticleCannonWeapon) {},
-- CLPLAA = Class(CDFParticleCannonWeapon) {},
CLPL = Class(CDFParticleCannonWeapon) {},
},
OnCreate = function(self)
TWalkingLandUnit.OnCreate(self)
self:SetWeaponEnabledByLabel('CLPL', false)
end,
-- OnCreate = function(self)
-- TWalkingLandUnit.OnCreate(self)
-- self:SetWeaponEnabledByLabel('CLPL', false)
-- end,
OnScriptBitSet = function(self, bit)
TWalkingLandUnit.OnScriptBitSet(self, bit)
if bit == 1 then
self:SetWeaponEnabledByLabel('CLPL', true)
self:SetWeaponEnabledByLabel('CLPLAA', false)
self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPLAA')
:GetHeadingPitch())
end
end,
-- OnScriptBitSet = function(self, bit)
-- TWalkingLandUnit.OnScriptBitSet(self, bit)
-- if bit == 1 then
-- self:SetWeaponEnabledByLabel('CLPL', true)
-- self:SetWeaponEnabledByLabel('CLPLAA', false)
-- self:GetWeaponManipulatorByLabel('CLPL'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPLAA')
-- :GetHeadingPitch())
-- end
-- end,
OnScriptBitClear = function(self, bit)
TWalkingLandUnit.OnScriptBitClear(self, bit)
if bit == 1 then
self:SetWeaponEnabledByLabel('CLPL', false)
self:SetWeaponEnabledByLabel('CLPLAA', true)
self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPL')
:GetHeadingPitch())
end
end,
-- OnScriptBitClear = function(self, bit)
-- TWalkingLandUnit.OnScriptBitClear(self, bit)
-- if bit == 1 then
-- self:SetWeaponEnabledByLabel('CLPL', false)
-- self:SetWeaponEnabledByLabel('CLPLAA', true)
-- self:GetWeaponManipulatorByLabel('CLPLAA'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('CLPL')
-- :GetHeadingPitch())
-- end
-- end,
}
TypeClass = SRRIFLEMANIIC
+105 -120
View File
@@ -56,7 +56,7 @@ UnitBlueprint {
'MOBILE',
'OVERLAYDIRECTFIRE',
'OVERLAYRADAR',
'PRODUCTSC1',
'BATTLETECH',
'RECLAIMABLE',
'SELECTABLE',
'SNOWRAVEN',
@@ -77,7 +77,7 @@ UnitBlueprint {
'<LOC ability_radar>Radar',
'Clan Extended Sensors |-| 1470m Range',
'<LOC ability_omni>Omni',
'Clan BAP |-| 1470m Range',
'Clan Active Probe (Beagle)|-| 1470m Range',
'4x Clan Large Pulse Laser |-| Max: 690m',
'1x Clan Small Laser |-| Max:90m',
},
@@ -138,14 +138,6 @@ UnitBlueprint {
},
FactionName = 'CLAN',
Icon = 'amph',
OrderOverrides = {
RULEUTC_WeaponToggle = {
bitmapId = 'toggle-weapon-air',
},
},
ToggleCaps = {
RULEUTC_WeaponToggle = true,
},
TechLevel = 'RULEUTL_Basic',
UnitName = '<LOC SRRIFLEMANIIC_name>Rifleman IIC',
UnitWeight = 1,
@@ -211,106 +203,103 @@ UnitBlueprint {
Level5 = 80,
},
Weapon = {
{
AboveWaterTargetsOnly = true,
AlwaysRecheckTarget = true,
Audio = {
Fire = Sound {
Bank = 'URLWeapon',
Cue = 'URL0202_Cannon_Dbl',
LodCutoff = 'Weapon_LodCutoff',
},
},
BallisticArc = 'RULEUBA_None',
BeamCollisionDelay = 0.3,
BeamLifetime = 0.5,
CollideFriendly = false,
Damage = 300,
DamageType = 'BTDirectEnergy',
DisplayName = 'Clan Large Pulse Laser',
FireTargetLayerCapsTable = {
Land = 'Air',
Water = 'Air',
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 0,
Label = 'CLPLAA',
LeadTarget = false,
MaxRadius = 60,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
ProjectilesPerOnFire = 1,
RackBones = {
{
MuzzleBones = {
'LPL_Muzzle_01',
},
RackBone = 'LPL_Barrel_01',
},
{
MuzzleBones = {
'LPL_Muzzle_02',
},
RackBone = 'LPL_Barrel_02',
},
{
MuzzleBones = {
'LPL_Muzzle_03',
},
RackBone = 'LPL_Barrel_03',
},
{
MuzzleBones = {
'LPL_Muzzle_04',
},
RackBone = 'LPL_Barrel_04',
},
},
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 2,
ReTargetOnMiss = true,
TargetCheckInterval = 0.25,
TargetPriorities = {
'SPECIALHIGHPRI',
'AIR MOBILE HIGHPRIAIR',
'AIR MOBILE TECH3 BOMBER',
'AIR MOBILE BOMBER',
'AIR MOBILE GROUNDATTACK',
'AIR MOBILE TRANSPORTATION',
'AIR MOBILE',
'SPECIALLOWPRI',
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
ToggleWeapon = 'CLPL',
TrackingRadius = 148,
TurretBoneDualMuzzle = 'LPL_Muzzle_01',
TurretBoneDualPitch = 'R_Arm',
TurretBoneMuzzle = 'LPL_Muzzle_03',
TurretBonePitch = 'L_Arm',
TurretBoneYaw = 'Torso',
TurretDualManipulators = true,
TurretPitch = 35,
TurretPitchRange = 40,
TurretPitchSpeed = 180,
TurretYaw = 0,
TurretYawRange = 180,
TurretYawSpeed = 180,
Turreted = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
MinRadius = 0,
MuzzleVelocity = 100,
},
-- {
-- AboveWaterTargetsOnly = true,
-- AlwaysRecheckTarget = true,
-- Audio = {
-- Fire = Sound {
-- Bank = 'URLWeapon',
-- Cue = 'URL0202_Cannon_Dbl',
-- LodCutoff = 'Weapon_LodCutoff',
-- },
-- },
-- BallisticArc = 'RULEUBA_None',
-- BeamCollisionDelay = 0.5,
-- BeamLifetime = 0.5,
-- CollideFriendly = false,
-- Damage = 300,
-- DamageType = 'BTDirectEnergy',
-- DisplayName = 'Clan Large Pulse Laser',
-- FireTargetLayerCapsTable = {
-- Land = 'Air',
-- Water = 'Air',
-- },
-- FiringRandomness = 0.3,
-- FiringRandomnessWhileMoving = 1.5,
-- FiringTolerance = 1,
-- Label = 'CLPLAA',
-- LeadTarget = false,
-- MaxRadius = 60,
-- MuzzleSalvoDelay = 0,
-- MuzzleSalvoSize = 1,
-- ProjectilesPerOnFire = 1,
-- RackBones = {
-- {
-- MuzzleBones = {
-- 'LPL_Muzzle_01',
-- },
-- RackBone = 'LPL_Barrel_01',
-- },
-- {
-- MuzzleBones = {
-- 'LPL_Muzzle_02',
-- },
-- RackBone = 'LPL_Barrel_02',
-- },
-- {
-- MuzzleBones = {
-- 'LPL_Muzzle_03',
-- },
-- RackBone = 'LPL_Barrel_03',
-- },
-- {
-- MuzzleBones = {
-- 'LPL_Muzzle_04',
-- },
-- RackBone = 'LPL_Barrel_04',
-- },
-- },
-- RackFireTogether = false,
-- RackRecoilDistance = 0,
-- RackReloadTimeout = 10,
-- RackSalvoChargeTime = 0,
-- RackSalvoReloadTime = 0,
-- RackSalvoSize = 4,
-- RackSlavedToTurret = false,
-- RangeCategory = 'UWRC_DirectFire',
-- RateOfFire = 0.5,
-- TargetCheckInterval = 1,
-- TargetPriorities = {
-- 'SPECIALHIGHPRI',
-- 'AIR MOBILE HIGHPRIAIR',
-- 'AIR MOBILE TECH3 BOMBER',
-- 'AIR MOBILE BOMBER',
-- 'AIR MOBILE GROUNDATTACK',
-- 'AIR MOBILE TRANSPORTATION',
-- 'AIR MOBILE',
-- 'SPECIALLOWPRI',
-- 'ALLUNITS',
-- },
-- TargetRestrictDisallow = 'UNTARGETABLE',
-- TurretBoneDualMuzzle = 'LPL_Muzzle_01',
-- TurretBoneDualPitch = 'R_Arm',
-- TurretBoneMuzzle = 'LPL_Muzzle_03',
-- TurretBonePitch = 'L_Arm',
-- TurretBoneYaw = 'Torso',
-- TurretDualManipulators = true,
-- TurretPitch = 35,
-- TurretPitchRange = 40,
-- TurretPitchSpeed = 180,
-- TurretYaw = 0,
-- TurretYawRange = 180,
-- TurretYawSpeed = 180,
-- Turreted = true,
-- WeaponCategory = 'Direct Fire',
-- WeaponRepackTimeout = 0,
-- WeaponUnpacks = false,
-- MinRadius = 0,
-- MuzzleVelocity = 100,
-- },
{
AboveWaterTargetsOnly = true,
Audio = {
@@ -321,7 +310,7 @@ UnitBlueprint {
},
},
BallisticArc = 'RULEUBA_None',
BeamCollisionDelay = 0.3,
BeamCollisionDelay = 0.5,
BeamLifetime = 0.5,
CollideFriendly = false,
Damage = 300,
@@ -334,7 +323,6 @@ UnitBlueprint {
},
FiringTolerance = 10,
Label = 'CLPL',
LeadTarget = false,
MaxRadius = 60,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
@@ -370,12 +358,11 @@ UnitBlueprint {
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSalvoSize = 4,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 2,
ReTargetOnMiss = false,
TargetCheckInterval = 0.25,
RateOfFire = 0.5,
TargetCheckInterval = 1,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
@@ -384,8 +371,6 @@ UnitBlueprint {
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
ToggleWeapon = 'AAGun',
TrackingRadius = 148,
TurretBoneDualMuzzle = 'LPL_Muzzle_01',
TurretBoneDualPitch = 'R_Arm',
TurretBoneMuzzle = 'LPL_Muzzle_03',
@@ -393,14 +378,14 @@ UnitBlueprint {
TurretBoneYaw = 'Torso',
TurretDualManipulators = true,
TurretPitch = 0,
TurretPitchRange = 40,
TurretPitchRange = 45,
TurretPitchSpeed = 90,
TurretYaw = 0,
TurretYawRange = 180,
TurretYawSpeed = 180,
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Direct Fire',
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
MinRadius = 0,
MuzzleVelocity = 100,