New Range Display

New Range Display

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
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

New Range Display

Post by trepan »

Thought I post this as a heads-up for the modsters
(esp. AA2.23 and any derivatives that are using attack
ranges as a hack to achieve the same effect). This is
from a recent SVN commit that will be incorporated into
release 0.74b2.

Code: Select all

* Added the following colors to cmdcolors.txt, as well as to
  the display of units being built, and the unit being pointed at:
    rangeRadar
    rangeSonar
    rangeSeismic
    rangeJammer
    rangeSonarJammer
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

I'll also note that I've added most of the ranges that
you see in the viewport into the minimap. Now you
can see immobile builder ranges, radar ranges,
attack ranges, etc..., in the minimap for units that
you are about to build.

The area commands (circular and rectangular), and
move fronts are also displayed in the minimap.
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Post by el_matarife »

Will these range rings work for anti-nukes too? That's an addition that's been long needed.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Nope, but I'll add it.
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Post by el_matarife »

Thank you. Your work on the Spring project has been amazing and your productivity sets a benchmark I wish I could live up to on my personal projects.

Edit: And Merry Christmas.
User avatar
hrmph
Posts: 1054
Joined: 12 May 2005, 20:08

Post by hrmph »

trepan wrote:I'll also note that I've added most of the ranges that
you see in the viewport into the minimap.
You rock trepan. I've been wanting this for awhile.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Yay!
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

I've also added shield ranges while assigning build orders.

What I have not yet done is to display ranges for units that
are queued to be built (the only range that is displayed in
that case is mex extraction range). Might be worth doing,
but then it might just clutter things up too much. I can also
allow the use of the animated line stipple to differentiate the
range indicators (and use blinking for units in the queue to
be built?)
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

trepan wrote:I've also added shield ranges while assigning build orders.

What I have not yet done is to display ranges for units that
are queued to be built (the only range that is displayed in
that case is mex extraction range). Might be worth doing,
but then it might just clutter things up too much. I can also
allow the use of the animated line stipple to differentiate the
range indicators (and use blinking for units in the queue to
be built?)
I think it might be useful for radars and defensive emplacments, if you could see the range on the minimap when you were queuing them. Another thing I would love to see is a way of highlighting the metal patches without darkening the minimap so much that you can't see the terrain, I know this feature has been requested previously. :-)
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

"highlighting the metal patches without darkening the minimap"

Not related to the range display code, separate feature request.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

trepan wrote: Not related to the range display code, separate feature request.
It was on my mind. :P
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

I'm dumb. Can someone give me a quick real-life example of how to implement this stuff?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I'm dumb.
?

Trepan means that you no longer have to add dummy weapons to units to show their ranges for radar seismic sensors, jammers, or sonar.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Also comes to mind that sonar, and sonarjamming does not have a colour representation on the LOS map (when you press "L").
Post Reply

Return to “Engine”