Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Combo mod: Stabs4All and Wonder Woman fewer views  (Read 1264 times)

0 Members and 1 Guest are viewing this topic.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6072
Combo mod: Stabs4All and Wonder Woman fewer views
« on: November 15, 2020, 04:43:31 PM »

My mod to reduce the number of Cockpit Off ('Wonder Woman') views to cycle through, and also incorporating Storbror's Stabilizers For All Aircraft. Because both mods alter the same AircraftHotKeys.class.

If you don't want to have stabilizers enabled for all aircraft, use instead my cockpit-off reduced view count mod (based on stock 4.12) in this thread:

https://www.sas1946.com/main/index.php/topic,65389.0.html


Get it here:

https://www.mediafire.com/file/voww41v4hulu0rh/00_WxTech_No-Cockpit_fewer-views_and_Stab4All.7z/file


From the included readme file:

This mod incorporates TWO separate works, built upon 4.12 code in AircraftHotKeys.class:

1) Enables Stabilizer Control (hold altitude and level flight) on all aircraft. Compatible with all major 4.12.x flavours of the game, be it Modact 5, HSFX 7 or SAS Engine Mod 2.7+. By Storbror.

2) Reduces the number of 'Wonder Woman' views to 3-plus-cockpit when the No Cockpit key is cycled. By WxTech.

The following deals with the latter.


In answer to the recent question, is it possible to reduce the view count when cycling through the non-cockpit (Wonder Woman) views?

YES, it is! Pretty simple in the end.

My first test, going to extremes, brought the view count down to just 2 views to cycle through; (1) cockpit on, and (2) Wonder Woman view with HUD instruments/reticle (newer type with acceleration vector.) But that's rather limiting. We want to also have at least a view that's completely empty, for gun camera simulating, for instance.

I've always wanted to dispence with those views having the original type reticle (no acceleration vector caret), because they are rather superfluous when the later type is available (introduced with Pacific Fighters.)

My desire from long ago was to bring the number of views to cycle through down to no more than 4.

So. Here's the code snippet in AircraftHotKeys.java to obtain the following view cycling sequence (starting from the normal cockpit view):

1) HUD instruments and reticle (newer Pacific Fighters type with acceleration vector indicator)
2) Reticle only (same as previous)
3) Empty
4) Back to cockpit view

======================================================================================
            public void begin()
            {
                if(World.cur().diffCur.Cockpit_Always_On)
                    return;
                if(Main3D.cur3D().isViewOutside())
                    return;
                if(!(Main3D.cur3D().cockpitCur instanceof CockpitPilot))
                    return;
                if(Main3D.cur3D().isViewInsideShow())  //to toggle off interior, and show HUD and reticle
                {
                    Main3D.cur3D().hud.bDrawDashBoard = true;
                    Main3D.cur3D().setViewInsideShow(false);
                    Main3D.cur3D().cockpitCur.setEnableRenderingBall(true);
                } else
                if(Main3D.cur3D().hud.bDrawDashBoard && Main3D.cur3D().cockpitCur.isEnableRenderingBall())  //to toggle off HUD instruments, and show reticle only
                {
                    Main3D.cur3D().hud.bDrawDashBoard = false;
                } else
                if(Main3D.cur3D().isEnableRenderingCockpit() && Main3D.cur3D().cockpitCur.isEnableRenderingBall())  //to toggle off reticle, and show empty
                {
                    Main3D.cur3D().setEnableRenderingCockpit(false);
                    Main3D.cur3D().cockpitCur.setEnableRenderingBall(false);
                } else   
                {
                    Main3D.cur3D().setEnableRenderingCockpit(true);  //to restore to normal cockpit view
                    Main3D.cur3D().setViewInsideShow(true);
                }
            }
======================================================================================



As noted this now bypasses the original style no-cockpit reticle (circle with dotted cross lines). I never liked that one, although its texture can be changed to whatever one fancies. I find that the newer reticle introduced with Pacific Fighters, with the valuable addition of the acceleration vector caret, is much more useful. Especially for carrier landing practice!  ;)

This mod is based on the stock 4.12 Java. I've no idea at the moment if other game versions are compatible. But any other Java-capable modder can EASILY incorporate this into other versions as required.




This work is offered for use by any and all, for any purpose, without restriction.

WxTech
Nov 14, 2020
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 24 queries.