Is there a chance if there will be a beta version of this?
static const DWORD ntdvtx_geardown = 16;
static TOUCHDOWNVTX tdvtx_geardown[ntdvtx_geardown] = {
{ _V(0, -3.12312, 2), 26150800, 18409627, 1.6, 0.1 },
{ _V(-2, -3.12312, -2), 26150800, 18409627, 3.0, 0.2 },
{ _V(2, -3.12312, -2), 26150800, 18409627, 3.0, 0.2 },
{_V(-7.7, 0 ,-0.4), 3e7, 3e6, 3},
{_V(7.7, 0 ,-0.4), 3e7, 3e6, 3},
{_V(-1.5, 3 ,13.5), 3e7, 3e6, 3},
{_V(1.5, 3 ,13.5), 3e7, 3e6, 3},
{_V(-1.3, 2.8 ,17), 3e7, 3e6, 3},
{_V(1.3, 2.8 ,17), 3e7, 3e6, 3},
{_V(-1.8, 0 ,18.3), 3e7, 3e6, 3},
{_V(1.8, 0 ,18.3), 3e7, 3e6, 3},
{_V(-1.9, 2.2 ,-13.8), 3e7, 3e6, 3},
{_V(1.9, 2.2 ,-13.8), 3e7, 3e6, 3},
{_V(-3.3, 0 ,-14.9), 3e7, 3e6, 3},
{_V(3.3, 0 ,-14.9), 3e7, 3e6, 3}
};
th = GetThrusterGroupLevel(THGROUP_MAIN);
if (!th) th = GetThrusterGroupLevel(THGROUP_RETRO);
//main
if (th != engmain) {
engmain = th;
if (th >= 0.0) {
//draw thrust level
SelectObject(hDC, g_Param.hBrush[1]);//green box
Rectangle(hDC, 130, 144, (int)(130 + engmain * (200)), 187);//thrust
}
//retro
else {
SelectObject(hDC, g_Param.hBrush[2]);//yellow box
Rectangle(hDC, 130, 144, (int)(130 + engmain * (200)), 187);//retrothrust
}
}
sprintf(oapiDebugString(), "main %5f th %5f ", engmain, th);
// Update main engine status
vofs += 4;
double th = g_focusobj->GetThrusterGroupLevel(THGROUP_MAIN);
if (!th) th = -g_focusobj->GetThrusterGroupLevel(THGROUP_RETRO);
if (th != engmain) {
engmain = th;
if (th >= 0.0) {
grp->Vtx[vofs].x = grp->Vtx[vofs+2].x = dx+46.0f*scale;
grp->Vtx[vofs+1].x = grp->Vtx[vofs+3].x = dx+(float)((46.0+engmain*94.0)*scale);
for (i = 0; i < 4; i++) grp->Vtx[vofs+i].tu = 4.0f/texw;
} else {
grp->Vtx[vofs].x = grp->Vtx[vofs+2].x = dx+(140.0f+(float)engmain*94.0f)*scale;
grp->Vtx[vofs+1].x = grp->Vtx[vofs+3].x = dx+140.0f*scale;
for (i = 0; i < 4; i++) grp->Vtx[vofs+i].tu = 6.0f/texw;
}
}
// Update main engine readout
vofs += 4*5;
th = (engmain >= 0.0 ? engmain*g_focusobj->GetThrusterGroupMaxth(THGROUP_MAIN) :
-engmain*g_focusobj->GetThrusterGroupMaxth(THGROUP_RETRO));
// Update main engine status
vofs += 4;
double th = g_focusobj->GetThrusterGroupLevel(THGROUP_MAIN);
if (!th) th = -g_focusobj->GetThrusterGroupLevel(THGROUP_RETRO);
if (th != engmain) {
engmain = th;
if (th >= 0.0) {
grp->Vtx[vofs].x = grp->Vtx[vofs+2].x = dx+46.0f*scale;
grp->Vtx[vofs+1].x = grp->Vtx[vofs+3].x = dx+(float)((46.0+engmain*94.0)*scale);
for (i = 0; i < 4; i++) grp->Vtx[vofs+i].tu = 4.0f/texw;
} else {
grp->Vtx[vofs].x = grp->Vtx[vofs+2].x = dx+(140.0f+(float)engmain*94.0f)*scale;
grp->Vtx[vofs+1].x = grp->Vtx[vofs+3].x = dx+140.0f*scale;
for (i = 0; i < 4; i++) grp->Vtx[vofs+i].tu = 6.0f/texw;
}
}
th = GetThrusterGroupLevel(THGROUP_MAIN); //get thrust main level
if (!th) th = -GetThrusterGroupLevel(THGROUP_RETRO); //get retro thrustes - 1 to 0
static const DWORD ntdvtx_geardown = 8;
static TOUCHDOWNVTX tdvtx_geardown[ntdvtx_geardown] = {
{ _V(0, -3.12312, 10), 26150800, 18409627, 1.6, 0.1 },
{ _V(-6, -3.12312, -10), 26150800, 18409627, 3.0, 0.2 },
{ _V(6, -3.12312, -10), 26150800, 18409627, 3.0, 0.2 },
{_V(-6.6, -0.5 ,-12), 3e7, 3e6, 3},
{_V(6.6, -.5 ,-12), 3e7, 3e6, 3},
{_V(0, 0 ,-16), 3e7, 3e6, 3},
{_V(0, 3.2 ,0), 3e7, 3e6, 3},
{_V(0, 0 ,16.7), 3e7, 3e6, 3},
};
SetTouchdownPoints(tdvtx_geardown, ntdvtx_geardown);
SetTouchdownPoints(_V(0, -3.12312 + GEAR_proc * 1.5, 8.7), _V(-2, -3.12312 + GEAR_proc * 1.5, -9.6), _V(2, -3.12312 + GEAR_proc * 1.5, -9.6));
TDP_1_1_STIFFNESS = 700000 TDP_1_1_DAMPING = 120000
TDP_1_0_POS = 0 -3.4 10
TDP_1_0_STIFFNESS = 221733
TDP_1_0_DAMPING = 156068
TDP_1_0_MU = 0.1
TDP_1_0_MULNG = 0.2
TDP_1_1_POS = -6 -3.2 -10
TDP_1_1_STIFFNESS = 221733
TDP_1_1_DAMPING = 156068
TDP_1_1_MU = 3
TDP_1_1_MULNG = 0.2
TDP_1_2_POS = 6 -3.2 -10
TDP_1_2_STIFFNESS = 221733
TDP_1_2_DAMPING = 156068
TDP_1_2_MU = 3
TDP_1_2_MULNG = 0.2
TDP_1_3_POS = 0 0 -16
TDP_1_3_STIFFNESS = 221733
TDP_1_3_DAMPING = 156068
TDP_1_3_MU = 3
TDP_1_3_MULNG = 0.2
TDP_1_4_POS = -8 3.2 -12
TDP_1_4_STIFFNESS = 221733
TDP_1_4_DAMPING = 156068
TDP_1_4_MU = 3
TDP_1_4_MULNG = 0.2
TDP_1_5_POS = 8 3.2 -12
TDP_1_5_STIFFNESS = 221733
TDP_1_5_DAMPING = 156068
TDP_1_5_MU = 3
TDP_1_5_MULNG = 0.2
TDP_1_6_POS = 0 3.2 0
TDP_1_6_STIFFNESS = 221733
TDP_1_6_DAMPING = 156068
TDP_1_6_MU = 3
TDP_1_6_MULNG = 0.2
TDP_1_7_POS = -8 3.2 12
TDP_1_7_STIFFNESS = 221733
TDP_1_7_DAMPING = 156068
TDP_1_7_MU = 3
TDP_1_7_MULNG = 0.2
TDP_1_8_POS = 8 3.2 12
TDP_1_8_STIFFNESS = 221733
TDP_1_8_DAMPING = 156068
TDP_1_8_MU = 3
TDP_1_8_MULNG = 0.2
TDP_1_9_POS = 0 0 16
TDP_1_9_STIFFNESS = 221733
TDP_1_9_DAMPING = 156068
TDP_1_9_MU = 3
TDP_1_9_MULNG = 0.2
static const int ntdvtx = 10;
static TOUCHDOWNVTX tdvtx[ntdvtx] = {
{ _V(0, -3.4, 10), 221733, 156068, .1, 0.2 },
{ _V(-6 , -3.2, -10), 221733, 156068, 3.0, 0.2 },
{ _V(6 ,-3.2, -10), 221733, 156068, 3.0, 0.2 },
{_V(0 ,0 , 16), 221733, 156068, 3.0, 0.2 },
{_V(-8, 3.2, -12), 221733, 156068, 3.0, 0.2 },
{_V(8, 3.2, -12), 221733, 156068, 3.0, 0.2 },
{_V(0, 3.2, 0), 221733, 156068, 3.0, 0.2 },
{_V(-8, 3.2, 12), 221733, 156068, 3.0, 0.2 },
{_V(8, 3.2, 12), 221733, 156068, 3.0, 0.2 },
{_V(0, 0, 16), 221733, 156068, 3.0, 0.2 },
};
change .1 to 3{ _V(0, -3.4, 10), 221733, 156068, .1, 0.2 },
3.0, 0.2
{_V(-3 ,-3.12312, 12.5), 3.5e6, 3.5e5, 3},
{_V(-3 ,-3.12312,-13.5), 3e6, 3e5, 3},
{_V(3 ,-3.12312,-13.5), 3e6, 3e5, 3},
{_V(3 ,-3.12312, 12.5), 3.5e6, 3.5e5, 3},
{_V(-7.7, 0 ,-0.4), 3e7, 3e6, 3},
{_V(7.7, 0 ,-0.4), 3e7, 3e6, 3},
{_V(-1.5, 3 ,13.5), 3e7, 3e6, 3},
{_V(1.5, 3 ,13.5), 3e7, 3e6, 3},
{_V(-1.3, 2.8 ,17), 3e7, 3e6, 3},
{_V(1.3, 2.8 ,17), 3e7, 3e6, 3},
{_V(-1.8, 0 ,18.3), 3e7, 3e6, 3},
{_V(1.8, 0 ,18.3), 3e7, 3e6, 3},
{_V(-1.9, 2.2 ,-13.8), 3e7, 3e6, 3},
{_V(1.9, 2.2 ,-13.8), 3e7, 3e6, 3},
{_V(-3.3, 0 ,-14.9), 3e7, 3e6, 3},
{_V(3.3, 0 ,-14.9), 3e7, 3e6, 3}
static TOUCHDOWNVTX tdvtx_hover[ntdvtx_hover] = {
{ _V( 0, -1.19, 2.2), 1e7, 1e5, 2, 1},
{ _V( -2.2, -1.19, 0), 1e7, 1e5, 2, 1},
{ _V( 2.2, -1.19, 0), 1e7, 1e5, 2, 1},
{ _V( 0, -1.19, -2.2), 1e7, 1e5, 2},
{ _V( 1.5, 0.8, 0), 1e6, 2e5, 0.6},
{ _V(-1.5, 0.8, 0), 1e6, 2e5, 0.6}
};
static const int ntdvtx = 16;
static TOUCHDOWNVTX tdvtx[ntdvtx] = {
{_V(-3 ,-3.12312, 12.5), 1e7, 1e5, 3.0, 3.0 },
{_V(-3 ,-3.12312,-13.5), 1e7, 1e5, 3.0, 3.0 },
{_V(3 ,-3.12312,-13.5), 1e7, 1e5, 3.0, 3.0 },
{_V(3 ,-3.12312, 12.5), 1e7, 1e5, 3.0, 3.0 },
{_V(-7.7, 0 ,-0.4), 1e7, 1e5, 3.0, 3.0 },
{_V(7.7, 0 ,-0.4), 1e7, 1e5, 3.0, 3.0 },
{_V(-1.5, 3 ,13.5), 1e7, 1e5, 3.0, 3.0 },
{_V(1.5, 3 ,13.5), 1e7, 1e5, 3.0, 3.0 },
{_V(-1.3, 2.8 ,17), 1e7, 1e5, 3.0, 3.0 },
{_V(1.3, 2.8 ,17), 1e7, 1e5, 3.0, 3.0 },
{_V(-1.8, 0 ,18.3), 1e7, 1e5, 3.0, 3.0 },
{_V(1.8, 0 ,18.3), 1e7, 1e5, 3.0, 3.0 },
{_V(-1.9, 2.2 ,-13.8), 1e7, 1e5, 3.0, 3.0 },
{_V(1.9, 2.2 ,-13.8), 1e7, 1e5, 3.0, 3.0 },
{_V(-3.3, 0 ,-14.9), 31e7, 1e5, 3.0, 3.0 },
{_V(3.3, 0 ,-14.9), 1e7, 1e5, 3.0, 3.0 }
};
31e7 can't be good{_V(-3.3, 0 ,-14.9), 31e7, 1e5, 3.0, 3.0 },