Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Lucika on December 21, 2011, 07:05:49 pm

Title: FS1 selection effect as warp effect
Post by: Lucika on December 21, 2011, 07:05:49 pm
I'd like to use this (http://www.youtube.com/watch?v=mSki1LMMUpE) old piece of Valathil awesomeness as my ship's warpout effect. How is it possible, if it is, that is?
Title: Re: FS1 selection effect as warp effect
Post by: Valathil on December 21, 2011, 07:09:52 pm
trigger the effect with a know duration then do ship-vanish chained in after that duration. voila

edit: wait dont tell me, theres no precoded entry for the effect in the postproc table  :nono:

then you have to add one to the postprocess.tbl #Ship Effect entries
try this:
Code: [Select]
$Name:               Dissolve
$Shader Effect:         0
$Disables Rendering:   YES
$Invert timer:         YES
Title: Re: FS1 selection effect as warp effect
Post by: Lucika on December 21, 2011, 07:44:36 pm
EDIT: It shows up fine in FRED but it doesn't do anything ingame. I have changed the related table, what additional files do I need?

One more thing:
Quote from: Freespace Wiki
Warning: This will cause ship exit not to be logged, so 'has-departed', etc. will not work

Is there a workaround for that?
Title: Re: FS1 selection effect as warp effect
Post by: Black Wolf on December 22, 2011, 12:06:56 am
Don't use ship-vanish, just check "No Warp Effect" for the departure, and use AI orders to tell it to depart normally.
Title: Re: FS1 selection effect as warp effect
Post by: Valathil on December 22, 2011, 08:43:48 am
i commited the fix into trunk hopefully this will show up next RC in the meantime i compiled you a fred (VS 11 hopefully works) and main exe build that has the fix in it so you can experiment.

http://www.mediafire.com/?o6viuuws2dtdasd
Title: Re: FS1 selection effect as warp effect
Post by: Lucika on December 22, 2011, 02:03:38 pm
It works fine with a bit of tinkering now, thank you for your help.

I wonder how could I use it as an arrival effect though. I was thinking about setting it to cloaked in misc as the ship arrives, then use the effect... would that work?
Title: Re: FS1 selection effect as warp effect
Post by: Dragon on December 22, 2011, 02:21:31 pm
It should.