Add Visualization chat commands
This commit is contained in:
@@ -54,12 +54,9 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
{
|
||||
var world = firedBy.World;
|
||||
|
||||
if (world.LocalPlayer != null)
|
||||
{
|
||||
var devMode = world.LocalPlayer.PlayerActor.TraitOrDefault<DeveloperMode>();
|
||||
if (devMode != null && devMode.ShowCombatGeometry)
|
||||
world.WorldActor.Trait<WarheadDebugOverlay>().AddImpact(pos, Range, DebugOverlayColor);
|
||||
}
|
||||
var debugVis = world.WorldActor.TraitOrDefault<DebugVisualizations>();
|
||||
if (debugVis != null && debugVis.CombatGeometry)
|
||||
world.WorldActor.Trait<WarheadDebugOverlay>().AddImpact(pos, Range, DebugOverlayColor);
|
||||
|
||||
// This only finds actors where the center is within the search radius,
|
||||
// so we need to search beyond the maximum spread to account for actors with large health radius
|
||||
|
||||
Reference in New Issue
Block a user