UFO:Alien Invasion

General => Discussion => Topic started by: kable on September 18, 2006, 02:27:23 pm

Title: Show Radar Coverage when making new bases.
Post by: kable on September 18, 2006, 02:27:23 pm
I saw this post (http://ufo.myexp.de/phpBB2/viewtopic.php?t=268&highlight=show+radar) and decided to give it a go.  

(http://img80.imageshack.us/img80/5452/radarcoverageab7.jpg) (http://imageshack.us)

I moved out the code to draw the radar radius during an interception to a new function:

Code: [Select]
void RADAR_DrawCoverage(const menuNode_t* node, const radar_t* radar, vec2_t pos);


I then added a call to the switch for the menu message in the map drawing routine, so that the coverage is drawn when creating a new base.

Here's a zip archive with the changed files and a diff:

http:///darkwax.co.uk/kable/ufoai/radar_coverage.zip

P.s. should radar coverage really get so big when you have 3 stations?  I think it might be better if coverage area is increased by a set amount each time a new station is added, otherwise there is no motive to build radar at other bases... you can get much better coverage just building many stations at one. ;)
Title: Show Radar Coverage when making new bases.
Post by: Bandobras on September 19, 2006, 12:38:41 am
Thank you very much. We are just releasing RC5, so it's too late to get this in, but surely someone will merge it soon to the trunk...
Title: Show Radar Coverage when making new bases.
Post by: Mattn on September 20, 2006, 08:15:56 am
it's in trunk now
thank you
Title: Show Radar Coverage when making new bases.
Post by: HighXplosive on September 20, 2006, 10:38:41 pm
RC 5 is coming out already?!

Have you fixed multiplayer ^^ ?