Introducing per-player shrouds.
- Each player has their own shroud and their visibility does not extend outside of the shroud. - Units and buildings can no longer target other units outside of their visibility. Buildings can still be targetted if they have been explored. - GPS will provide visibility in the fog-of-war. - Spies that infiltrate radar domes will gain their victim's exploration and reset it on all clients (if the victim does not have GPS)
This commit is contained in:
@@ -97,7 +97,7 @@ namespace OpenRA.Mods.RA
|
||||
if (chargeTick <= 0 // Can jump
|
||||
&& (self.Location - xy).Length <= Info.JumpDistance // Within jump range
|
||||
&& movement.CanEnterCell(xy) // Can enter cell
|
||||
&& (ignoreVis || self.World.LocalShroud.IsExplored(xy))) // Not in shroud
|
||||
&& (ignoreVis || self.Owner.Shroud.IsExplored(xy))) // Not in shroud
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user