Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Swamp_Thing on September 11, 2004, 06:40:21 pm

Title: Destroyable subobjects?
Post by: Swamp_Thing on September 11, 2004, 06:40:21 pm
How are they done? I want to make a destroyable subobject, that has nothing to do with your regular standard subsystem.
Suppose i want to have a door to the hangar of a ship, that i can destroy and get in. How is this done? I already have the model ready, now all i need is the table entry and the PCS changes. Can anyone help out with this?

:nervous:
Title: Destroyable subobjects?
Post by: Carl on September 11, 2004, 06:45:53 pm
well...you could just make a subsystem that doesn't do anything, like the reactors on the lucifer.
Title: Destroyable subobjects?
Post by: Swamp_Thing on September 11, 2004, 07:02:53 pm
DUH!!:rolleyes:
 I know that. But how?  How do i make it in PCS? What´s the table entry for it? How do i assign it hit points? etc etc...
:confused:
Title: Destroyable subobjects?
Post by: Taristin on September 11, 2004, 07:06:53 pm
Ok... (I wish you had ICQ, or something, so I could talk to you one on one for this, but...)

To make a piece of geometry destroyable is simple. Remember how we made the turrets? Well, it's essentially the same for the subobject in question. Create the piece of geometry, attach it to the main hull as you would a turret, and convert to pof form.

Now, in PCS, you'll go to the subobject section, and for that object, add:

$Special=subsystem
$name=door  (Or whatever)

and save the model.  Then you can go into the table file, and set the part of the geometry as a sybsystem. Make sure that you name it correctly, after the name of the subobject, and not the $name part.

Does that make sense?

Edit: If you wanted to get real fancy, and add a destroyed lump, or live debris for it, you could either make the destroyed door mesh, position it correctly, and add -destroyed to the end of the name. (I.e: if the door was named hangerdoor, the destroyed part would be hangerdoor-destroyed. The same works with turrets.)
You could also make multiple pieces of debris, IIRC, the same way, but instead of -destroyed, you make it -debrisNN, where NN is 01, 02, 03, etc...  And the pieces should float off into space.

But I may be wrong on that, since I've never tried it/got it to work correctly.
Title: Destroyable subobjects?
Post by: Swamp_Thing on September 11, 2004, 07:11:29 pm
I do have ICQ. My number is  228-119-937. I´m online now.
Title: Destroyable subobjects?
Post by: Taristin on September 11, 2004, 07:14:45 pm
Either you're not online, or you're in invisible mode. Either way, you're not being displayed on my window as being active...  Or as recieving my two messages. :p
Title: Destroyable subobjects?
Post by: aldo_14 on September 11, 2004, 07:32:59 pm
See the PTC Baranec (http://www.3dactionplanet.com/hlp/hosted/casofwar/reci_website/mods_standalone.html) as an example of the naming / tbling of destroyed subobjects.... it's got a full set of destroyable subobjects with live debris (and static destroyed subbobjects)
Title: Destroyable subobjects?
Post by: Swamp_Thing on September 11, 2004, 11:47:46 pm
Ok, it works now.
Just one little thing: i spent over an hour trying it, and the subsystem wouldn´t show. Untill i finally took out the capital S in "Subsystem",and it worked! For such a little thing...
Caps are is your enemy in FS!
:p

Aldo, your page doesn´t load. I think it´s down.
Title: Destroyable subobjects?
Post by: StratComm on September 11, 2004, 11:51:02 pm
I've got no problem seeing it.  You may try it again shortly.
Title: Destroyable subobjects?
Post by: Trivial Psychic on September 12, 2004, 02:14:43 am
What we need now are non-targettable, destroyable, sub-objects. ;7

Probably closer to FSO 4.2 by the time we get that.  Its probably the closest we'll ever get to geomodding (oohh, I said the dreaded word) in FS.

Later!
Title: Destroyable subobjects?
Post by: kasperl on September 12, 2004, 04:20:16 am
The targeting system is not something coders like to delve into, I'm afread. Mind, it'd be great if they did.
Title: Destroyable subobjects?
Post by: terren on September 12, 2004, 01:13:13 pm
do you know if anyone has tryed hacking the stelth code to the subsystems?
Title: Destroyable subobjects?
Post by: aldo_14 on September 12, 2004, 01:38:27 pm
Quote
Originally posted by Swamp_Thing


Aldo, your page doesn´t load. I think it´s down.


Strange...works fine for me.

Try http://www.fileplanet.com/dl.aspx?/3dactionplanet/hlp/hosted/reciprocity/piratesahoy.zip