don't autotarget trees.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace OpenRa.Game.Traits
|
|||||||
{
|
{
|
||||||
var inRange = Game.FindUnitsInCircle(self.CenterLocation, Game.CellSize * range);
|
var inRange = Game.FindUnitsInCircle(self.CenterLocation, Game.CellSize * range);
|
||||||
|
|
||||||
return inRange.Where(a => a.Owner != self.Owner) /* todo: one day deal with friendly players */
|
return inRange.Where(a => a.Owner != null && a.Owner != self.Owner) /* todo: one day deal with friendly players */
|
||||||
.OrderBy(a => (a.Location - self.Location).LengthSquared)
|
.OrderBy(a => (a.Location - self.Location).LengthSquared)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|||||||
115
units.ini
115
units.ini
@@ -186,6 +186,65 @@ MSLO
|
|||||||
; FENC
|
; FENC
|
||||||
|
|
||||||
|
|
||||||
|
[PBOX]
|
||||||
|
Description=Pillbox
|
||||||
|
Traits=Building, Turreted, RenderBuilding, AttackTurreted, AutoTarget
|
||||||
|
Dimensions=1,1
|
||||||
|
Footprint=x
|
||||||
|
SelectionPriority=3
|
||||||
|
[HBOX]
|
||||||
|
Description=Camo Pillbox
|
||||||
|
Traits=Building, Turreted, RenderBuilding, AttackTurreted, AutoTarget
|
||||||
|
Dimensions=1,1
|
||||||
|
Footprint=x
|
||||||
|
SelectionPriority=3
|
||||||
|
[TSLA]
|
||||||
|
Description=Tesla Coil
|
||||||
|
Traits=Building, RenderBuilding
|
||||||
|
Dimensions=1,2
|
||||||
|
Footprint=_ x
|
||||||
|
SelectionPriority=3
|
||||||
|
[GUN]
|
||||||
|
Description=Turret
|
||||||
|
Traits=Building, Turreted, RenderBuildingTurreted, AttackTurreted, AutoTarget
|
||||||
|
Dimensions=1,1
|
||||||
|
Footprint=x
|
||||||
|
SelectionPriority=3
|
||||||
|
InitialFacing=50
|
||||||
|
[AGUN]
|
||||||
|
Description=AA Gun
|
||||||
|
Traits=Building, Turreted, RenderBuildingTurreted
|
||||||
|
Dimensions=1,2
|
||||||
|
Footprint=_ x
|
||||||
|
SelectionPriority=3
|
||||||
|
InitialFacing=224
|
||||||
|
[FTUR]
|
||||||
|
Description=Flame Turret
|
||||||
|
Traits=Building, RenderBuilding
|
||||||
|
Dimensions=1,1
|
||||||
|
Footprint=x
|
||||||
|
SelectionPriority=3
|
||||||
|
[GAP]
|
||||||
|
Description=Gap Generator
|
||||||
|
Traits=Building, RenderBuilding
|
||||||
|
Dimensions=1,2
|
||||||
|
Footprint=_ x
|
||||||
|
SelectionPriority=3
|
||||||
|
[SAM]
|
||||||
|
Description=SAM Site
|
||||||
|
Traits=Building, Turreted, RenderBuildingTurreted
|
||||||
|
Dimensions=2,1
|
||||||
|
Footprint=xx
|
||||||
|
SelectionPriority=3
|
||||||
|
[MSLO]
|
||||||
|
Description=Missile Silo
|
||||||
|
Traits=Building, RenderBuilding
|
||||||
|
Dimensions=2,1
|
||||||
|
Footprint=xx
|
||||||
|
SelectionPriority=3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[BuildingTypes]
|
[BuildingTypes]
|
||||||
ATEK
|
ATEK
|
||||||
WEAP
|
WEAP
|
||||||
@@ -259,44 +318,6 @@ Dimensions=3,3
|
|||||||
Footprint=xxx xxx xxx
|
Footprint=xxx xxx xxx
|
||||||
Produces=Ship
|
Produces=Ship
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
[PBOX]
|
|
||||||
Description=Pillbox
|
|
||||||
Traits=Building, RenderBuilding
|
|
||||||
Dimensions=1,1
|
|
||||||
Footprint=x
|
|
||||||
SelectionPriority=3
|
|
||||||
[HBOX]
|
|
||||||
Description=Camo Pillbox
|
|
||||||
Traits=Building, RenderBuilding
|
|
||||||
Dimensions=1,1
|
|
||||||
Footprint=x
|
|
||||||
SelectionPriority=3
|
|
||||||
[TSLA]
|
|
||||||
Description=Tesla Coil
|
|
||||||
Traits=Building, RenderBuilding
|
|
||||||
Dimensions=1,2
|
|
||||||
Footprint=_ x
|
|
||||||
SelectionPriority=3
|
|
||||||
[GUN]
|
|
||||||
Description=Turret
|
|
||||||
Traits=Building, Turreted, RenderBuildingTurreted, AttackTurreted, AutoTarget
|
|
||||||
Dimensions=1,1
|
|
||||||
Footprint=x
|
|
||||||
SelectionPriority=3
|
|
||||||
InitialFacing=50
|
|
||||||
[AGUN]
|
|
||||||
Description=AA Gun
|
|
||||||
Traits=Building, Turreted, RenderBuildingTurreted
|
|
||||||
Dimensions=1,2
|
|
||||||
Footprint=_ x
|
|
||||||
SelectionPriority=3
|
|
||||||
InitialFacing=224
|
|
||||||
[FTUR]
|
|
||||||
Description=Flame Turret
|
|
||||||
Traits=Building, RenderBuilding
|
|
||||||
Dimensions=1,1
|
|
||||||
Footprint=x
|
|
||||||
SelectionPriority=3
|
|
||||||
[FACT]
|
[FACT]
|
||||||
Description=Construction Yard
|
Description=Construction Yard
|
||||||
Traits=Building, RenderBuilding
|
Traits=Building, RenderBuilding
|
||||||
@@ -330,24 +351,6 @@ Traits=Building, RenderBuilding
|
|||||||
Dimensions=2,2
|
Dimensions=2,2
|
||||||
Footprint=xx xx
|
Footprint=xx xx
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
[GAP]
|
|
||||||
Description=Gap Generator
|
|
||||||
Traits=Building, RenderBuilding
|
|
||||||
Dimensions=1,2
|
|
||||||
Footprint=_ x
|
|
||||||
SelectionPriority=3
|
|
||||||
[SAM]
|
|
||||||
Description=SAM Site
|
|
||||||
Traits=Building, Turreted, RenderBuildingTurreted
|
|
||||||
Dimensions=2,1
|
|
||||||
Footprint=xx
|
|
||||||
SelectionPriority=3
|
|
||||||
[MSLO]
|
|
||||||
Description=Missile Silo
|
|
||||||
Traits=Building, RenderBuilding
|
|
||||||
Dimensions=2,1
|
|
||||||
Footprint=xx
|
|
||||||
SelectionPriority=3
|
|
||||||
[AFLD]
|
[AFLD]
|
||||||
Description=Airstrip
|
Description=Airstrip
|
||||||
Traits=Building, RenderBuilding, Production
|
Traits=Building, RenderBuilding, Production
|
||||||
|
|||||||
Reference in New Issue
Block a user