Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Unknown Target on February 17, 2017, 07:51:13 pm

Title: This might be a silly question...
Post by: Unknown Target on February 17, 2017, 07:51:13 pm
But is there such a thing as a SEXP that applies a vector change to ship movement over time, or when a targeted object's speed is reduced below a certain range?
Title: Re: This might be a silly question...
Post by: AdmiralRalwood on February 17, 2017, 08:15:10 pm
...Maybe? What are you trying to do, exactly?
Title: Re: This might be a silly question...
Post by: General Battuta on February 17, 2017, 09:08:51 pm
Moving objects around with SEXPs directly is generally kiiiind of ****ty. It's possible, but usually requires you to be operating within the object's existing flight envelope.

I would kill for the tableside ability to scale maneuverability with throttle, though, it'd be a nice way to get rid of Turretspace.
Title: Re: This might be a silly question...
Post by: Unknown Target on February 17, 2017, 11:56:53 pm
I have a theory that you can simulate gravity by applying a negative Z force to the spacecraft once it reaches below a certain forward velocity. It's just a quick hack I thought of and I was wondering if the engine could do it.

@General Battuta yea that would be nice.
Title: Re: This might be a silly question...
Post by: General Battuta on February 18, 2017, 12:28:16 am
Oh, yeah, we have semi-decent gravity via scripts and a couple engine features Kobrar was working on. The AI can't handle it, though.
Title: Re: This might be a silly question...
Post by: AdmiralRalwood on February 18, 2017, 12:50:59 am
Oh, yeah, we have semi-decent gravity via scripts and a couple engine features Kobrar was working on. The AI can't handle it, though.
I seem to recall somebody modifying the AI code to aim gravity-affected weapons properly, but I don't remember who off the top of my head; I'd have to check my logs.