Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: MetalDestroyer on December 29, 2005, 02:22:25 pm

Title: Give some sort of Hyperspace jump like XWA
Post by: MetalDestroyer on December 29, 2005, 02:22:25 pm
I'm actually testing the SEXP "set-object-speed" for arrival and departure jump. Instead of having a subspace portal like Fs2, I'm trying to set an hyperspace jump like X Wing Alliance when ships arrive.

Unfortunately, the ship didn't go as fast as possible (speed like 15 000 m/s).
Here what I put in FRED2 Open.

Code: [Select]
#Events ;! 2 total

$Formula: ( when
   ( has-arrived-delay 0 "Defender" )
   ( set-object-speed-x "Defender" 15800 )
)
+Name: Hyperspace Jump
+Repeat Count: 1
+Interval: 1
+Team: 0
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: Spicious on December 29, 2005, 04:48:35 pm
Why not use warpin speed (http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Warpin_speed:) and warpout speed (http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Warpout_speed:)?
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: MetalDestroyer on December 29, 2005, 05:45:22 pm
Why not use warpin speed (http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Warpin_speed:) and warpout speed (http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Warpout_speed:)?

It works if only I use the Warp effect.  :sigh: It would be weird to see Star Wars Ship jump with a vortex.
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: Black Wolf on December 29, 2005, 08:34:43 pm
Change the warpin effect. Make a 1 frame, 1x1 ani, pure green (0, 255, 0 ), copy the file a few times and give it the same name as all the warpin ani lods.
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: MetalDestroyer on December 30, 2005, 03:20:29 am
Change the warpin effect. Make a 1 frame, 1x1 ani, pure green (0, 255, 0 ), copy the file a few times and give it the same name as all the warpin ani lods.

What is the texture for the warpin effect ? and How can I do to get only 1 frame and change its attributs ?
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: Black Wolf on December 30, 2005, 10:50:09 am
Extract these files to your data/effects directory and try it.

[attachment deleted by admin]
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: MetalDestroyer on December 30, 2005, 02:34:17 pm
Extract these files to your data/effects directory and try it.

thanks for the file. I'll test it later. I've some code to do...  :shaking:
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: Solatar on December 30, 2005, 05:38:20 pm
Or check the "no warp effect" box.
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: MetalDestroyer on December 30, 2005, 06:19:32 pm
Or check the "no warp effect" box.

If I check the box I don't have the warpin speed like that (http://sam.sothi77.free.fr/videos/Hyperspace.avi)
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: Black Wolf on December 30, 2005, 09:52:35 pm
Or check the "no warp effect" box.

A lot of people make this mistake - No Warp Effect completely eliminates the whole warp-in/out process - the ships simply appear and disappear like someone flicked a switch - not what you want for hyperspace.
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: Solatar on December 30, 2005, 10:04:52 pm
Then I stand corrected, and I agree, probably not what you want for hyperspace. When I use it it's for ships appearing on radar, so naturally I don't see whether they have a warp sequence. I just look to make sure I can't see an obvious blue glow.
Title: Re: Give some sort of Hyperspace jump like XWA
Post by: MetalDestroyer on December 31, 2005, 10:11:10 am
Extract these files to your data/effects directory and try it.

I've just tested, and the warp ani is still here. :/ I don't know why.