Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Fineus on May 17, 2004, 06:45:18 am

Title: "Wreckage" flag?
Post by: Fineus on May 17, 2004, 06:45:18 am
Evening all.. in my continued search for battlefield nirvana I was considering the fact that large vessels in FS reliable atomise themselves upon destruction. Granted this could be due to the massive amounts of ordinance on board, fuel and the reactor core going up. However it doesn't make for many interesting battlefields.

Would it be possible to add a new piece of code enabled by FRED on a per ship / mission basis that causes ships to - rather than explode - list slightly, change model and "disappear" from sensors, as well as removing all glowmaps and maybe even replacing the entire model with a battle damaged edition of the same (this replacement could be instant but covered by a large series of explosions along the length of the hull or something... so that the ship doesn't just visibly change instantly but is covered and emerges a wrecked hulk of a ship.

These destroyed ships would remain where they are, not firing and undestroyable. They'd also be off sensors... effectively they wouldn't exist in any more than the form of the hulk model.

The result is an interesting battlefield full of obsticals and what have you as a result of the destruction you and your enemy cause.

Whatcha think? Sounds good doesnt it ;7
Title: "Wreckage" flag?
Post by: kasperl on May 17, 2004, 06:53:26 am
Well, you can cheat this already.....

Simply do as you said, make a load of explosions, change the model (SEXP exists for this), and give it the invisible from sensors thingy of the Pegasus or something like that.
Title: "Wreckage" flag?
Post by: Fineus on May 17, 2004, 06:57:33 am
The code exists already then? In that case would anyone mind making the flag up for per-ship / per-mission use? TBH I'm to lazy to do it the hard way, and would like to see it in all stock FS2 missions if possible... (Imagine in, the Colossus rolling gently away, fires cascading from its wrecked hull).

MMmm....
Title: "Wreckage" flag?
Post by: Nico on May 17, 2004, 07:10:11 am
You could also make one debris looking like that, would just need a flag so that debris won't fly away at mach 45.
Title: "Wreckage" flag?
Post by: kasperl on May 17, 2004, 07:17:32 am
Quote
Originally posted by Kalfireth
The code exists already then? In that case would anyone mind making the flag up for per-ship / per-mission use? TBH I'm to lazy to do it the hard way, and would like to see it in all stock FS2 missions if possible... (Imagine in, the Colossus rolling gently away, fires cascading from its wrecked hull).

MMmm....


Just as much as the code exists for a lot of other stuff, like a game of Football..............


Reallly, I think that Venom is an awfull lot closer to what you want. That, and perhaps multiple kinds of Debris, perhaps using LOD9 or something, so you can select if the ship died by beam, by bomb or by heavy fire.....
Title: "Wreckage" flag?
Post by: IceFire on May 17, 2004, 08:15:07 am
I've tried to create battlefields like this to no avail.  The debris asteroid bit was cool but ultimately not exactly what I was looking for.
Title: "Wreckage" flag?
Post by: Nico on May 17, 2004, 09:40:43 am
Did I release the ... herm... that orion derelict I made? Can't remember.

Edit: the Legion. Looking at my site, seems I didn't...
Title: "Wreckage" flag?
Post by: karajorma on May 17, 2004, 10:04:02 am
Quote
Originally posted by Nico
Did I release the ... herm... that orion derelict I made? Can't remember.

Edit: the Legion. Looking at my site, seems I didn't...


I've got a version of it on my hard drive so unless I hacked you at some point... :)

I think I got it in a big download of OTT ships.
Title: "Wreckage" flag?
Post by: Deathstorm V2 on May 17, 2004, 11:23:29 am
Yep, it was in the OTT modeldump.  Poor old Legion...
Title: "Wreckage" flag?
Post by: SadisticSid on May 17, 2004, 12:09:04 pm
Could we also have a flag to specify how long the ship hull takes to fully disappear and be replaced by the debris?
Title: "Wreckage" flag?
Post by: Corhellion on May 19, 2004, 04:36:42 pm
*ahem*

FS ships "split" down the middle, and all that's left is debris chunks

Easy solution...have a wrecked model of the ship as the only peice of debris.

Look at Starlancer if you want to know what it would sorta look like...

Cor
Title: "Wreckage" flag?
Post by: Lightspeed on May 19, 2004, 05:39:50 pm
Just use better POF debris info, and have the coders slow down the debris by a factor of 20 (no kidding), and you'll have a quite nice debris field soon.
Title: "Wreckage" flag?
Post by: Corhellion on May 19, 2004, 08:02:40 pm
He doesn't want a Debris field, he wants a battlewrecked version of the ship...maybe have it as a SEXP if you want the ship to end up as a wrecked drifter. Not a mass of floating debris.
Title: "Wreckage" flag?
Post by: Lightspeed on May 20, 2004, 09:47:47 am
I think you misunderstood my point.
Title: "Wreckage" flag?
Post by: StratComm on May 20, 2004, 12:04:05 pm
Debris also has a lifetime and will explode on its own eventually IIRC.  The limit could concievably be raised to an hour or so, so that no one would notice, but you'd wind up with literally hundreds of debris chunks about that would have to be tracked.  I think that's the main reason it travels so fast anyway, so that it gets out of plainly visable range before it explodes.  It also may have to do with the fact that AI seems to completely ignore debris in flight and would roll over and die if forced to enter a field.  And it can foul up scripted events.  Anyway, it's a problem that you're ultimately going to have to deal with, one way or another.
Title: "Wreckage" flag?
Post by: Flaser on May 20, 2004, 12:29:29 pm
If I understood it's not debris he wants, but a derelict version of the ship. - 1 ship, 1 derelict, I don't see that as exessive drain.
Title: "Wreckage" flag?
Post by: ShadowDrakken on May 20, 2004, 12:37:04 pm
I know it's not what was initially asked for, but for a debris field, how would it work to make asteroid models that just look like ship debris? then the AI doesn't ignore them, they're shootable, and they don't expire
Title: "Wreckage" flag?
Post by: Lightspeed on May 20, 2004, 02:14:09 pm
Quote
Originally posted by Flaser
If I understood it's not debris he wants, but a derelict version of the ship. - 1 ship, 1 derelict, I don't see that as exessive drain.


Yes, and this is exactly what was my intention.

You have one derelict version of the ship, and several debris blocks inside the 'Debris LOD' - the normal debris chunks blast off like they should, and the ship stays more or less in its current movement.
Title: "Wreckage" flag?
Post by: Johnmike on May 24, 2004, 05:42:42 am
I say someone makes the ship cracked in half with chunks missing, but keeping debris for, say, five minutes.