Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: General Battuta on November 07, 2010, 01:05:52 am

Title: I smell a hilarious bug
Post by: General Battuta on November 07, 2010, 01:05:52 am
I can't do it right, but could somebody do something real quick for me?

1. Open up a test mission. Place Alpha 1, 2 and 3.

2. FRED an event to put the player under AI control at time=10 or whatever.

3. Start the mission, order Alpha to depart, wait for AI control to kick in.

What happens?
Title: Re: I smell a hilarious bug
Post by: Solatar on November 07, 2010, 01:22:31 am
I set up a mission; Alpha wing has initial orders to depart, and Alpha 1 goes under AI control at 5 seconds in.

Alpha 2 and 3 jump out initially, but once the AI control comes on there's no warpout.

If, however, you add-goal Alpha 1 a warp-out order once he's under AI-control, the ship warps out WITHOUT going into third person view.  A subspace portal opens right in front of you, and you fly through it and then some (the mission doesn't end as you're hitting the 'event' horizon, but a few seconds after).  Interesting warping in 1st person.

EDIT: My bad, I know what you're getting at now.  And yes, if you order Alpha wing to depart (before OR after AI control kicks in) your ship warps out as well (in 1st person). You CAN order yourself to depart.  :p
Title: Re: I smell a hilarious bug
Post by: Nuke on November 07, 2010, 01:43:39 am
ive been able to do a first person warpout with scripting, all be it accidentally. i didnt reset the camera at the end of the mission. i thought about doing some kind of effect that looks like you entered subspace that is rendered when you pass the event horizon. i even considered using render to texture to do something portal-ish using some of the intra system jump script used in the fsrts so you could make jumps part of a mission.
Title: Re: I smell a hilarious bug
Post by: General Battuta on November 07, 2010, 01:49:32 am
First person warpout isn't the goal here, that was achieved in both Vassago's Dirge and War in Heaven pretty trivially. In fact:

i thought about doing some kind of effect that looks like you entered subspace that is rendered when you pass the event horizon. i even considered using render to texture to do something portal-ish using some of the intra system jump script used in the fsrts so you could make jumps part of a mission.

Mission-set-subspace SEXP may be of interest to you.

However, my real concern here is what Solatar brought up. If you order Alpha wing to depart, then place the player under AI control at any later point in the mission, I believe the player will immediately depart.

Also:

Quote
Interesting warping in 1st person.

Man, play Vassago's Dirge already!
Title: Re: I smell a hilarious bug
Post by: Nuke on November 07, 2010, 01:01:31 am
id rather use lua over any sexp any day. i very much doubt you could make portals with sexps. scripting on the other hand seems like it could pull it off just fine.
Title: Re: I smell a hilarious bug
Post by: Solatar on November 07, 2010, 01:30:03 am
Quote
]
Man, play Vassago's Dirge already!

I should have been more clear that I was just sort of surprised at the 1st person jump, since my ship was actually departing.  Having quite enjoyed Vassago's Dirge, the effect itself didn't sketch me out.  :P
Title: Re: I smell a hilarious bug
Post by: General Battuta on November 07, 2010, 07:58:58 am
Pardon my excessively aggressive love for Axem, Solatar.
Title: Re: I smell a hilarious bug
Post by: Solatar on November 07, 2010, 10:27:37 am
By all means, pimp the hell out of that campaign; it's good. :yes: