Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Mobius on March 08, 2009, 01:13:46 pm

Title: Spacecraft Deaths
Post by: Mobius on March 08, 2009, 01:13:46 pm
I'd like to know if the part of the code related to spacecraft deaths is hard coded. We all know how spacecraft die in FreeSpace(instant explosion, rolling explosion, etc. etc.) and it'd be very nice to edit those death types and/or create new ones to boost the game. I think they'd work fine in TCs to match their requirements(BSG deaths, WC deaths, SW deaths and so on). More in general, it could be used to add more variety.

Is it going to be possible to create unique death types using a table, pretty much like what Objecttypes.tbl did to object types?  :)
Title: Re: Spacecraft Deaths
Post by: Snail on March 08, 2009, 01:14:45 pm
This idea sounds like it has a lot of potential.
Title: Re: Spacecraft Deaths
Post by: DaBrain on March 08, 2009, 01:49:46 pm
Agreed. That would be a very nice option.
Title: Re: Spacecraft Deaths
Post by: Aardwolf on March 08, 2009, 08:15:34 pm
I'd like to know a little more about this... how do you see these other 'death types' as varying from what is available now? What would there be that is customizable?
Title: Re: Spacecraft Deaths
Post by: Mobius on March 09, 2009, 11:53:39 am
I'd like to know a little more about this... how do you see these other 'death types' as varying from what is available now? What would there be that is customizable?

It's not so hard to explain. Simply watch BSG or SW and then compare spacecraft explosions seen there with the ones seen in FreeSpace. They're different.

Before doing anything we'd like to know what it can be done. That's why we need a coder to find out more. :)
Title: Re: Spacecraft Deaths
Post by: chief1983 on March 09, 2009, 12:28:39 pm
Actually I always thought that FS spaceship deaths were almost a direct copy from the X-Wing series of games, which didn't seem too far off from the movies.
Title: Re: Spacecraft Deaths
Post by: lostllama on March 09, 2009, 04:56:59 pm
I like the idea. Not sure if you know of it already but there's a "recent" build that WMC made, in which destroyed ships effectively become drifting hulks.

http://www.hard-light.net/forums/index.php/topic,55622.0.html (http://www.hard-light.net/forums/index.php/topic,55622.0.html)
Title: Re: Spacecraft Deaths
Post by: Mobius on March 09, 2009, 05:03:36 pm
Interesting one, although the topic is about the events that preceed the creation of debris. It'd be nice to randomize ship deaths and have both motion debris and hulks. :)

[OT]
Are those ships.tbl values WMC added present in all standard builds?
[/OT]
Title: Re: Spacecraft Deaths
Post by: chief1983 on March 09, 2009, 06:12:12 pm
If capital ships left hulks the Collie still would have died facing down the NTF :)
Title: Re: Spacecraft Deaths
Post by: Dark RevenantX on March 09, 2009, 09:34:11 pm
Well, the front half of it would be gone.  There are some BFGreens back there, though, as well as the engines, so it's all good.
Title: Re: Spacecraft Deaths
Post by: TacOne on March 10, 2009, 04:43:52 am
[OT]
Are those ships.tbl values WMC added present in all standard builds?
[/OT]


Yes, I've tested them with the 5063 build. But I didn't get whole ships to become hulks, just the pieces. I suppose you would need to modify the model files to do that.
Title: Re: Spacecraft Deaths
Post by: Dilmah G on March 10, 2009, 06:24:06 am
Well if ships Cruiser class and over became hulks and fighters still disappeared in a ball of fire that would pretty realistic IMO

BoE's would become very complicated from then on
Title: Re: Spacecraft Deaths
Post by: chief1983 on March 10, 2009, 10:43:08 am
Also, you could run into new object limit problems as objects which previously were removed are now hanging around.  You'd have to be pretty careful how much total stuff you would want to use in a mission.
Title: Re: Spacecraft Deaths
Post by: Snail on March 10, 2009, 03:57:14 pm
Also, you could run into new object limit problems as objects which previously were removed are now hanging around.  You'd have to be pretty careful how much total stuff you would want to use in a mission.
Maybe after a few minutes the chunks disappear discreetly... :nervous:
Title: Re: Spacecraft Deaths
Post by: JGZinv on March 10, 2009, 05:20:35 pm
or have the chunks break into smaller chunks like roids do... then vanish like they are evaporating.
Title: Re: Spacecraft Deaths
Post by: Dilmah G on March 11, 2009, 05:03:56 am
or have the chunks break into smaller chunks like roids do... then vanish like they are evaporating.

That's a good idea actually. If you gave them the same properties as asteroids minus the "Let's throw this at everything on Alpha 1's escort List" and the whole moving thing they'd be fine.
Title: Re: Spacecraft Deaths
Post by: redsniper on March 11, 2009, 12:20:04 pm
So the hulk that survived the ship's reactor exploding (or whatever) can be vaporized by a few primary shots?
Title: Re: Spacecraft Deaths
Post by: JGZinv on March 11, 2009, 01:24:32 pm
You have to start somewhere small and work up to a fully functional prototype....
really 1 shotting split off pieces to me it's a big worry if you can get the other 98% done which
sounds more like the "hard" part.

Ultimately I'd like to see the roid system both in game and in FRED separated so we could use the same
random generation tools for any object/fighter/etc, but alas I'd imagine that's a huge undertaking in and of itself.
Title: Re: Spacecraft Deaths
Post by: chief1983 on March 11, 2009, 02:25:26 pm
Random generation, you say? (http://www.hard-light.net/forums/index.php/topic,56191.0.html)
Title: Re: Spacecraft Deaths
Post by: chief1983 on March 12, 2009, 05:54:57 pm
Ok, I just realized I could use something like this.  Everyone knows how Wedge took out that TIE and then flew unhindered through its debris and explosion right?  Well, the delay in FS between killing a ship and it actually blowing up is too long to allow that to happen.  So, having pretty much instant explosions is something we might actually benefit from.  Currently the chase speeds mean that as soon as you kill someone you have to break off fast to avoid flying into their rear end, which seems to have just slammed on space-brakes, so this problem isn't even just with a head-on approach.
Title: Re: Spacecraft Deaths
Post by: JGZinv on March 12, 2009, 08:29:07 pm
Chief I was thinking more for auto gen of mine fields... space junk debris...
Title: Re: Spacecraft Deaths
Post by: chief1983 on March 13, 2009, 01:29:10 am
Yeah I realized that wasn't exactly what you were thinking of.  Oh well.
Title: Re: Spacecraft Deaths
Post by: Mobius on March 13, 2009, 03:29:44 pm
What about my idea? The thread has derailed a bit... :nervous: