3 #include "..\GameClass.h" 5 #include "../Dialogs/InformationDialog.h" 6 #include "../MathUtilities.h" 60 D3DXMATRIX matrixWorld, matrixTemp;
80 matrixWorld = matrixWorld * matrixTemp;
82 matrixWorld = matrixWorld * matrixTemp;
112 matrixWorld = matrixWorld * matrixTemp;
114 matrixWorld = matrixWorld * matrixTemp;
135 matrixWorld = matrixWorld * matrixTemp;
137 matrixWorld = matrixWorld * matrixTemp;
156 matrixWorld = matrixWorld * matrixTemp;
158 matrixWorld = matrixWorld * matrixTemp;
170 matrixWorld = matrixWorld * matrixTemp;
172 matrixWorld = matrixWorld * matrixTemp;
186 matrixWorld = matrixWorld * matrixTemp;
188 matrixWorld = matrixWorld * matrixTemp;
202 matrixWorld = matrixWorld * matrixTemp;
204 matrixWorld = matrixWorld * matrixTemp;
227 matrixWorld = matrixWorld * matrixTemp;
229 matrixWorld = matrixWorld * matrixTemp;
249 matrixWorld = matrixWorld * matrixTemp;
251 matrixWorld = matrixWorld * matrixTemp;
272 D3DXMatrixTranslation(&matrixTemp, result.x, result.y, result.z);
273 matrixWorld = matrixWorld * matrixTemp;
277 D3DXMatrixRotationX(&matrixTemp, D3DX_HALFPI);
278 matrixWorld = matrixWorld * matrixTemp;
281 D3DXMatrixRotationY(&matrixTemp, D3DX_PI);
282 matrixWorld = matrixWorld * matrixTemp;
286 D3DXMatrixRotationY(&matrixTemp, -D3DX_PI);
287 matrixWorld = matrixWorld * matrixTemp;
295 matrixWorld = matrixTemp * matrixWorld;
303 matrixWorld = matrixTemp * matrixWorld;
331 D3DXVECTOR4 features;
353 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 4));
354 V(pd3dDevice->SetRenderState(D3DRS_STENCILPASS, D3DSTENCILOP_REPLACE));
355 V(pd3dDevice->SetRenderState(D3DRS_STENCILFUNC, D3DCMP_ALWAYS));
358 #pragma region Cockpit components 359 short oldtexture = -1;
375 #pragma region Texture assignment 423 V(pd3dDevice->SetRenderState(D3DRS_STENCILPASS, D3DSTENCILOP_KEEP));
424 V(pd3dDevice->SetRenderState(D3DRS_STENCILFUNC, D3DCMP_GREATER));
431 D3DXVECTOR3 vieneohit, result;
433 #pragma region Setting the scene 437 V(pd3dDevice->SetSamplerState(1, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR));
438 V(pd3dDevice->SetSamplerState(1, D3DSAMP_MINFILTER, D3DTEXF_LINEAR));
439 V(pd3dDevice->SetSamplerState(1, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR));
440 V(pd3dDevice->SetSamplerState(2, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR));
441 V(pd3dDevice->SetSamplerState(2, D3DSAMP_MINFILTER, D3DTEXF_LINEAR));
442 V(pd3dDevice->SetSamplerState(2, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR));
446 V(pd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA));
447 V(pd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA));
448 V(pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1));
449 V(pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TFACTOR));
450 V(pd3dDevice->SetTextureStageState(1, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1));
451 V(pd3dDevice->SetTextureStageState(1, D3DTSS_ALPHAARG1, D3DTA_TEXTURE));
452 V(pd3dDevice->SetTextureStageState(2, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1));
453 V(pd3dDevice->SetTextureStageState(2, D3DTSS_ALPHAARG1, D3DTA_CURRENT));
455 #pragma region Interior Lighting 457 D3DXCOLOR tempfactor;
460 tempfactor = 0xFFBFB5A8;
462 tempfactor = 0xFF400000;
464 tempfactor = 0xFF000000;
475 V(pd3dDevice->SetRenderState(D3DRS_TEXTUREFACTOR, tempfactor));
483 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
484 color0op = D3DTOP_ADDSMOOTH;
485 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE));
486 color0arg2 = D3DTA_DIFFUSE;
490 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1));
491 color0op = D3DTOP_SELECTARG1;
494 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TFACTOR));
495 int color0arg1 = D3DTA_TFACTOR;
496 V(pd3dDevice->SetTextureStageState(0, D3DTSS_TEXCOORDINDEX, 0));
498 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_MODULATE));
499 int color1op = D3DTOP_MODULATE;
500 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_TEXTURE));
501 int color1arg1 = D3DTA_TEXTURE;
502 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG2, D3DTA_CURRENT));
503 int color1arg2 = D3DTA_CURRENT;
504 V(pd3dDevice->SetTextureStageState(1, D3DTSS_TEXCOORDINDEX, 0));
506 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
507 int color2op = D3DTOP_ADDSMOOTH;
508 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLORARG1, D3DTA_TEXTURE));
509 int color2arg1 = D3DTA_TEXTURE;
510 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLORARG2, D3DTA_CURRENT));
511 int color2arg2 = D3DTA_CURRENT;
512 V(pd3dDevice->SetTextureStageState(2, D3DTSS_TEXCOORDINDEX, 0));
519 V(pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,
false));
527 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 4));
528 V(pd3dDevice->SetRenderState(D3DRS_STENCILPASS, D3DSTENCILOP_REPLACE));
529 V(pd3dDevice->SetRenderState(D3DRS_STENCILFUNC, D3DCMP_ALWAYS));
533 #pragma region Sunlight and Radiosity 543 ZeroMemory(&templight,
sizeof D3DLIGHT9);
544 templight.Type = D3DLIGHT_DIRECTIONAL;
545 D3DXVec3Scale(&vieneohit, &Xsunlight,
radiusC);
546 D3DXVec3Subtract(&result, &vieneohit, &
playerships[0].position);
547 D3DXVec3Normalize(&result, &result);
548 templight.Direction = result;
549 float radio = fabsf(D3DXVec3Dot(&result, &Xsunlight));
550 radio = 1.0f - radio;
553 templight.Diffuse.r = 0.6975f*(radio); templight.Diffuse.g = 0.805f*(radio); templight.Diffuse.b = 0.91f*(radio);
554 V(pd3dDevice->SetLight(2, &templight));
555 V(pd3dDevice->LightEnable(2,
true));
568 templight.Diffuse.r *= f_temp;
569 templight.Diffuse.g *= f_temp;
570 templight.Diffuse.b *= f_temp;
571 V(pd3dDevice->SetLight(0, &templight));
577 templight.Ambient = templight.Diffuse;
578 templight.Diffuse.r *= 0.25f;
579 templight.Diffuse.g *= 0.25f;
580 templight.Diffuse.b *= 0.25f;
581 V(pd3dDevice->SetLight(0, &templight));
588 templight.Ambient.r = templight.Ambient.g = templight.Ambient.b = 1.0f;
589 templight.Diffuse = D3DCOLORVALUE();
590 V(pd3dDevice->SetLight(0, &templight));
598 #pragma region Cockpit components 599 short oldtexture = -1;
613 #pragma region Texture assignment 628 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_TEXTURE));
629 color1arg1 = D3DTA_TEXTURE;
633 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_SPECULAR));
634 color1arg1 = D3DTA_SPECULAR;
639 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
640 color2op = D3DTOP_DISABLE;
644 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
645 color2op = D3DTOP_ADDSMOOTH;
652 assert(color1arg1 == D3DTA_TEXTURE);
656 assert(color1arg1 == D3DTA_TEXTURE);
660 assert(color1arg1 == D3DTA_TEXTURE);
664 assert(color1arg1 == D3DTA_SPECULAR);
666 assert(color1op == D3DTOP_MODULATE);
667 assert(color1arg2 == D3DTA_CURRENT);
671 assert(color2op == D3DTOP_DISABLE);
675 assert(color2op == D3DTOP_ADDSMOOTH);
677 assert(color2arg1 == D3DTA_TEXTURE);
678 assert(color2arg2 == D3DTA_CURRENT);
684 V(pd3dDevice->SetRenderState(D3DRS_TEXTUREFACTOR,
viewscreen->
flicker ? 0xFFBFBFBF : 0xFFBABABA));
685 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG2, D3DTA_TFACTOR));
686 color1arg2 = D3DTA_TFACTOR;
687 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
688 color2op = D3DTOP_DISABLE;
694 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_SPECULAR));
696 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_SELECTARG1));
697 color1op = D3DTOP_SELECTARG1;
701 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_MODULATE));
702 color2op = D3DTOP_MODULATE;
708 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG2));
709 color0op = D3DTOP_SELECTARG2;
710 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 3));
717 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
718 color1op = D3DTOP_ADDSMOOTH;
722 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_SELECTARG2));
723 color1op = D3DTOP_SELECTARG2;
733 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_MODULATE));
734 color2op = D3DTOP_MODULATE;
738 V(pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,
true));
742 V(pd3dDevice->SetRenderState(D3DRS_TEXTUREFACTOR, tempfactor*0.25f));
743 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_TFACTOR));
744 color0arg2 = D3DTA_TFACTOR;
748 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG2));
749 color0op = D3DTOP_SELECTARG2;
750 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 3));
755 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTSS_COLORARG1));
756 color0op = D3DTSS_COLORARG1;
757 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE));
758 color0arg1 = D3DTA_TEXTURE;
759 color1op = D3DTOP_DISABLE;
760 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_DISABLE));
763 D3DXMATRIX matrixTemp;
764 D3DXMatrixIdentity(&matrixTemp);
766 V(pd3dDevice->SetTransform(D3DTS_TEXTURE0, &matrixTemp));
767 V(pd3dDevice->SetTextureStageState(0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_COUNT2));
774 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
775 color2op = D3DTOP_DISABLE;
784 V(pd3dDevice->SetRenderState(D3DRS_TEXTUREFACTOR, tempfactor));
785 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG2, D3DTA_CURRENT));
786 color1arg2 = D3DTA_CURRENT;
789 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
790 color2op = D3DTOP_DISABLE;
794 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
795 color2op = D3DTOP_ADDSMOOTH;
800 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_TEXTURE));
801 color1arg1 = D3DTA_TEXTURE;
802 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_MODULATE));
803 color1op = D3DTOP_MODULATE;
806 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
807 color2op = D3DTOP_DISABLE;
811 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
812 color2op = D3DTOP_ADDSMOOTH;
818 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
819 color0op = D3DTOP_ADDSMOOTH;
820 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 4));
824 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_MODULATE));
825 color1op = D3DTOP_MODULATE;
836 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
837 color2op = D3DTOP_DISABLE;
841 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
842 color2op = D3DTOP_ADDSMOOTH;
848 V(pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,
false));
852 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE));
853 color0arg2 = D3DTA_DIFFUSE;
854 V(pd3dDevice->SetRenderState(D3DRS_TEXTUREFACTOR, tempfactor));
858 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
859 color0op = D3DTOP_ADDSMOOTH;
860 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 4));
864 V(pd3dDevice->SetTextureStageState(0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE));
868 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
869 color0op = D3DTOP_ADDSMOOTH;
870 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TFACTOR));
871 color0arg1 = D3DTA_TFACTOR;
875 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1));
876 color0op = D3DTOP_SELECTARG1;
877 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TFACTOR));
878 color0arg1 = D3DTA_TFACTOR;
881 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_MODULATE));
882 color1op = D3DTOP_MODULATE;
889 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
890 color2op = D3DTOP_DISABLE;
894 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_ADDSMOOTH));
895 color2op = D3DTOP_ADDSMOOTH;
904 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1));
905 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE));
907 V(pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_DISABLE));
908 V(pd3dDevice->SetTextureStageState(2, D3DTSS_COLOROP, D3DTOP_DISABLE));
910 V(pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE));
911 V(pd3dDevice->SetTextureStageState(1, D3DTSS_ALPHAARG1, D3DTA_TEXTURE));
912 V(pd3dDevice->SetTextureStageState(2, D3DTSS_ALPHAARG1, D3DTA_TEXTURE));
915 #pragma region Interior people (next closest) 1063 V(pd3dDevice->SetRenderState(D3DRS_STENCILREF, 2));
1065 V(pd3dDevice->SetRenderState(D3DRS_STENCILPASS, D3DSTENCILOP_KEEP));
1066 V(pd3dDevice->SetRenderState(D3DRS_STENCILFUNC, D3DCMP_GREATER));
1086 V(pd3dDevice->LightEnable(2,
false));
1091 V(pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE));
1093 V(pd3dDevice->SetSamplerState(1, D3DSAMP_MAGFILTER, D3DTEXF_POINT));
1094 V(pd3dDevice->SetSamplerState(1, D3DSAMP_MINFILTER, D3DTEXF_POINT));
1095 V(pd3dDevice->SetSamplerState(1, D3DSAMP_MIPFILTER, D3DTEXF_NONE));
1096 V(pd3dDevice->SetSamplerState(2, D3DSAMP_MAGFILTER, D3DTEXF_POINT));
1097 V(pd3dDevice->SetSamplerState(2, D3DSAMP_MINFILTER, D3DTEXF_POINT));
1098 V(pd3dDevice->SetSamplerState(2, D3DSAMP_MIPFILTER, D3DTEXF_NONE));
1127 sprintf_s(msg, 199,
"m_pddsCockpitTexture[%i]", s);
1134 sprintf_s(msg, 199,
"m_pddsCockpitLights[%i]", s);
1207 if (FAILED(hr = D3DXCreateTexture(pd3dDevice, 907, 352, 1, D3DUSAGE_RENDERTARGET,
1217 if (FAILED(hr = D3DXCreateTexture(pd3dDevice, 1135, 388, 1, D3DUSAGE_RENDERTARGET,
1233 WCHAR hullfile[199], lightfile[199];
1237 hullfile[0] = lightfile[0] = 0;
1246 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hull1.dds");
1248 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
1250 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\E-10-saint-cockpit-glass.dds");
1252 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk.dds");
1256 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1-arm.dds");
1258 case 7: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-light-incan1.dds");
1260 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-monitor1.dds");
1262 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1.dds");
1264 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-buttonboard1.dds");
1266 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand2-mount.dds");
1268 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hatch1.dds");
1270 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-tread1.dds");
1272 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-bracing1.dds");
1274 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
1277 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk-LIGHTWRAP.dds");
1279 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
1281 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpittpull.dds");
1283 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
1284 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
1286 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1288 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons2.dds");
1289 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons2LIGHT.dds");
1291 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
1292 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
1294 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-door1.dds");
1296 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchair.dds");
1297 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
1299 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-frame1.dds");
1301 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-flightstick2.dds");
1303 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod1-emergency.dds");
1305 case 28: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-glass1.dds");
1307 case 29: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-grate1.dds");
1318 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hull1.dds");
1320 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
1322 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\E-10-saint-cockpit-glass.dds");
1324 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-buttonboard1-2x.dds");
1326 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
1327 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
1329 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk.dds");
1331 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1-arm.dds");
1333 case 8: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-light-incan1.dds");
1337 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-monitor1.dds");
1339 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1.dds");
1341 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand2-mount.dds");
1343 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hatch1.dds");
1345 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-tread1.dds");
1347 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-bracing1.dds");
1349 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
1352 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk-LIGHTWRAP.dds");
1354 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
1356 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpittpull.dds");
1358 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
1359 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
1361 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1363 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons2.dds");
1364 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons2LIGHT.dds");
1366 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-door1.dds");
1368 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchair.dds");
1369 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
1371 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-frame1.dds");
1373 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-flightstick2.dds");
1375 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod1-emergency-2x.dds");
1377 case 28: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-glass1.dds");
1379 case 29: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-grate1.dds");
1390 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-1.dds");
1392 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-window.dds");
1394 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\durum-frame.dds");
1396 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
1398 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-gaugehousing.dds");
1400 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwindshield.dds");
1402 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwindshield.dds");
1404 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
1406 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwindshield.dds");
1408 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-backwall.dds");
1410 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-steeringwheel3.dds");
1412 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-floor.dds");
1414 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwall.dds");
1417 wcscpy_s(lightfile, 199, L
"Textures\\Instruments\\GVscreenblueprintLIGHT.dds");
1419 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwall.dds");
1421 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwall.dds");
1423 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
1425 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-chair.dds");
1426 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
1428 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-wirepipe.dds");
1430 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
1432 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
1433 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
1435 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
1437 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
1439 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1441 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod4.dds");
1443 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitarm.dds");
1454 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Wanderer-glass.dds");
1456 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\durum-frame.dds");
1458 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-floor.dds");
1460 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchair.dds");
1461 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
1463 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpit-hudmount.dds");
1465 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-rightwall.dds");
1467 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-leftwall.dds");
1469 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-backfrontwall.dds");
1473 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitdashstation.dds");
1475 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
1477 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitconsole.dds");
1479 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitcontrolstand.dds");
1481 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
1483 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-wirepipe.dds");
1485 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
1486 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
1488 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
1490 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod2.dds");
1492 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
1494 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod1.dds");
1496 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairbase.dds");
1497 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairbaseLIGHT.dds");
1499 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1501 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod4.dds");
1503 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod5.dds");
1505 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitflightstick.dds");
1516 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-glass.dds");
1518 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-floor.dds");
1520 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-rightwall.dds");
1522 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-leftwall.dds");
1524 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hull1.dds");
1526 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-ceiling frame.dds");
1528 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-door1.dds");
1530 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip.dds");
1532 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-monitor1.dds");
1534 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-buttonboard1.dds");
1536 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk.dds");
1538 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-frame1.dds");
1540 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1.dds");
1542 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpit-hudmount.dds");
1544 case 15: wcscpy_s(hullfile, 199, L
"textures\\Ships\\p13-equipment cowl.dds");
1546 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpittpull.dds");
1550 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1-arm.dds");
1552 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-chair2.dds");
1554 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
1556 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
1557 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
1559 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1561 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
1563 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
1564 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
1566 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-flightstick2.dds");
1579 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\tread2.dds");
1581 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
1583 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\AV-T-19-Stratomaster-glass.dds");
1585 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPfloor36-1_sub.dds");
1589 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SeatBody001.dds");
1591 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
1592 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
1594 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons2.dds");
1595 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons2LIGHT.dds");
1597 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
1598 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
1600 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Door001.dds");
1602 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\CockpitMainPart004.dds");
1604 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
1617 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\tread2.dds");
1619 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
1622 case 4: wcscpy_s(hullfile, 199, L
"textures\\Ships\\Manx_Diff.dds");
1624 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GlassDiffuse.dds");
1626 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
1627 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
1629 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Manx_Complete-Carpeted.dds");
1633 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Chair-3.dds");
1635 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
1646 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-1.dds");
1648 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-1-GLASS.dds");
1650 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
1652 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-accelerator-standard.dds");
1654 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
1656 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-gaugehousing.dds");
1658 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-floor.dds");
1660 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwall.dds");
1662 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-steeringwheel3.dds");
1664 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwall.dds");
1667 wcscpy_s(lightfile, 199, L
"textures\\Instruments\\GVscreenblueprintLIGHT.dds");
1669 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwall.dds");
1671 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\monitor-palette.dds");
1673 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
1675 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod1.dds");
1677 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-chair.dds");
1678 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
1680 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
1682 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
1683 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
1685 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
1687 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
1689 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1700 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\mirror.dds");
1702 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\body.dds");
1704 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
1706 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\glass.dds");
1709 wcscpy_s(lightfile, 199, L
"textures\\Instruments\\GVscreenblueprintLIGHT.dds");
1711 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-accelerator-standard.dds");
1713 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
1715 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\dash-center.dds");
1717 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\console-center.dds");
1719 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\dash-cover.dds");
1721 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\carpet1.dds");
1723 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-rear.dds");
1725 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\ceiling1.dds");
1727 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\controls-env.dds");
1728 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\controls-envLIGHT.dds");
1730 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\monitor-palette.dds");
1732 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\radio1.dds");
1733 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\radio1LIGHT.dds");
1735 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\chair1-back.dds");
1737 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\chair1.dds");
1739 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\gearshift.dds");
1741 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\controls1.dds");
1742 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\controls1LIGHT.dds");
1744 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Sparko.dds");
1756 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-1.dds");
1758 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\T-120cockpit-window.dds");
1760 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-accelerator-standard.dds");
1762 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
1764 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-gaugehousing.dds");
1766 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Bedding.dds");
1768 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
1770 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitdashmonitor.dds");
1772 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitdashmonitorplate2.dds");
1774 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-floor.dds");
1776 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-steeringwheel3.dds");
1778 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwall.dds");
1781 wcscpy_s(lightfile, 199, L
"Textures\\Instruments\\GVscreenblueprintLIGHT.dds");
1783 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwall.dds");
1785 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\monitor-palette.dds");
1787 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwall.dds");
1789 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
1791 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod1.dds");
1793 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-chair.dds");
1794 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
1796 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod2.dds");
1798 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
1800 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
1801 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
1803 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
1805 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
1807 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
1818 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
1820 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\mammoth-glass.dds");
1822 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1-Elongated.dds");
1823 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1-ElongatedLIGHT.dds");
1825 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MamothSeat-Old-Body.dds");
1827 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MammothSeat-Old-Bottom.dds");
1829 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MammothSeat-New.dds");
1831 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Mammoth-Objects.dds");
1832 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\Mammoth-ObjectsLIGHT.dds");
1834 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Mammoth-Walls.dds");
1835 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\Mammoth-WallsLIGHT.dds");
1848 case 1: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\glass.dds");
1850 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\ApartmentItems.dds");
1852 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\ApartmentBody.dds");
1853 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\ApartmentBodyLIGHT.dds");
1855 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Bellgirl1.dds");
1857 case 5: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\ApartmentKitchen.dds");
1861 case 7: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\modern1.dds");
1863 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
1874 case 1: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\environment_BakedColor.dds");
1876 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\classroomWindows.dds");
1878 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SimulatorPodVRayCompleteMap2.dds");
1880 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\environmentEnd_BakedColor.dds");
1891 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cities\\concrete1.dds");
1894 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\towerWindows.dds");
1897 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\towerDiffuse.dds");
1899 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\towerDiffuseLIGHT.dds");
1901 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\monitorsDiffuse.dds");
1908 if (hullfile[0] != 0)
1910 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, hullfile,
1911 D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_DXT5,
1912 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
1915 sprintf_s(msg,
sizeof(msg),
"Could not load \"%S\"! (%x)", hullfile, hr);
1920 sprintf_s(msg, 199,
"m_pddsCockpitTexture[%i]", s);
1925 if (lightfile[0] != 0)
1929 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, lightfile,
1930 D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_DXT1,
1931 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
1934 sprintf_s(msg,
sizeof(msg),
"Could not load \"%S\"! (%x)", lightfile, hr);
1939 sprintf_s(msg, 199,
"m_pddsCockpitLights[%i]", s);
1945 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, lightfile,
1946 907, 352, 1, 0, D3DFMT_L8,
1947 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
1950 sprintf_s(msg,
sizeof(msg),
"Could not load \"%S\"! (%x)", lightfile, hr);
1955 sprintf_s(msg, 199,
"m_pddsCockpitLights[%i]", s);
1962 sprintf_s(msg,
sizeof(msg),
"Cockpit DDS library number changed to %i",
ourcockpit.
texturelib);
1974 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\SV-S-ind-ID-style-stand1arm.dds",
1975 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT1,
1976 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
1979 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\SV-S-ind-ID-style-stand1arm.dds\"! (%x)", hr);
1990 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\GVdirection.dds",
1991 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT3,
1992 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
1995 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVdirection.dds\"! (%x)", hr);
2003 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\GVbg.png",
2004 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_R8G8B8,
2005 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2008 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVbg.png\"! (%x)", hr);
2014 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\dialsmall.dds",
2015 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT3,
2016 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2019 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialsmall.dds\"! (%x)", hr);
2025 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\dial.dds",
2026 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT3,
2027 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2030 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dials.dds\"! (%x)", hr);
2038 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\GVbgNEW.png",
2039 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_R8G8B8,
2040 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2043 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVbgNEW.png\"! (%x)", hr);
2049 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\dialsmallNEW.dds",
2050 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT3,
2051 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2054 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialsmallNEW.dds\"! (%x)", hr);
2060 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\dialNEW.dds",
2061 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT3,
2062 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2065 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialNEW.dds\"! (%x)", hr);
2071 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\dialmini.dds",
2072 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_DXT3,
2073 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2076 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialmini.dds\"! (%x)", hr);
2082 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\icon-lights-cruise.dds",
2083 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_A8L8,
2084 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2087 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\icon-lights-cruise.dds\"! (%x)", hr);
2093 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\icon-fuel.png",
2094 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_A8L8,
2095 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2098 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\icon-fuel.png\"! (%x)", hr);
2104 if (FAILED(hr = D3DXCreateTextureFromFileEx(pd3dDevice, L
"Textures\\Instruments\\GVcompass.dds",
2105 D3DX_DEFAULT, D3DX_DEFAULT, 1, 0, D3DFMT_L8,
2106 D3DPOOL_MANAGED, D3DX_FILTER_NONE,
2109 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVcompass.dds\"! (%x)", hr);
LPDIRECT3DTEXTURE9 m_pddsKeycard
void FrameMove(float fElapsedTime) const
LPDIRECT3DTEXTURE9 m_pddsCockpitTexture[cockpittextureC]
LPDIRECT3DTEXTURE9 m_pddsNamePlate
LPDIRECT3DTEXTURE9 m_pddsAOA[3]
InformationDialog * informationDialog
LPDIRECT3DTEXTURE9 m_pddsGVDirection
s_network_objects playerships[MAX_SCAN]
InputConfig inputConfigGas
LPDIRECT3DTEXTURE9 m_pddsGVDialSmall
LPDIRECT3DVERTEXBUFFER9 VB
s_mesh_component * componentarray
void ChangeCockpit(bool force)
SPlayerData player[MAX_ONLINEPLAYERS]
InputConfig inputConfigPitch
D3DXMATRIX matrixProjCock
void OnLostDevice() const
void LoadTexture(LPDIRECT3DTEXTURE9 *resource, const std::string &pointerName, const WCHAR *file, D3DFORMAT format=D3DFMT_A8R8G8B8)
InputConfig inputConfigBrake
void Render(IDirect3DDevice9 *pd3dDevice) const
void Load(IDirect3DDevice9 *pd3dDevice) const
unsigned short components
void TriggerWelcomeApt2() const
LPDIRECT3DTEXTURE9 m_pddsDynamicTexture
LPDIRECT3DTEXTURE9 m_pddsLightsCruiseIcons
void Log(const char *msg, Level level=Info, int errorCode=0)
s_polygon_object polyobjects[maxpolyC]
LPDIRECT3DTEXTURE9 m_pddsFuelIcon
LPDIRECT3DTEXTURE9 m_pddsCockpitLights[cockpittextureC]
LPDIRECT3DSURFACE9 m_pddsDynamicSurface
void AddTrackedResource(const char *name, _D3DPOOL pool=D3DPOOL_MANAGED)
LPDIRECT3DTEXTURE9 m_pddsGVCompass
LPDIRECT3DTEXTURE9 m_pddsInterlace[2]
void UpdateTrackedResource(const char *name, int status)
void AddToCallStack(const char *msg)
InputConfig inputConfigSteer
LPDIRECT3DTEXTURE9 m_pddsProjectionTexture
void OnResetDevice(IDirect3DDevice9 *pd3dDevice) const
float EngineThrustLever[MAX_ENGINES]
LPDIRECT3DTEXTURE9 m_pddsGVBackground