Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Starman01 on April 19, 2005, 01:56:33 pm

Title: About the time-compression
Post by: Starman01 on April 19, 2005, 01:56:33 pm
Hello,

I have a problem. I have to prevent, that the player can activate the time-compression manually (maybe be rebinding the key's), but I shouldn't prevent the time-compression in a technical way, because that could interfere with the autopilot-system we use (which is build upon the time-compression).

Does anyone has an idea ? Maybe SEXP's or something like that available ?
Title: About the time-compression
Post by: WMCoolmon on April 19, 2005, 05:59:50 pm
Done.

I implemented a lock_time_compression function that does exactly what you want, it was originally for cutscenes so there are some side effects (which will probably be good). Basically, any of the new cutscenes stuff that I implemented that you have in-mission won't accelerate. So if you tell a camera to move from point A to point B in 5 seconds, and time compression is locked, it will still take 5 seconds to move. Wheras if it's unlocked, it'll take 5 seconds divided by the compression amount.

This should let you do cutscenes while the autopilot is engaged without worrying about any time compression stuff (except all ships may be moving at 64x, so that could be a problem...)
Title: About the time-compression
Post by: Starman01 on April 20, 2005, 10:54:09 am
Will it be in the next fred-build then (it isn't in there yet AFAIK) ? I could need it for the prologue, since the time-compression will brake the entire time-line in the events.

Btw, now that you are mentioning the cutscene-stuff, have you created some sort of tutorial or handbook for that. ? I tried making a simple cutscene a few days back, but the results where very strange, so I finally gave up on that idea again.

I tried creating a slow 180 degree turn, and then move the camera slowly towards a specific ship in the area, but the camera seems to jump to it's starting position everytime between a movement, and made unwanted turns around the x-axis (like the AI does in turning) and many bad moves too.

But maybe I'm just using it wrong, but I should now what is possible and what can be done, before I try it out again.

This would be most interesting for cutscenes while autopiloting, so I could even create something similar to original WC, but unfortunately our autopilot-turns are quite long (ca. 15 seconds).

Thanks for any insights :)