From 36fee83a8ae2f6b26bfb6918c1bfd34786b08dca Mon Sep 17 00:00:00 2001 From: Aaron Warner Date: Sat, 22 Jul 2023 10:19:48 +1200 Subject: [PATCH 1/3] Change default enemyIndex from -1 to nil as this was found to cause issues with threat detection. --- lua/AI/aiattackutilities.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/AI/aiattackutilities.lua b/lua/AI/aiattackutilities.lua index baad7d707c..33cbe7cd80 100644 --- a/lua/AI/aiattackutilities.lua +++ b/lua/AI/aiattackutilities.lua @@ -212,7 +212,7 @@ function GetBestThreatTarget(aiBrain, platoon, bSkipPathability) -- Need to use overall so we can get all the threat points on the map and then filter from there -- if a specific threat is used, it will only report back threat locations of that type - local enemyIndex = -1 + local enemyIndex = nil if aiBrain:GetCurrentEnemy() and TargetCurrentEnemy then enemyIndex = aiBrain:GetCurrentEnemy():GetArmyIndex() end From 00861088b3cf29e09ef24a8e0ba6125ecd503ba4 Mon Sep 17 00:00:00 2001 From: Aaron Warner Date: Fri, 28 Jul 2023 19:09:42 +1200 Subject: [PATCH 2/3] revert acu values to a level between a default acu and a gun upgraded acu --- units/UAL0001/UAL0001_unit.bp | 2 +- units/UEL0001/UEL0001_unit.bp | 2 +- units/URL0001/URL0001_unit.bp | 2 +- units/XSL0001/XSL0001_unit.bp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/units/UAL0001/UAL0001_unit.bp b/units/UAL0001/UAL0001_unit.bp index 84947010f9..39278d53a8 100644 --- a/units/UAL0001/UAL0001_unit.bp +++ b/units/UAL0001/UAL0001_unit.bp @@ -69,7 +69,7 @@ UnitBlueprint{ RegenRate = 10, SkipDynamicThreatCalculations = true, SubThreatLevel = 0, - SurfaceThreatLevel = 765, + SurfaceThreatLevel = 45, }, Display = { Abilities = { diff --git a/units/UEL0001/UEL0001_unit.bp b/units/UEL0001/UEL0001_unit.bp index 763ab5267b..6a2f9d1340 100644 --- a/units/UEL0001/UEL0001_unit.bp +++ b/units/UEL0001/UEL0001_unit.bp @@ -76,7 +76,7 @@ UnitBlueprint{ RegenRate = 10, SkipDynamicThreatCalculations = true, SubThreatLevel = 0, - SurfaceThreatLevel = 765, + SurfaceThreatLevel = 45, }, Display = { Abilities = { diff --git a/units/URL0001/URL0001_unit.bp b/units/URL0001/URL0001_unit.bp index 0bce3a5b64..aa72873134 100644 --- a/units/URL0001/URL0001_unit.bp +++ b/units/URL0001/URL0001_unit.bp @@ -71,7 +71,7 @@ UnitBlueprint{ RegenRate = 18, SkipDynamicThreatCalculations = true, SubThreatLevel = 0, - SurfaceThreatLevel = 1519, + SurfaceThreatLevel = 45, }, Display = { Abilities = { diff --git a/units/XSL0001/XSL0001_unit.bp b/units/XSL0001/XSL0001_unit.bp index f3fc103554..28124b7561 100644 --- a/units/XSL0001/XSL0001_unit.bp +++ b/units/XSL0001/XSL0001_unit.bp @@ -82,7 +82,7 @@ UnitBlueprint{ RegenRate = 10, SkipDynamicThreatCalculations = true, SubThreatLevel = 0, - SurfaceThreatLevel = 765, + SurfaceThreatLevel = 45, }, Display = { Abilities = { From 7447e6f9721a9ce1781f4473b3bb10f5bb5d3255 Mon Sep 17 00:00:00 2001 From: Aaron Warner Date: Fri, 28 Jul 2023 19:14:19 +1200 Subject: [PATCH 3/3] revert aiattackutilities unintended change (its covered by another PR) --- lua/AI/aiattackutilities.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/AI/aiattackutilities.lua b/lua/AI/aiattackutilities.lua index 33cbe7cd80..baad7d707c 100644 --- a/lua/AI/aiattackutilities.lua +++ b/lua/AI/aiattackutilities.lua @@ -212,7 +212,7 @@ function GetBestThreatTarget(aiBrain, platoon, bSkipPathability) -- Need to use overall so we can get all the threat points on the map and then filter from there -- if a specific threat is used, it will only report back threat locations of that type - local enemyIndex = nil + local enemyIndex = -1 if aiBrain:GetCurrentEnemy() and TargetCurrentEnemy then enemyIndex = aiBrain:GetCurrentEnemy():GetArmyIndex() end