Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: bomb3rman on November 03, 2016, 08:49:05 am

Title: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: bomb3rman on November 03, 2016, 08:49:05 am
Hello,

it's me again :)

I'm trying to make a dead ship float through space like it's been hit very hard and is now unpowered etc...

How do I do this?

I read this: http://www.hard-light.net/forums/index.php?topic=84510.0 (http://www.hard-light.net/forums/index.php?topic=84510.0)

Now I'm able to rotate the ship, so it does what I want. But how can I switch "off" the engines without setting the engines-subsystem to 0. Setting it to 0 displays the "disabled"-message and I don't want to have this. Is there a way? It also bothered me when I "parked" an intact ship near a station. How can I deactivate their engines without disabling them and have a "D" in my escort list?

And second: What do I have to do to make the ship go for example slowly "up" and "forward" like it is still drifting in the direction it was flying when it was hit. Set speed x/y/z doesn't seem to work and the initial velocity isn't recognised either... (Or am I just doing it wrong?)

Any ideas?

Thank you!
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: mjn.mixael on November 03, 2016, 09:06:53 am
There's a SEXP called disable-engine-glow or something. I can't remember it's exact name, but it's there.

For moving the ship forward, you're looking for ship-lat-maneuver.
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: bomb3rman on November 03, 2016, 09:33:39 am
Thx for the answers, but I can't find a " disable-engine-glow or something". There are these (de)activate glow maps /banks/points, but they don't help...
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: The E on November 03, 2016, 09:44:34 am
What you are actually looking for is the "set-thrusters-status" sexp.
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: bomb3rman on November 03, 2016, 12:35:14 pm
Ah. That helped, thanks :)

Now I have another problem: I can make the ship rotate around its own axis and I can use the ship lat maneuver (by using the combined sexp of them). But the ship doesn't keep flying forward like intended... It flies the way it's nose goes... and keeps making a huge circle instead of flying in one direction while rotating... Any ideas? i read something about "force glide", but somehow that didn't work...
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: 0rph3u5 on November 04, 2016, 08:16:02 am
Ah. That helped, thanks :)

Now I have another problem: I can make the ship rotate around its own axis and I can use the ship lat maneuver (by using the combined sexp of them). But the ship doesn't keep flying forward like intended... It flies the way it's nose goes... and keeps making a huge circle instead of flying in one direction while rotating... Any ideas? i read something about "force glide", but somehow that didn't work...

ship-rot-maneuver
Quote
Causes a ship to move in a rotational direction.  For the purposes of this sexp, this means the ship rotates along its own heading, pitch, or bank axis (or a combination of axes) without regard to normal ship rotation rules.  You may find it necessary to disable the ship AI (e.g. by issuing a play-dead order) before running this sexp.

It what's used in Blue Planet's Delenda Est for the rotational maneuvers on the GTVA ships
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: bomb3rman on November 04, 2016, 02:54:50 pm
Sorry I can't follow here. I know ship-rot-maneuver. The question is: How can I make a ship rotate around its own axis and fly forward the same time?
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: AdmiralRalwood on November 04, 2016, 09:27:58 pm
Sorry I can't follow here. I know ship-rot-maneuver. The question is: How can I make a ship rotate around its own axis and fly forward the same time?
Lua scripting; AFAICR it cannot be done with SEXPs.
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: Axem on November 04, 2016, 10:37:38 pm
Well, it can be done with a little fakery and work.

Have your ship table entry have a "$Glide: yes" (http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Glide:) field (that might be why the force-glide wasn't working before), then in the same event, ship-lat-maneuver it forward very slightly, force-glide, then ship-rot-maneuver, in that order.
Title: Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Post by: bomb3rman on November 06, 2016, 07:58:35 am
Well yeah I could try this... Thank you!