71 bool useParentVehicle =
false;
78 useParentVehicle =
true;
83 cameraVehicleType = 0;
98 switch (cameraVehicleType)
3551 sprintf_s(msg,
sizeof msg,
3552 "cockpit::OnResetDevice device=%p texturelib=%u nextgen=%i player=%i dynamicTexture=%p dynamicSurface=%p",
3558 if (pd3dDevice ==
nullptr)
3571 logger->
Log(
"cockpit::OnResetDevice failed to create the 907x352 instrumentation texture",
3583 logger->
Log(
"cockpit::OnResetDevice failed to create the 1135x388 instrumentation texture",
3594 logger->
Log(
"cockpit::OnResetDevice failed to get the instrumentation surface",
3605 WCHAR hullfile[199], lightfile[199];
3610 hullfile[0] = lightfile[0] = 0;
3620 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hull1.dds");
3622 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\E-10-saint-cockpit-glass.dds");
3624 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
3626 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
3628 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk.dds");
3632 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1-arm.dds");
3634 case 8: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-light-incan1.dds");
3636 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-monitor1.dds");
3638 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1.dds");
3640 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-buttonboard1.dds");
3642 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand2-mount.dds");
3644 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hatch1.dds");
3646 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-tread1.dds");
3648 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-bracing1.dds");
3650 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
3653 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk-LIGHTWRAP.dds");
3655 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
3657 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpittpull.dds");
3659 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
3660 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
3662 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
3664 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons2.dds");
3665 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons2LIGHT.dds");
3667 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
3668 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
3670 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-door1.dds");
3672 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchair.dds");
3673 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
3675 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-frame1.dds");
3677 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-flightstick2.dds");
3679 case 28: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod1-emergency.dds");
3681 case 29: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-glass1.dds");
3683 case 30: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-grate1.dds");
3694 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hull1.dds");
3698 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\tread2.dds");
3700 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
3702 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\E-10-saint-cockpit-glass.dds");
3704 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
3706 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-buttonboard1-2x.dds");
3708 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
3709 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
3711 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk.dds");
3713 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1-arm.dds");
3715 case 11: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-light-incan1.dds");
3719 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-monitor1.dds");
3721 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1.dds");
3723 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand2-mount.dds");
3725 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hatch1.dds");
3727 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-tread1.dds");
3729 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-bracing1.dds");
3732 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk-LIGHTWRAP.dds");
3734 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
3736 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpittpull.dds");
3738 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
3739 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
3741 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
3743 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons2.dds");
3744 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons2LIGHT.dds");
3746 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-door1.dds");
3748 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchair.dds");
3749 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
3751 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-frame1.dds");
3753 case 28: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-flightstick2.dds");
3755 case 29: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod1-emergency-2x.dds");
3757 case 30: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
3759 case 31: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\INT-FIX-glass1.dds");
3761 case 32: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-grate1.dds");
3772 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-1.dds");
3774 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-window.dds");
3776 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\durum-frame.dds");
3778 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
3780 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwindshield.dds");
3782 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwindshield.dds");
3784 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
3786 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwindshield.dds");
3788 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-backwall.dds");
3790 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-steeringwheel3.dds");
3792 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-floor.dds");
3794 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwall.dds");
3797 wcscpy_s(lightfile, 199, L
"textures\\Instruments\\GVscreenblueprintLIGHT.dds");
3799 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwall.dds");
3801 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwall.dds");
3803 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
3805 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-chair.dds");
3806 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
3808 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-wirepipe.dds");
3810 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
3812 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
3813 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
3815 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
3817 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
3819 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
3821 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod4.dds");
3823 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitarm.dds");
3825 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
3827 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
3839 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Wanderer-glass.dds");
3841 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\durum-frame.dds");
3843 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-floor.dds");
3845 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchair.dds");
3846 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
3848 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpit-hudmount.dds");
3850 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-rightwall.dds");
3852 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-leftwall.dds");
3854 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\a3-cockpit-backfrontwall.dds");
3858 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitdashstation.dds");
3860 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
3862 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitconsole.dds");
3864 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitcontrolstand.dds");
3866 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
3868 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-wirepipe.dds");
3870 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
3871 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
3873 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
3875 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod2.dds");
3877 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
3879 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod1.dds");
3881 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairbase.dds");
3882 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairbaseLIGHT.dds");
3884 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
3886 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod4.dds");
3888 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod5.dds");
3890 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitflightstick.dds");
3892 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
3894 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SteerheadCab.dds");
3905 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-glass.dds");
3907 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-floor.dds");
3909 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-rightwall.dds");
3911 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-leftwall.dds");
3913 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-hull1.dds");
3915 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\p13-cockpit-ceiling frame.dds");
3917 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-door1.dds");
3919 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip.dds");
3921 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-monitor1.dds");
3923 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-S-skin-buttonboard1.dds");
3925 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-mod2-equiptrunk.dds");
3927 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-frame1.dds");
3929 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1.dds");
3931 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpit-hudmount.dds");
3933 case 15: wcscpy_s(hullfile, 199, L
"textures\\Ships\\p13-equipment cowl.dds");
3935 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpittpull.dds");
3939 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-stand1-arm.dds");
3941 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-chair2.dds");
3943 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitthrottle.dds");
3945 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
3946 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
3948 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
3950 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
3952 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
3953 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
3955 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-ind-flightstick2.dds");
3957 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
3968 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
3972 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\tread2.dds");
3974 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
3976 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\AV-T-19-Stratomaster-glass.dds");
3980 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPfloor36-1_sub.dds");
3982 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SeatBody001.dds");
3984 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
3985 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
3987 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons2.dds");
3988 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons2LIGHT.dds");
3990 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1.dds");
3991 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1LIGHT.dds");
3993 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Door001.dds");
3995 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\CockpitMainPart004.dds");
3997 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
3999 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4011 case 1: wcscpy_s(hullfile, 199, L
"textures\\Ships\\Manx_Diff.dds");
4015 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\tread2.dds");
4017 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-guts1.dds");
4019 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GlassDiffuse.dds");
4021 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4023 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
4024 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons3LIGHT.dds");
4026 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Manx_Complete-Carpeted.dds");
4030 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Chair-3.dds");
4032 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
4043 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-1.dds");
4045 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
4047 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-1-GLASS.dds");
4049 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
4051 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-accelerator-standard.dds");
4053 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
4055 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-gaugehousing.dds");
4057 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-floor.dds");
4059 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwall.dds");
4061 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-steeringwheel3.dds");
4063 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwall.dds");
4066 wcscpy_s(lightfile, 199, L
"textures\\Instruments\\GVscreenblueprintLIGHT.dds");
4068 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwall.dds");
4070 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\monitor-palette.dds");
4072 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
4074 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod1.dds");
4076 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-chair.dds");
4077 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
4079 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
4081 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
4082 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
4084 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
4086 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
4088 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
4090 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4102 wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\HelmetInterioro-Glass.dds");
4104 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\HelmetInterior.dds");
4105 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\HelmetInteriorLIGHT.dds");
4117 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\mirror.dds");
4119 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\body.dds");
4121 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
4123 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\glass.dds");
4126 wcscpy_s(lightfile, 199, L
"textures\\Instruments\\GVscreenblueprintLIGHT.dds");
4128 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-accelerator-standard.dds");
4130 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
4132 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\dash-center.dds");
4134 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\console-center.dds");
4136 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\dash-cover.dds");
4138 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\carpet1.dds");
4140 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-rear.dds");
4142 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\ceiling1.dds");
4144 case 14: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\controls-env.dds");
4145 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\controls-envLIGHT.dds");
4147 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\monitor-palette.dds");
4149 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\radio1.dds");
4150 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\radio1LIGHT.dds");
4152 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\chair1-back.dds");
4154 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\chair1.dds");
4156 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\gearshift.dds");
4158 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\controls1.dds");
4159 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\controls1LIGHT.dds");
4161 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Sparko.dds");
4163 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4174 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-1.dds");
4176 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
4178 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\T-120cockpit-window.dds");
4180 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-accelerator-standard.dds");
4182 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\pedal-brake-standard.dds");
4184 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-gaugehousing.dds");
4186 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Bedding.dds");
4188 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
4190 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitdashmonitor.dds");
4192 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitdashmonitorplate2.dds");
4194 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-floor.dds");
4196 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-steeringwheel3.dds");
4198 case 13: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-rightwall.dds");
4201 wcscpy_s(lightfile, 199, L
"Textures\\Instruments\\GVscreenblueprintLIGHT.dds");
4203 case 15: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-leftwall.dds");
4205 case 16: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\monitor-palette.dds");
4207 case 17: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-frontwall.dds");
4209 case 18: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallpipe1.dds");
4211 case 19: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod1.dds");
4213 case 20: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MuVERcockpit-chair.dds");
4214 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\SHIPe10commandchairLIGHT.dds");
4216 case 21: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod2.dds");
4218 case 22: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPwallmod6.dds");
4220 case 23: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
4221 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
4223 case 24: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
4225 case 25: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitvent.dds");
4227 case 26: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SHIPe10cockpitgrip2.dds");
4229 case 27: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4240 case 1: wcscpy_s(hullfile, 199, L
"textures\\Vehicles\\GV-mirrors-1.dds");
4242 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SteerheadCab.dds");
4244 case 3: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
4246 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\T-120cockpit-window.dds");
4249 wcscpy_s(lightfile, 199, L
"Textures\\Instruments\\GVscreenblueprintLIGHT.dds");
4251 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-buttons.dds");
4252 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\GV-buttonsLIGHT.dds");
4254 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SeatBody001.dds");
4256 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-housing.dds");
4258 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SteeringWheel.dds");
4260 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\GV-dash-frame.dds");
4262 case 11: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\SV-INT-skin-chair-base1.dds");
4264 case 12: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4275 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\door-front.dds");
4277 case 2: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\mammoth-glass.dds");
4281 case 4: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons1-Elongated.dds");
4282 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\buttons1-ElongatedLIGHT.dds");
4284 case 5: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MamothSeat-Old-Body.dds");
4286 case 6: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MammothSeat-Old-Bottom.dds");
4288 case 7: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\MammothSeat-New.dds");
4290 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Mammoth-Objects.dds");
4291 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\Mammoth-ObjectsLIGHT.dds");
4293 case 9: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Mammoth-Walls.dds");
4294 wcscpy_s(lightfile, 199, L
"textures\\Cockpits\\Mammoth-WallsLIGHT.dds");
4296 case 10: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\Polaroid1.dds");
4308 case 1: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\glass.dds");
4310 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\ApartmentItems.dds");
4312 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\ApartmentBody.dds");
4313 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\ApartmentBodyLIGHT.dds");
4315 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Bellgirl1.dds");
4317 case 5: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\ApartmentKitchen.dds");
4321 case 7: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\modern1.dds");
4323 case 8: wcscpy_s(hullfile, 199, L
"textures\\Cockpits\\buttons3.dds");
4334 case 1: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\environment_BakedColor.dds");
4336 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\classroomWindows.dds");
4338 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SimulatorPodVRayCompleteMap2.dds");
4340 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\environmentEnd_BakedColor.dds");
4342 case 5: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\plaque.dds");
4353 case 1: wcscpy_s(hullfile, 199, L
"textures\\Cities\\concrete1.dds");
4356 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\towerWindows.dds");
4359 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\towerDiffuse.dds");
4361 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\towerDiffuseLIGHT.dds");
4375 case 1: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterWallsSides2VRayCompleteMap.dds");
4377 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterWallsFrontandBack.dds");
4379 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterWallNarrowThingies.dds");
4381 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\FloorWalk.dds");
4383 case 5: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\CeilingPlane.dds");
4385 case 6: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Front Things.dds");
4387 case 7: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SidesnTop.dds");
4389 case 8: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SideStairs.dds");
4391 case 9: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterWallBigThingies.dds");
4393 case 10: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\StairRoom.dds");
4395 case 11: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Object041VRayCompleteMap.dds");
4397 case 12: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Object044VRayCompleteMap.dds");
4399 case 13: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Shape_VRayCompleteMap.dds");
4401 case 14: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterCeilingThingies.dds");
4403 case 15: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterWallLowerPart.dds");
4405 case 16: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Elevator.dds");
4407 case 17: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Floor2Ceiling.dds");
4409 case 18: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Floor3Ceiling.dds");
4411 case 19: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\1st Floor RoomB.dds");
4413 case 20: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\OuterFloor.dds");
4415 case 21: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\3rd Floor Facade.dds");
4417 case 22: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\3rd Floor Interior.dds");
4419 case 23: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\GroundFloorFacade.dds");
4421 case 24: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\1st n 2nd Floor Facade.dds");
4423 case 25: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\2nd Floor Interior.dds");
4425 case 26: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\1st Floor RoomA.dds");
4427 case 27: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Stair.dds");
4429 case 28: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\Railings.dds");
4440 case 1: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\EstateGlass.dds");
4443 case 2: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\KitchenVRayCompleteMap.dds");
4444 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\Kitchen_OuterLight.dds");
4447 case 3: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SmallRoomsVRayCompleteMap.dds");
4448 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SmallRooms_OuterLight.dds");
4450 case 4: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\StudyWallsVRayCompleteMap.dds");
4451 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\StudyWalls_OuterLight.dds");
4453 case 5: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceItemsVRayCompleteMap.dds");
4454 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceItems_OuterLight.dds");
4456 case 6: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceFrontWallVRayCompleteMap.dds");
4457 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceFrontWall_OuterLight.dds");
4459 case 7: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceBackWallVRayCompleteMap.dds");
4460 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceBackWall_OuterLight.dds");
4462 case 8: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceBackIDetailsVRayCompleteMap.dds");
4463 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceBackIDetails_OuterLight.dds");
4465 case 9: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\RailsVRayCompleteMap.dds");
4466 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\Rails_OuterLight.dds");
4468 case 10: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceItems2VRayCompleteMap2.dds");
4469 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceItems2_OuterLight.dds");
4471 case 11: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceRoofCeilingVRayCompleteMap.dds");
4472 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceRoofCeiling_OuterLight.dds");
4474 case 12: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceWallSide1VRayCompleteMap.dds");
4475 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceWallSide1_OuterLight.dds");
4477 case 13: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceWallSide2VRayCompleteMap.dds");
4478 wcscpy_s(lightfile, 199, L
"textures\\Interiors\\SpaceWallSide2_OuterLight.dds");
4480 case 14: wcscpy_s(hullfile, 199, L
"textures\\Interiors\\SpaceGlassVRayCompleteMap.dds");
4487 if (hullfile[0] != 0)
4489 sprintf_s(msg,
sizeof msg,
"cockpit::OnResetDevice hull texture %i", s);
4498 sprintf_s(msg,
sizeof msg,
"m_pddsCockpitTexture[%i]", s);
4503 if (lightfile[0] != 0)
4505 sprintf_s(msg,
sizeof msg,
"cockpit::OnResetDevice light texture %i", s);
4516 sprintf_s(msg,
sizeof msg,
"m_pddsCockpitLights[%i]", s);
4529 sprintf_s(msg,
sizeof msg,
"m_pddsCockpitLights[%i]", s);
4536 sprintf_s(msg,
sizeof(msg),
"Cockpit DDS library number changed to %i",
ourcockpit.
texturelib);
4542 sprintf_s(msg,
sizeof msg,
"cockpit::OnResetDevice invalid player slot %i (maximum %i)",
4545 return E_INVALIDARG;
4556 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\SV-S-ind-ID-style-stand1arm.dds\"! (%S)",
Rendering::ErrorString(hr));
4567 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVdirection.dds\"! (%S)",
Rendering::ErrorString(hr));
4577 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVbg.png\"! (%S)",
Rendering::ErrorString(hr));
4585 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialsmall.dds\"! (%S)",
Rendering::ErrorString(hr));
4593 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dials.dds\"! (%S)",
Rendering::ErrorString(hr));
4603 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVbgNEW.png\"! (%S)",
Rendering::ErrorString(hr));
4611 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialsmallNEW.dds\"! (%S)",
Rendering::ErrorString(hr));
4619 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialNEW.dds\"! (%S)",
Rendering::ErrorString(hr));
4627 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\dialmini.dds\"! (%S)",
Rendering::ErrorString(hr));
4635 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\icon-lights-cruise.dds\"! (%S)",
Rendering::ErrorString(hr));
4643 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\icon-fuel.png\"! (%S)",
Rendering::ErrorString(hr));
4651 sprintf_s(msg,
sizeof(msg),
"Could not load \"Instruments\\GVcompass.dds\"! (%S)",
Rendering::ErrorString(hr));
4660 logger->
Log(
"cockpit::OnResetDevice completed successfully");