Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: KeldorKatarn on January 30, 2007, 09:40:18 am

Title: Possible to add more than one field?
Post by: KeldorKatarn on January 30, 2007, 09:40:18 am
HI there,

is it possible to have more than one location for asteroid/debris fields?
Started to edit a little here and from the walkthrough and FRED2 help it
seems one can add only one box containing such a field per mission.
Title: Re: Possible to add more than one field?
Post by: FUBAR-BDHR on January 30, 2007, 01:54:20 pm
The only way I know of to do something like this is to put a field in then use asteroid objects for the second field.  Of course you run out of ship slots real fast this way. 
Title: Re: Possible to add more than one field?
Post by: karajorma on January 30, 2007, 02:50:41 pm
Kazan has been talking about updating the asteroid code. If he doesn't get around to it I may take a stab at it myself.
Title: Re: Possible to add more than one field?
Post by: KeldorKatarn on January 30, 2007, 05:15:35 pm
In that case: It would be very nice if the asteroid field "box" didn't have to be axis aligned.
That way placing an a little wider field across a map would be much easier. Because this way the field has to be axis aligned, so if I want it
diagonal to something I have to build the rest of the mission diagonal instead. Hope you know what I mean.
I know an axis aligned box is much easier for testing intersections, but if you are on it and think you can implement it that way too... would be cool.
(Come to think of it, a sphere/elipsoid as boundary would be nice as well. And even easy to test for intersections...
Title: Re: Possible to add more than one field?
Post by: Polpolion on January 31, 2007, 09:51:46 pm
At last resort you can make a very large rectangle with a inner boundary splitting it.

Lets say this: (I pull these numbers out of my ass for demonstration)

X min: -15
X max: 15
Y min -5
Y max 5
z min -5
Z max 5

Then you create an inner boundary of:

X min -5
X max 5
Y min -5
Y max 5
Z min -5
Z max 5

This way you should get two cubes of vol 1000m^3, I think.


I think that will work in an active field, I'm not sure if you can use an inner boundary for passive fields.

EDIT: what? how'd I get 1000?

*goes to sleep
Title: Re: Possible to add more than one field?
Post by: KeldorKatarn on February 01, 2007, 08:50:17 am
Thanks for that idea.
Another thing... are the asteroids in any way dangerous to fighters? The help tells me active fields throw asteroids at ships, but I guess that's only capital ships, right?
Title: Re: Possible to add more than one field?
Post by: FUBAR-BDHR on February 01, 2007, 10:33:04 am
They only go towards caps but are still dangerous to fighters.  If they run into a fighter or vice versa they do damage.