- Joined
- Feb 4, 2008
- Messages
- 9,434
- Reaction score
- 689
- Points
- 203
For example, the "SECTION_COUNT" parameter is only used by the SRB vessel and it seems like the two lines that would make it active has been commented out:Hmm, not sure what you mean... as far as the "main" SSU code, no changes are needed for the SSU Workbench to work. My problem, now that file load/save is +/- done, is how to change/update the vessel data (inside SSU Workbench) so that it writes what we want to the scenario files.
Code:
Atlantis_SRB.cpp
Atlantis_SRB::Atlantis_SRB (OBJHANDLE hObj)
: VESSEL3(hObj), bMainEngine(false), bSeparationEngine(false), usSectionCount(SRB_SECTION_COUNT)
{
// preload mesh
//mesh_idx = MESH_UNDEFINED;
//hSRBMesh_Left = oapiLoadMeshGlobal ("SSU/LSRB");
//hSRBMesh_Right = oapiLoadMeshGlobal ("SSU/RSRB");
for(unsigned short i=0;i<SRB_SECTION_COUNT;i++) {
//hSRMSegmentMesh_Left[i] = NULL;
//hSRMSegmentMesh_Right[i] = NULL;
hSRMSegmentMesh[i] = NULL;
}
hVis = NULL;
slag1 = 0.0;
slag2 = 0.0;
slag3 = 0.0;
COLOUR4 col_diff = {1.0,0.733f,0.196f,0};
COLOUR4 col_zero = {0.0,0.0,0.0,0.0};
COLOUR4 col_ambient = {0.5,0.5,0.5,0};
SRBLight = AddPointLight( _V( 0.484, 0.434, -25.8 ), 300, 1e-3, 0, 0.0025, col_diff, col_zero, col_ambient );
SRBLight->Activate( false );
}