reduced cyborg engineer LOSs

minor CPU AI refactoring
This commit is contained in:
devZoGok
2026-04-24 19:52:55 +03:00
parent 37418b125e
commit a7a89e00a0
2 changed files with 5 additions and 7 deletions
+1 -3
View File
@@ -450,9 +450,7 @@ function Player:buildNavalFactory(arguments)
navalFactory = self:getUnitsByClass(UnitClass.NAVAL_FACTORY, 1)[1]
if navalFactory then
if not self.navalRallyPoint then
self.navalRallyPoint = self:getUnitsByClass(UnitClass.NAVAL_FACTORY, 1)[1]:toFactory():getRallyPoint()
end
if not self.navalRallyPoint then self.navalRallyPoint = navalFactory:toFactory():getRallyPoint() end
return (navalFactory:toStructure():isComplete() and BTNodeResult.SUCCESS or BTNodeResult.RUNNING)
end
@@ -392,7 +392,7 @@ units = {
albedoPath = 'tank.jpg',
colorNodes = {'TankASHead'},
selectionSfx = PATH .. 'Sounds/Units/Tanks/selection.ogg',
speed = .5,
speed = 5,
destinationOffset = .1,
anglePrecision = .1,
maxTurnAngle = .1,
@@ -759,7 +759,7 @@ units = {
cost = 500,
size = {x = 4.95, y = 6.59, z = 4.11},
hitboxOffset = {x = .178, y = 3.27, z = 0},
lineOfSight = 400,
lineOfSight = 150,
name = 'Engineer',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
@@ -840,7 +840,7 @@ units = {
cost = 500,
size = {x = 3.12, y = 5.31, z = 2.82},
hitboxOffset = {x = 0, y = 2.83, z = .4},
lineOfSight = 600,
lineOfSight = 150,
name = 'Engineer',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
@@ -921,7 +921,7 @@ units = {
cost = 500,
size = {x = 3.65, y = 5.71, z = 3.86},
hitboxOffset = {x = 0, y = 2.9, z = .55},
lineOfSight = 200,
lineOfSight = 150,
name = 'Engineer',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',