Index: binaries/data/mods/public/maps/scripts/TriggerHelper.js =================================================================== --- binaries/data/mods/public/maps/scripts/TriggerHelper.js +++ binaries/data/mods/public/maps/scripts/TriggerHelper.js @@ -335,6 +335,19 @@ if (pos.y <= cmpWaterManager.GetWaterLevel(pos.x, pos.z)) continue; + let size = this.GetMapSizeTerrain(); + let halfSize = size / 2; + let edgeSize = 3; + if (cmpRangeManager.GetLosCircular()) + { + let mapCenter = new Vector3D(halfSize, 0, halfSize); + if (pos.horizDistanceTo(mapCenter) >= halfSize + edgeSize) + continue; + } + else + if (pos.x < edgeSize || pos.z < edgeSize || pos.x > size - edgeSize || pos.z > size - edgeSize) + continue; + if (cmpTerritoryManager.GetOwner(pos.x, pos.z) == 0) neutralSpawnPoints.push(ent); else