Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: phreak on November 21, 2005, 01:32:48 am

Title: Rearm/Repair Countdown Timer
Post by: phreak on November 21, 2005, 01:32:48 am
This little build is in response to this thread: http://www.hard-light.net/forums/index.php/topic,36957.html

All thats new is when a support ship is docked with you, a countdown timer appears in the rearm box instead of the normal "rearming" or "repairing".  When this timer reaches zero, the repairs and rearming should theoretically be complete.  I've only tested it on secondaries, but i think my math is working for everything.  Someone try and break this.

Whoops forgot the $@*!ing build:

http://fs2source.warpcore.org/exes/phreak/fs2_open_rearmrep_112105.zip
Title: Re: Rearm/Repair Countdown Timer
Post by: phreak on November 21, 2005, 07:52:34 pm
For all those who have downloaded it, i just realized that the release build i packaged doesn't have the functioning timer, the debug one works though.  I also found a bug where if you're rearming and the hud isn't being displayed then the timer doesn't count down.  That'll be fixed quickly, since i know whats going on.
Title: Re: Rearm/Repair Countdown Timer
Post by: WMCoolmon on November 22, 2005, 02:25:40 am
Hmm, sounds good.

Backwards compatibility.
Title: Re: Rearm/Repair Countdown Timer
Post by: phreak on November 22, 2005, 06:40:10 pm
-rearm_timer command line parameter has been added.  Commiting to codebase since nobody bothered to test this :blah:
Title: Re: Rearm/Repair Countdown Timer
Post by: Pnakotus on November 23, 2005, 05:03:11 am
I tested it! :#  I guess it's a bit late to comment now, though...

Sometimes the timer calculates the time, and never counts down - ie, it would display 00:14:50, and stay on that until finished.
Title: Re: Rearm/Repair Countdown Timer
Post by: phreak on November 23, 2005, 03:53:53 pm
in the release build i forgot to put in the statement to subtract off the time.  this should be in the newest cvs builds in total working order.