Units automatically path around known hazards (eg static base defenses). Test using SAM and TRAN.
Todo: Ignore hazards when force-moving; Apply only to known enemy hazards; Implement more hazard classes Also add a few files I forgot from previous patches
This commit is contained in:
@@ -149,7 +149,7 @@ namespace OpenRA.Traits
|
||||
var tt = self.World.GetTerrainType(self.Location);
|
||||
terrain = Rules.TerrainTypes[tt].GetSpeedModifier(umt)*self.World.WorldActor.traits
|
||||
.WithInterface<ICustomTerrain>()
|
||||
.Select(t => t.GetSpeedModifier(self.Location, umt))
|
||||
.Select(t => t.GetSpeedModifier(self.Location, self))
|
||||
.Product();
|
||||
}
|
||||
var modifier = self.traits
|
||||
|
||||
Reference in New Issue
Block a user