Author Topic: Dead ship floating forward: Kill engine "glow" and set flying speed  (Read 2336 times)

0 Members and 1 Guest are viewing this topic.

Dead ship floating forward: Kill engine "glow" and set flying speed
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

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!

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
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.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
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...

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
What you are actually looking for is the "set-thrusters-status" sexp.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
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...

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
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
« Last Edit: November 04, 2016, 08:20:12 am by 0rph3u5 »
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
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?

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
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.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Axem

  • 211
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Well, it can be done with a little fakery and work.

Have your ship table entry have a "$Glide: yes" 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.

  
Re: Dead ship floating forward: Kill engine "glow" and set flying speed
Well yeah I could try this... Thank you!