Discussion Space: 1999 updates ?

I don't understand this:
Code:
        [color=red]for (i=0; i<NumHover; i++)[/color]
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
How many particle streams there should be? Do you want to add 4 or 8 times the particle stream at first coordinates?
The "hover_pstream [0]" will be overwritten 3 or 7 times if you do this. And when you delete the "hover_pstream [0]" particle stream, only the last added will be deleted. Have you forgotten to comment out "for", or add "{}" braces there (and extend 8 times the hover_pstream table if that's the case)?
 
Thanks for right now 4 but later it will be 10.

Not sure what value I need to adjust so the smoke on the ground doesn't cover the vessel.
 
Not sure what value I need to adjust so the smoke on the ground doesn't cover the vessel.
You can decrease some attributes in definition of contrail_hover PARTICLESTREAMSPEC, like creation rate, lifetime, growth rate, velocity, etc. You need to experiment a bit with this.
 
Does 2010 produce different smoke than 2006?

Since it does great in 2006. Anyhow the number os thrusts will be based of if a pod is attached or not. If the lab is attached then it should have 10 else 8 with other pods
 
i just gota say lads gattispilot and them helping him have done a great job and EAGLE is still working
 
Thanks. I don't understand why the NEWEAgle works fine in 2006 and 2010 but the smoke on mine is different. I am using the same specs.
Here is the source files[ame="http://www.orbithangar.com/searchid.php?ID=613"]http://www.orbithangar.com/searchid.php?ID=613[/ame]
 
ok I reduced the smoke in 2010. but it looks like it is just coming from the front only and not sure what that smoke beam under the eagle is.


Code:
/smoke
{
    
    };
    int NumHover, i;
    double level, alt;
    level=GetThrusterGroupLevel(THGROUP_HOVER);
    alt=GetAltitude();
    // If stage=1 only 4 hovers, here's no cargo module
    if (stage == 1)
        NumHover=4;
    else
        NumHover=8;
    // Conditions to add smoke to hovers:
    // 1: Altitude below 10m
    // 2: Here's no previous defined smoke for hovers (humo flag in false condition)
    if ((alt <10) && (smoke==0))
    {
        for (i=0; i<4; i++)
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);


        
        (smoke=1);
    };
    //sprintf(oapiDebugString(),"anim %2.2f", alt);
    // Conditions to delete smoke to hovers:
    // 1: Altitude above 10m
    //(humo=true);// 2: Previosly defined smoke for hovers (humo flag in true condition)
    if ((alt>10) &&(smoke==1))//&& (humo))
    //{
        //sprintf(oapiDebugString(),"anim %2.2f", alt);

        SetThrusterGroupLevel(THGROUP_HOVER,0.0);
    for (i = 0; i < 4; ++i) DelExhaustStream (hover_pstream [i]); 
        SetThrusterGroupLevel(THGROUP_HOVER,level);
        (smoke=0);
    }
    
//}
 
Last edited:
ok I reduced the smoke in 2010. but it looks like it is just coming from the front only and not sure what that smoke beam under the eagle is.


Code:
    if ((alt <10) && (smoke==0))
    {
        [color=red]for (i=0; i<4; i++)[/color]
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
Remove the line marked with red. This causes the first front stream to be applied 4 times. This shouldn't be done here.

I downloaded, but I haven't checked the sources of NewEagle yet, so I don't know if there are differences in smoke between that version and yours (other than 4 times the same contrail particle stream applied for one of thrusters in yours).
 
Thanks. Deleted but now no smoke
Strange, because those particle streams work fine when applied to DeltaGlider's hover engines, instead of standard contrail, either when used on Earth or Moon. I'll check it yet tomorrow after work on NewEagle 022604 sources updated to VESSEL2 or VESSEL3.
 
Ok i changed it a little but I get 3 cone of exhaust. That matches the coordinates but I wonder then where the smoke is coming from and why only 3
Code:
        for (i=0; i<4; i++)
hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);

Now I get 3


I redid my hover to match the neweagle source. But I can't give it any hover thrust. Useing the thrust MFD it shows them.
fixed



Code:
int i;
//hover
    NumHover=4;
        for (i=0; i<NumHover; i++)
    {
        th_hover[i] = CreateThruster (_V(0,0,0), _V(0,1,0), MAXHOVERTH, [COLOR="Red"]TANK[/COLOR], ISP_QUI);
        AddExhaust (th_hover[i], 0.3, 0.5,_V(HoverEngineOfs[i].x,HoverEngineOfs[i].y+1.3,HoverEngineOfs[i].z),_V(0,-1,1));
    }
//
    thg_hover = CreateThrusterGroup (th_hover, NumHover, THGROUP_HOVER);
 
Last edited:
ok now I have 4 hovers like the NEWEagle sources. but now I get a CTD on ground.
I had to match the smoke with the new hovers
Code:
        for (i=0; i<4; i++)
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(0.64,-8,-9.399) , &contrail_hover);

but if I do this I get no ctd but no smoke
Code:
        for (i=0; i<4; i++)
hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);



I got smoke. Not sure about the 3 balls or cone under neath?


Code:
        for (i=0; i<4; i++)
hover_pstream [i] = AddExhaustStream (th_hover[0],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[0],_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[0],_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[0],_V(0.64,-8,-9.399) , &contrail_hover);
 
Last edited:
You're doing it wrong with the "for" loop.

ok now I have 4 hovers like the NEWEagle sources. but now I get a CTD on ground.
I had to match the smoke with the new hovers
Code:
        for (i=0; i<4; i++)
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover[i],_V(0.64,-8,-9.399) , &contrail_hover);
After unwinding "for" loop for this code block the code would look like this:
Code:
hover_pstream [0] = AddExhaustStream (th_hover[0],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover[1],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover[2],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover[3],_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover[3],_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover[3],_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover[3],_V(0.64,-8,-9.399) , &contrail_hover);


but if I do this I get no ctd but no smoke
Code:
        for (i=0; i<4; i++)
hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
And after unwinding "for" loop for the second code block the code would look like this:
Code:
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);


And if you add scope brackets for "for" loop around all AddExhautStream executions, like:
Code:
for (i = 0; i < 4; ++i) {
	hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
	hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
	hover_pstream [i] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
	hover_pstream [i] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
}
Each stream will be added to thruster 4 times. The unwinded version of that loop would look like:
Code:
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [0] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [0] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
Each hover_pstream handle will be overwritten 3 times, so only last added streams will be saved to array, and only these streams you will be able to delete. Each particle stream will be 4 times denser this way, and I don't think that is what you intend to do with those streams at all.

The best would be if you compiled the code in debug mode, set a breakpoint in the function that adds those exhaust streams just before they are added, run Orbiter from VS/VC in windowed mode, and wait until the execution stops when you use hover engine, and then do step by step through instructions in the debugger. This will tell you how your code works, which variables have what values, where is the bug, etc.
 
Thanks. Here the source code this is what I was copying:
Code:
// If stage=1 only 4 hovers, here's no cargo module
    if (stage == 1)
        NumHover=4;
    else
        NumHover=8;
    // Conditions to add smoke to hovers:
    // 1: Altitude below 10m
    // 2: Here's no previous defined smoke for hovers (humo flag in false condition)
    if ((alt <10) && (!humo))
    {
        for (i=0; i<NumHover; i++)
            hover_humo[i]=AddExhaustStream (th_hover[i], _V(HoverEngineOfs[i].x,HoverEngineOfs[i].y-7.5,HoverEngineOfs[i].z), &exhaust_hover);
        return true;
    };
    // Conditions to delete smoke to hovers:
    // 1: Altitude above 10m
    // 2: Previosly defined smoke for hovers (humo flag in true condition)
looking at the image it looks like 1 is producing the smoke the rest are the cones below the vessel which match the spec. But I wonder why 0 is different than 1-3

I just made it for 1 exhauststream so the cone is the the exhaust stream. which makes sense as it is set at -8 in the y. But where is the smoke on the surface coming from?

---------- Post added at 09:09 PM ---------- Previous post was at 07:14 AM ----------

Ok not sure what is happening here. this is for the the TPAD. Trying to get it to save the state and then act on it.

It will save the state but when I reload the doors will be closed. All but the door1 and door2 work animations work. I just noticed that the value APSel is saved correctly but not loaded.

if I set SetAnimation (anim_DD0, 1); the door is open upon restart.



Code:
void TPAD::clbkSaveState(FILEHANDLE scn)
{
char cbuf[256];
    
    // ORBITER, default vessel parameters
    SaveDefaultState (scn);

    // UMmu, this will save all our members of crew in scenario
    // as airlock state depend of your ship (you may have a real animated airlock)
    // it's your responsabilites to save and reload UMmu's airlock state.
//    Crew.SaveAllMembersInOrbiterScenarios(scn);


sprintf (cbuf, "%d %0.4f", DT1_status, DT1_proc);
        oapiWriteScenario_string (scn, "DT1", cbuf);
        sprintf (cbuf, "%d %0.4f", DT1D_status, DT1D_proc);
        oapiWriteScenario_string (scn, "DT1D", cbuf);
        sprintf (cbuf, "%d %0.4f", TC1_status, TC1_proc);
        oapiWriteScenario_string (scn, "TC1", cbuf);

        sprintf (cbuf, "%d %0.4f", DD0_status, DD0_proc);
        oapiWriteScenario_string (scn, "DOOR1", cbuf);

        sprintf (cbuf, "%d %0.4f", DD1_status, DD1_proc);
        oapiWriteScenario_string (scn, "DOOR2", cbuf);
        
        oapiWriteScenario_int (scn, "PAD", APSel);    

    // UMmu, this will save all our members of crew in scenario
    // as airlock state depend of your ship (you may have a real animated airlock)
    // it's your responsabilites to save and reload UMmu's airlock state.
    Crew.SaveAllMembersInOrbiterScenarios(scn);
}
void TPAD::clbkLoadStateEx (FILEHANDLE scn, void *status)
{
    char *line;
    while (oapiReadScenario_nextline (scn, line)) 
    {
        // UMMU, Load all saved member from scenario. 
        // Return TRUE when a "UMMUCREW" line is encountered 
        // FALSE when it must pass this line to you or default parser
        if(Crew.LoadAllMembersFromOrbiterScenario(line)==TRUE)
            continue;
       if (!_strnicmp (line, "DT1", 3)) {
   sscanf (line+3, "%d%lf", &DT1_status, &DT1_proc);
         }
        if (!_strnicmp (line, "DT1D", 4)) {
   sscanf (line+4, "%d%lf", &DT1D_status, &DT1D_proc);
         }
         if (!_strnicmp (line, "TC1", 3)) {
   sscanf (line+3, "%d%lf", &TC1_status, &TC1_proc);
         }
         if (!_strnicmp (line, "DD0", 3)) {
   sscanf (line+3, "%d%lf", &DD0_status, &DD0_proc);
         }
         if (!_strnicmp (line, "DD1", 3)) {
   sscanf (line+3, "%d%lf", &DD1_status, &DD1_proc);
         }
if (!_strnicmp (line, "PAD", 3)) {
             sscanf (line+3, "%d", &APSel);
}
 
        // ORBITER, unrecognised option - pass to Orbiter's generic parser
        ParseScenarioLineEx (line, status);
    }

    SetAnimation (anim_DT1, DT1_proc);
    SetAnimation (anim_DTDOOR1, DT1D_proc);
    SetAnimation (anim_DTDOOR2, DT1D_proc);
    SetAnimation (anim_DD0, DD0_proc);
    SetAnimation (anim_DD1, DD1_proc);

        SetAnimation (anim_tdoor11, TC1_proc);
        SetAnimation (anim_tdoor12, TC1_proc);
        SetAnimation (anim_tdoor13, TC1_proc);
        SetAnimation (anim_tdoor13A, TC1_proc);
    
    // as airlock state depend of your ship (you may have a real animated airlock)
    // it's your responsabilites to save and reload UMmu airlock state and set it accordingly
    // to your airlock. IE: call here "SetAirlockDoorState" TRUE of FALSE depend
    // of your animated airlock
}
tpad:TPAD
STATUS Landed Moon
POS 133.3476480 -78.8055080
HEADING 270.00
NAVFREQ 0 0
DT1 0 0.0000
DT1D 0 0.0000
TC1 0 0.0000
DOOR1 1 1.0000
DOOR2 0 0.0000
PAD 0
UMMUCREW 99D-George_Heller-15-70-45
UMMUCREW 99-Albert_Jr_Falcon-15-70-45
END


---------- Post added 09-24-10 at 03:42 PM ---------- Previous post was 09-23-10 at 09:09 PM ----------

Since my EAgle 3 is basically an New EAgle with extra feature like Ummu. Used his source code for it.

I got the smoke come on in 2006
But can't get it to delete the exhaust

Code:
bool EAGLE3::PasarLosHumos(bool humo)
{
    int NumHover, i;
    double level, alt;
    level=GetThrusterGroupLevel(THGROUP_HOVER);
    alt=GetAltitude();
    // If stage=1 only 4 hovers, here's no cargo module
    if (stage == 1)
        NumHover=4;
    else
        NumHover=8;
    // Conditions to add smoke to hovers:
    // 1: Altitude below 10m
    // 2: Here's no previous defined smoke for hovers (humo flag in false condition)
    if ((alt <10) && (!humo))
    {
        for (i=0; i<NumHover; i++)
            hover_humo[i]=AddExhaustStream (th_hover[i], _V(HoverEngineOfs[i].x,HoverEngineOfs[i].y-7.5,HoverEngineOfs[i].z), &exhaust_hover);
        return true;
    };
    // Conditions to delete smoke to hovers:
    // 1: Altitude above 10m
    // 2: Previosly defined smoke for hovers (humo flag in true condition)
    if ((alt>10) && (humo))
    {
        //sprintf(oapiDebugString(),"anim %2.2f", alt);
        SetThrusterGroupLevel(THGROUP_HOVER,0.0);
        for (i=0; i<NumHover; i++)
            DelExhaustStream (hover_humo[i]);
        
        SetThrusterGroupLevel(THGROUP_HOVER,level);
        return false;
    }
    return humo;
}

With the sprintf there it showed the alt. So I know it meet the requirements
 
Last edited:
Thanks for all the help.

What version of Orbiter should we be aiming for? The eagle 3 I am coding was coded for 2006. But the flight dynamics are different in 2010.

I got a report that with the 100830 P1 patch that the views are 90 degrees out of synch in pitch for the Eagle; 90 degrees out of synch in yaw in the Depot; and 90 degrees out of synch

I supposed we could do a 2006 and then updates.

Anyone wanting to help with the code of the eagle3 is more than welcomed.
 
Doug, Thanks.

I can pm the code. What part do you want to help with?
 
I think the Eagle is last piece. I think every thing pretty much works in 2006, 2010. There maybe an issue with P1. Not gotten there yet.

I am trying to get it recognized if a pod is attached if there is add the extra thruster. And the smoke.
 
Here is something that was brought to me attention. In 2010p1 the camera position and angles for the moonbase are wrong.

you cycle thru the pads and you get the right camera for pad1. top
p1pad1.jpg

switch to the side or angle view and you get these
p1pad2.jpg

p1pad3.jpg


here it is in 2010

p1pad20101.jpg


p1pad20102.jpg


p1pad20103.jpg


The MoonBase Alpha was compiled for 2006.

Code:
void MOONBASEALPHA1::SelectCockpitView (int CAM)
{

     
 if (PADSel==0){  //ext
          SetCameraDefaultDirection (_V(0,0,1));
          SetCameraOffset (_V(15,150,42));
          }
 if ((PADSel==1) && (CAM==0)){
          SetCameraDefaultDirection (_V(0,-1,0));
          SetCameraOffset (_V(  390.5037,50,341.5384));
         }

if ((PADSel==1) && (CAM==1)){
          SetCameraDefaultDirection (_V(-.309017,0,.951057));
          SetCameraOffset (_V(399.4585,14, 283.6915));
         }
    if ((PADSel==1) && (CAM==2)){
      SetCameraDefaultDirection (_V(-1.078438,0,.701057));
          SetCameraOffset (_V(   417.9957,14,326.1656));
          }
if ((PADSel==2) && (CAM==0)){
      SetCameraDefaultDirection (_V(0,-1,0));
          SetCameraOffset (_V( 286.2903,50,-288.6985));
          }
if ((PADSel==2) && (CAM==1)){    
SetCameraDefaultDirection (_V(.135046,0,1.279169));
          SetCameraOffset (_V(280.3212,14, -355.8325));
          }
if ((PADSel==2) && (CAM==2)){ 
SetCameraDefaultDirection (_V(-.7,0,.7));
          SetCameraOffset (_V(  309.0954,14,-310.6121));
          }
if ((PADSel==3) && (CAM==0)){
          SetCameraDefaultDirection (_V(0,-1,0));
          SetCameraOffset (_V(-410.0808,50,-386.3442));
}
if ((PADSel==3) && (CAM==1)){

          SetCameraDefaultDirection (_V(1.279169,0,.135046));
          SetCameraOffset (_V( -465.626,14,-384.417));
}
if ((PADSel==3) && (CAM==2)){
          SetCameraDefaultDirection (_V(.7,0,.7));
          SetCameraOffset (_V(-432.9589,14,-408.4052));
}
if ((PADSel==4) && (CAM==0)){
          SetCameraDefaultDirection (_V(0,-1,0));
          SetCameraOffset (_V(-405.4259,50,257.3364));
}
if ((PADSel==4) && (CAM==1)){
          SetCameraDefaultDirection (_V(.266849,0,-1.258295));
          SetCameraOffset (_V(-420.1621,14,309.4077));
}
if ((PADSel==4) && (CAM==2)){
          SetCameraDefaultDirection (_V(1.07843,0,-.701058));
          SetCameraOffset (_V(-432.3486,14,273.5226));
}
if ((PADSel==5) && (CAM==0)){
          SetCameraDefaultDirection (_V(0,-1,0));
          SetCameraOffset (_V(  171.2368,50,473.245));
}
if ((PADSel==5) && (CAM==1)){
          SetCameraDefaultDirection (_V(.460404,0,-1.20154));
          SetCameraOffset (_V( 157.5298,14,518.4872));
}
if ((PADSel==5) && (CAM==2)){
          SetCameraDefaultDirection (_V(1.114248,0,-.642623));
          SetCameraOffset (_V( 143.8261,14,489.8378));
}
if (PADSel==6) {
          SetCameraDefaultDirection (_V(1.284547,0,-.066723));
          SetCameraOffset (_V(-585.0901,1.566252,4.646639));
}
if (PADSel==7){
          SetCameraDefaultDirection (_V(-1.258294,0,.266849));
          SetCameraOffset (_V( 634.1259,1.566252,-129.1792));
}

}
 
Back
Top