Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Belisarius on May 04, 2013, 05:53:11 am

Title: Make a dead ship float and rotate - How?
Post by: Belisarius on May 04, 2013, 05:53:11 am
Hi again

I'm trying to make a ship pitch, yaw and roll randomly like it being dead and out of controll when it leaves subspace, but haven't yet found the right SEXPs to make that work. Could you please tell me how I can achieve that with which SEXP or does this require a script?

I'm a bit lost here.

Thank you guys.
Title: Re: Make a dead ship flot and rotate - How?
Post by: FreeSpaceFreak on May 04, 2013, 06:24:27 am
Aren't there sexp's like ship-rotate-x , -y and -z? They were under "Coordinate Manipulation" last time I checked.
Title: Re: Make a dead ship float and rotate - How?
Post by: Belisarius on May 04, 2013, 06:56:33 am
Nope, these aren't there. Also the wiki isn't providing any info about these SEXPs.
Title: Re: Make a dead ship float and rotate - How?
Post by: Nohiki on May 04, 2013, 06:58:26 am
it's ship-lat-maneuver or something like that
Title: Re: Make a dead ship float and rotate - How?
Post by: Suongadon on May 04, 2013, 10:42:01 am
Hi again

I'm trying to make a ship pitch, yaw and roll randomly like it being dead and out of controll when it leaves subspace, but haven't yet found the right SEXPs to make that work. Could you please tell me how I can achieve that with which SEXP or does this require a script?

Ship-rot-maneuver or ship-maneuver is what you want going by this. Maybe add in some glowpoint-bank manipulation and force-glide (and set-speed) if you want it to drift like it is unpowered or something. Might have to disable the ship's AI too.
Title: Re: Make a dead ship float and rotate - How?
Post by: mjn.mixael on May 04, 2013, 04:40:30 pm
I did something like this once. I'll have to go dig in the mission to figure what I did though. I remember it took a lot of trial and error. But I have video proof! (https://www.youtube.com/watch?v=qsPLaAclAPQ) This is a little more complicated than what it seems like you want, but it does have the random rotation. The Aten, when it hits a certain hull %, is covered by explosions and then the model is switched to a hulk version of the Aten. It's the hulk version that I applied the SEXPs to in order to make it seem to keep momentum and drift off into space.

When I get some time, I'll go figure out what I did with the SEXPs and let you know.
Title: Re: Make a dead ship float and rotate - How?
Post by: Black Wolf on May 04, 2013, 10:05:50 pm
I did something like this once. I'll have to go dig in the mission to figure what I did though. I remember it took a lot of trial and error. But I have video proof! (https://www.youtube.com/watch?v=qsPLaAclAPQ) This is a little more complicated than what it seems like you want, but it does have the random rotation. The Aten, when it hits a certain hull %, is covered by explosions and then the model is switched to a hulk version of the Aten. It's the hulk version that I applied the SEXPs to in order to make it seem to keep momentum and drift off into space.

When I get some time, I'll go figure out what I did with the SEXPs and let you know.

That is still as sypercool as I remember it. :yes:
Title: Re: Make a dead ship float and rotate - How?
Post by: Belisarius on May 05, 2013, 02:47:27 am
That's really cool. Maybe you just can provide the download of the mission file and I try to work my way through it.
Title: Re: Make a dead ship float and rotate - How?
Post by: mjn.mixael on May 08, 2013, 10:17:19 pm
I would post the mission except I don't have it anymore. That was just a proof of concept test mission. The actual effect is embedded in a BtA mission, which I'm obviously not ready to release yet.

So I'll need to go in and either trim the mission down or transplant the effect to a new mission file. I just haven't had time yet with several studio projects going on. Remind me if I haven't gotten back to it in a week or so.