Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changelog/snippets/balance.7147.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- (#7147) Increase Scathis accuracy and survivability so it can better compete against other enders.

**Scathis: Experimental Mobile Rapid-Fire Artillery (URL0401)**
- Health: 9000 -> 17000
- Regen: 0 -> 134
- Add stealth field with 24 radius and 400 e/s maintenance.
- Proton Artillery:
- Fixed spread radius: 70 -> 63 (approximately +23% dmg/area)
1 change: 0 additions & 1 deletion changelog/snippets/category.7158.md

This file was deleted.

51 changes: 51 additions & 0 deletions units/URL0401/URL0401_Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
local CLandUnit = import("/lua/cybranunits.lua").CLandUnit
local CIFArtilleryWeapon = import("/lua/cybranweapons.lua").CIFArtilleryWeapon
local EffectTemplate = import("/lua/effecttemplates.lua")
local EffectUtil = import("/lua/effectutilities.lua")
local Util = import("/lua/utilities.lua")

local barrelBones = { 'Turret_Barrel_F_B01', 'Turret_Barrel_E_B01', 'Turret_Barrel_D_B01', 'Turret_Barrel_C_B01',
'Turret_Barrel_B_B01', 'Turret_Barrel_A_B01' }
local recoilBones = { 'Turret_Barrel_F_B02', 'Turret_Barrel_E_B02', 'Turret_Barrel_D_B02', 'Turret_Barrel_C_B02',
Expand Down Expand Up @@ -160,6 +162,55 @@ URL0401 = ClassUnit(CLandUnit) {
end,
},
},

IntelEffects = {
{
Bones = {
'URL0401',
},
Offset = {
1.05,
2.2,
-4.05,
},
Scale = 0.4,
Type = 'Jammer01',
},
{
Bones = {
'URL0401',
},
Offset = {
-1.05,
2.2,
-4.05,
},
Scale = 0.4,
Type = 'Jammer01',
},
},

OnStopBeingBuilt = function(self, builder, layer)
CLandUnit.OnStopBeingBuilt(self, builder, layer)
self:SetMaintenanceConsumptionActive()
end,

---@param self RadarJammerUnit
OnIntelEnabled = function(self)
CLandUnit.OnIntelEnabled(self)
if self.IntelEffects and not self.IntelFxOn then
self.IntelEffectsBag = {}
self:CreateTerrainTypeEffects(self.IntelEffects, 'FXIdle', self.Layer, nil, self.IntelEffectsBag)
self.IntelFxOn = true
end
end,

---@param self RadarJammerUnit
OnIntelDisabled = function(self)
CLandUnit.OnIntelDisabled(self)
EffectUtil.CleanupEffectBag(self, 'IntelEffectsBag')
self.IntelFxOn = false
end,
}

TypeClass = URL0401
21 changes: 18 additions & 3 deletions units/URL0401/URL0401_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ UnitBlueprint{
"LOWSELECTPRIO",
"MOBILE",
"NEEDMOBILEBUILD",
"OVERLAYCOUNTERINTEL",
"OVERLAYINDIRECTFIRE",
"PRODUCTSC1",
"RECLAIMABLE",
Expand All @@ -41,8 +42,9 @@ UnitBlueprint{
Defense = {
ArmorType = "Experimental",
EconomyThreatLevel = 1600,
Health = 9000,
MaxHealth = 9000,
Health = 17000,
MaxHealth = 17000,
RegenRate = 134,
},
Display = {
Abilities = {
Expand Down Expand Up @@ -113,6 +115,7 @@ UnitBlueprint{
BuildCostEnergy = 4000000,
BuildCostMass = 220000,
BuildTime = 240000,
MaintenanceConsumptionPerSecondEnergy = 400,
TeleportEnergyMod = 0.15,
TeleportMassMod = 1,
TeleportTimeMod = 0.01,
Expand All @@ -132,10 +135,22 @@ UnitBlueprint{
},
FactionName = "Cybran",
Icon = "amph",
OrderOverrides = {
RULEUTC_StealthToggle = {
bitmapId = "stealth-field",
helpText = "toggle_stealth_field",
},
},
ToggleCaps = { RULEUTC_StealthToggle = true },
SelectionPriority = 5,
UnitName = "<LOC url0401_name>Scathis",
},
Intel = {
RadarStealth = true,
RadarStealthField = true,
RadarStealthFieldRadius = 24,
SonarStealth = true,
SonarStealthFieldRadius = 24,
VisionRadius = 26,
WaterVisionRadius = 24,
},
Expand Down Expand Up @@ -201,7 +216,7 @@ UnitBlueprint{
},
FiringRandomness = 0,
FiringTolerance = 0,
FixedSpreadRadius = 70,
FixedSpreadRadius = 63,
Label = "Gun01",
LeadTarget = true,
MaxRadius = 4000,
Expand Down