Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Maxloef on September 13, 2009, 02:14:05 PM

Title: Switching Ships? (Request)
Post by: Maxloef on September 13, 2009, 02:14:05 PM
Is it possible to create a script that allows you to instatly swicth between friendly ships (like star trek legacy)

if so i would really apriciate it if someone would make this for me/Aftermath mod
Title: Re: Switching Ships? (Request)
Post by: Mephisto1701 on September 13, 2009, 02:25:54 PM
As far is i know there is only the "Transporter" Function (included in QBR 2.3).
But it would be interesting ;-)
Title: Re: Switching Ships? (Request)
Post by: Maxloef on September 13, 2009, 02:36:43 PM
yeah but i dont want to "transport" i want to switch, so you can do it from everywhere.  and you dont need to turn off your shields. and when your current ships dies you auto switch to next available.
Title: Re: Switching Ships? (Request)
Post by: JimmyB76 on September 13, 2009, 03:14:37 PM
there is already a "Switch Sides" script to allow you to change other ships that are enemy to friendly, and reverse - is that how you mean?
Title: Re: Switching Ships? (Request)
Post by: Dalek on September 13, 2009, 03:20:02 PM
No, he means your own ship. So jumping ships without going through the transporter stuffs.
Title: Re: Switching Ships? (Request)
Post by: USS Frontier on September 13, 2009, 03:27:32 PM
Yea its possible.

Kinda like a stripped down Transporter (without the sequence/GFX/SFX stuff), and with a SHIP_DESTROYED handler, so that if the player's destroyed, auto-switch to the next one.
Tho, what if there isn't a next one? :P
Title: Re: Switching Ships? (Request)
Post by: Dalek on September 13, 2009, 03:32:38 PM
One of two things could happen:
1. The match ends.
2. BC dies cos of a lack of a ship to jump to.

:P
Title: Re: Switching Ships? (Request)
Post by: USS Frontier on September 13, 2009, 03:35:57 PM
Match?  So then you're battling in a QB match.
What if you try to use this without starting a QB match? :P
Title: Re: Switching Ships? (Request)
Post by: Maxloef on September 14, 2009, 11:39:02 AM
then youl simply go game over? its not multiplayer intended the idea is single player (QB, Missions, QBR)
Title: Re: Switching Ships? (Request)
Post by: USS Frontier on September 14, 2009, 02:17:20 PM
The regular action done when the player dies is:
in SP: game over (because as its a SP campaign, it can have game over)
In QB: just recreate the player at the set he died.
In a QB match: ends the match (you lose) and recreate the player (dont remember exactly if it was at the system he died, or on another one)
In QBR: dont know :P
In GC's War Sim: (overriding the QB method) recreates the player ship in the nearest friendly system from where he died, and takes out some funds from his race as a kind of fee/punishment :P
Title: Re: Switching Ships? (Request)
Post by: Worf359Alpha on September 14, 2009, 03:03:16 PM
That would be pretty cool, especialy if your launching fighters and are in a fighter and you get destroyed and go right back to the mother ship, that would be an ultra cool mod!!
Title: Re: Switching Ships? (Request)
Post by: candle_86 on September 20, 2009, 02:31:19 PM
hmm how much code is shared with SFC3 and BC, seems like an odd question im sure, but if the engines are similar enough, SFC allows the excat thing to occur, anyone know how close these 2 engines are two each other though?
Title: Re: Switching Ships? (Request)
Post by: MLeo on September 20, 2009, 03:04:05 PM
hmm how much code is shared with SFC3 and BC, seems like an odd question im sure, but if the engines are similar enough, SFC allows the excat thing to occur, anyone know how close these 2 engines are two each other though?
None. Save for DirectX code used in the engines, and the Win32 API code used for the window and input interaction.
Title: Re: Switching Ships? (Request)
Post by: candle_86 on September 21, 2009, 04:59:53 PM
wasnt sure, I never looked at the code between them
Title: Re: Switching Ships? (Request)
Post by: AlexMB2000 on December 05, 2009, 09:42:16 PM
I was wondering if anyone ever did find a way to switch ships as described in earlier posts. It would certainly breath new life in my fleet battles. I always wanted play as a small ship in part of a large fleet but I would die and I would not see if my contributions as a small ship were any good. As I have no scripting skills beyond changing hardpoints and changing values in scripts, I wouldn't even know were to start to make such a cool idea.
Title: Re: Switching Ships? (Request)
Post by: KrrKs on December 06, 2009, 09:01:51 AM
As I have no scripting skills beyond changing hardpoints and changing values in scripts, I wouldn't even know were to start to make such a cool idea.
Make a renamed copy of the "Transporter" script and throw anything out you thing you don't need. That's how I started  :funny, and Defiant's codes are always pretty much self explaining.
Title: Re: Switching Ships? (Request)
Post by: Eris on December 06, 2009, 11:17:22 AM
GC's war sim sounds like the STO system, hehe. Where can we get the GC's war sim?
Title: Re: Switching Ships? (Request)
Post by: teleguy on December 06, 2009, 12:49:18 PM
It's part of Galaxy charts 2.0.