Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Reprobator on November 03, 2010, 03:57:43 am

Title: Destroyable engine (where can i find one? )
Post by: Reprobator on November 03, 2010, 03:57:43 am
Hi,
I'm actually looking after destroyable engine (via engine0x-destroyed and the appropriate table) , I've trying to make a destroyer with destroyable engine but i could not manage to make it work ingame, now here is my quesion :
Do you know a ship present in the media vps that would feature  those destroyable engine ? it would help me to understand how it fully works (pcs2 setting + table)

Thanks in advance.
Title: Re: Destroyable engine (where can i find one? )
Post by: headdie on November 03, 2010, 05:19:14 am
try this

basically you need a separate mesh within the model file that is parented to the detail0

then when you have it in PCS2 you need to give the engine the $special=subsystem flag

after that it is listed like normal in the table

[attachment deleted by admin]
Title: Re: Destroyable engine (where can i find one? )
Post by: Reprobator on November 03, 2010, 05:20:29 am
Thank you very much i'll try this :)
Title: Re: Destroyable engine (where can i find one? )
Post by: Galemp on November 03, 2010, 09:43:40 am
You'd also need to delete the non-mesh Engine subsystem in the subsystem editor.
Title: Re: Destroyable engine (where can i find one? )
Post by: FUBAR-BDHR on November 03, 2010, 03:22:12 pm
And change the paths to point from the special point to the subobject. 
Title: Re: Destroyable engine (where can i find one? )
Post by: Droid803 on November 03, 2010, 05:03:11 pm
Hi,
I'm actually looking after destroyable engine (via engine0x-destroyed and the appropriate table) , I've trying to make a destroyer with destroyable engine but i could not manage to make it work ingame, now here is my quesion :
Do you know a ship present in the media vps that would feature  those destroyable engine ? it would help me to understand how it fully works (pcs2 setting + table)

Thanks in advance.

For the record, the HTL Hecate does.
Title: Re: Destroyable engine (where can i find one? )
Post by: FUBAR-BDHR on November 03, 2010, 05:37:26 pm
The most basic version of the destroyed engine is just to copy the engine subobject (lets call in engine01a) to engine01a-destroyed in the modeling program.  Now what does this actually do?  You have an engine shaped target instead of a sphere.  It goes boom when destroyed and is replaced with the exact same geometry but glows and thrusters turn off.  The next basic one would be to retexture the -destroyed part so it looks damaged.  Third making some tweaks on the mesh so it looks damaged. 

One thing you do not ever want to do is change the overall shape of the -destroyed version or not have one.  When it's repaired you end up with glows and thrusters coming from the wrong location if you do and it looks really bad. 
Title: Re: Destroyable engine (where can i find one? )
Post by: Reprobator on November 04, 2010, 02:16:44 am
Thank you all for your advice, it works perfectly right now.  :D