Disable drawing of weapon range?

Disable drawing of weapon range?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
ThinkSome
Posts: 387
Joined: 14 Jun 2015, 13:36

Disable drawing of weapon range?

Post by ThinkSome »

Is there a way to prevent the engine from drawing a red range circle on all selected units when the 'a' (attack) key is pressed and held down?

If I'm looking correctly, this is done in rts/Game/UI/GuiHandler.cpp from line 3804 onwards, but I do not see any obvious global disables.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Disable drawing of weapon range?

Post by Beherith »

Set alpha of attack ranges to 0 in cmdcolors.txt?
Ares
Balanced Annihilation Developer
Posts: 555
Joined: 19 Mar 2011, 13:43

Re: Disable drawing of weapon range?

Post by Ares »

With large armies these circles do lag a lot. I don't know if making the alpha zero would remove the lag or just make them invisible.
Post Reply

Return to “Engine”