Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Black Wolf on October 20, 2005, 07:56:09 am

Title: is-targetted/distance-ship-subsystem sexp
Post by: Black Wolf on October 20, 2005, 07:56:09 am
Could it be done? For details as to what for, see my post on this thread:

http://www.hard-light.net/forums/index.php/topic,35851.0.html

It's the best way to individually control capship turrets I can come up with, (especially, now that I think about it, the get-relative-player-x/y/z stuff shouldn't be neccesary if distance-ship-subsystem can be implemented, which I suspect for what are the most vague and nebulous of reason, might be a tad easier) short of completely recoding parts of the engine to make it more amenable to flying caps, which I suspect might be ever so slightly overkill.
Title: is-targetted/distance-ship-subsystem sexp
Post by: Trivial Psychic on October 20, 2005, 09:20:48 am
distance-ship-subsystem already exists.
Title: is-targetted/distance-ship-subsystem sexp
Post by: Goober5000 on October 20, 2005, 11:27:33 am
Is-targeted also exists as a training sexp.  Not currently for ships other than Alpha 1 though.
Title: is-targetted/distance-ship-subsystem sexp
Post by: Black Wolf on October 20, 2005, 02:52:02 pm
Yeah, I figured both of those out at work. I'm a twit. I'll test the method out and see if it works.
Title: is-targetted/distance-ship-subsystem sexp
Post by: Prophet on October 21, 2005, 02:34:02 am
Quote
Originally posted by Trivial Psychic
distance-ship-subsystem already exists.

I tried this btw when doing missions for TPB some time ago... It didn't work. I tried to end the mission when player was at certain distance away from a docking bay. But instead of ending the mission my ship flew right trought the docking bay and the ship it was in.
I just figured **** it and changed the sexp to look at the distance from the ship itself, that worked ofcourse. And naturally I don't remember what build it was. And I have not tried it with a newer build. - And that makes this a fairly meaningless post :rolleyes:
Title: is-targetted/distance-ship-subsystem sexp
Post by: IPAndrews on October 21, 2005, 04:17:34 am
Is-targetted will also be true if the player targetted the mentioned ship any time at all during the mission! Really it should be called has-targetted.
Title: is-targetted/distance-ship-subsystem sexp
Post by: Trivial Psychic on October 21, 2005, 07:56:18 am
Quote
Originally posted by Prophet

I tried this btw when doing missions for TPB some time ago... It didn't work. I tried to end the mission when player was at certain distance away from a docking bay. But instead of ending the mission my ship flew right trought the docking bay and the ship it was in.
I just figured **** it and changed the sexp to look at the distance from the ship itself, that worked ofcourse. And naturally I don't remember what build it was. And I have not tried it with a newer build. - And that makes this a fairly meaningless post :rolleyes:

I get this from time to time myself.  I thought perhaps that it was related to problems with the model.  Which ship were you encountering this with?
Title: is-targetted/distance-ship-subsystem sexp
Post by: Prophet on October 21, 2005, 08:17:01 am
Quote
Originally posted by Trivial Psychic
Which ship were you encountering this with?

The Omega...
Title: is-targetted/distance-ship-subsystem sexp
Post by: Black Wolf on October 22, 2005, 01:40:19 am
Quote
Originally posted by IPAndrews
Is-targetted will also be true if the player targetted the mentioned ship any time at all during the mission! Really it should be called has-targetted.


Really? ****e.
Title: is-targetted/distance-ship-subsystem sexp
Post by: Goober5000 on October 22, 2005, 06:02:40 pm
Quote
Originally posted by IPAndrews
Is-targetted will also be true if the player targetted the mentioned ship any time at all during the mission! Really it should be called has-targetted.
That's not true; I just checked the source code.