About
This mod adds sound blocks which play a large variety of sound effects common in airliner cockpits. Similar to my cockpit screens mod, this is a port of something initially created for the SWL-120 that other people could use in their own planes. I have modified the original block into two simpler versions, one with more functionality than the other.
The sounds were sourced from various soundboards and some YouTube videos. I do not have a list right now, but I will look into getting one for later.
Also included in this mod is a special sound block similar to the others designed for CaptainNoble's upcoming NJ-100, with custom sounds. You can still use this block for your own planes if you wish.
Setup
Just like my Cockpit Screens mod, the original audio block was designed for the SWL-120 with little care about useability. Almost all the settings were baked into the code with no way to change them. For this mod, I have made most of these settings customizable.
Audio Block
This is the simplest of the two parts, with the sound effects being GPWS callouts (1000, 500, 400, 300, 200, 100, 50, 40, 30, 10, and 5) and bank angle. Of the many input controllers you will see in the settings, the ones you may wish to change are:
Bank Angle Warning Angle
The angle past which the bank angle warning will sound.
Cockpit View
If 1, the sounds will play. If 0, the sounds will stop. I recommend using the IsActive output variable from your cockpit cameras. The code provided is from my SWL-120's cockpit.
On Ground
This tells the sound block if it is on the ground or not. If it is on the ground, most sounds will stop playing. My SWL-120 has an OnGround variable which is what is in the input controller, and this variable considers both the landing gear suspension and AltitudeAgl. It's up to you what code to put in here, just know that -1 means not on ground, and 1 means on ground.
Altitude Adjustment
This is important for proper timing of the GPWS callouts, and is the distance between the SP cockpit part of your aircraft and the ground. To get the value to put here, open the debug console and type DebugExpression AltitudeAgl
. Then, put that exact value in this input. The number already there is my own value from the SWL-120.
The other three inputs do not need to be changed, as they input basic flight information for the code to use.
Audio Block Advanced
This block has additional functionality to the basic block, and is close to my SWL-120 in the number of sounds:
- GPWS callouts (like above)
- GPWS gear / flaps warnings (too low gear, and too low flaps)
- GPWS minimums (approaching minimums and minimums)
- Speed warnings (overspeed, low airspeed, and stall)
- Bank angle (like above)
- Glideslope
- GPWS descending warnings (terrain terrain pull up, pull up, and sink rate)
- Autopilot disconnect
- Seatbelt signs (on and off)
- No smoking signs (on and off)
- Brown noise (sounds like wind or jet engine noise)
Please read the information on input controllers and activation parameters below carefully so you understand how to set it up, and how it works. This is quite complicated (especially since it was originally designed for the SWL-120), but I have tried to make it adaptable to any airliner.
Inputs:
Overspeed Speed (m/s)
The speed, in meters per second, at which the overspeed warning will sound.
Airspeed Low Speed (m/s)
The speed, in meters per second, at which the low airspeed warning will sound.
Stall Speed (m/s)
The speed, in meters per second, at which the stall warning will sound.
Bank Angle Warning Angle
The angle past which the bank angle warning will sound.
Brown Noise Level
The volume of the brown noise, from 0 to 1. The sample input is just a placeholder, but I recommend using something tied to either actual engine power, or airspeed (or a combination of both).
Gear Setting
The status of your landing gear. The sample input should work for most planes, but if your gear has special activation parameters, like not retracting on the ground, I suggest you include those.
Flaps Setting
The status of your flaps. In my own audio block it's tied directly to my flaps code, but for this block, a value of 1 means the flaps warning should play, and a value of 0 means the flaps warning will stop. This allows you to decide what is an acceptable level of flaps for landing, as you don't always need to land with full flaps (and so the warning doesn't sound on long approach)
Cockpit View
If 1, the sounds will play. If 0, the sounds will stop. I recommend using the IsActive output variable from your cockpit cameras. The code provided is from my SWL-120's cockpit. Please note the brown noise will always play regardless of cockpit view or not.
GPWS Inhibit Buttons
This is a more complicated input, and allows you to create GPWS inhibit buttons to prevent some sounds from playing. Specifically, you can disable the flaps, gear, or sink rate warnings. These three are combined into one input controller, so it is very important how you add your inputs. If you don't want to use this, simply type 0 as the input. If you want to use it, follow the sample code to add your buttons. You can also only add some of the buttons if yo want.
Destination Airport
This is another complicated input, and is used for the GPWS sounds. In the basic audio block, the GPWS callouts are just based on AltitudeAgl. This works fine most of the time, but what happens if, say, the airport is on a tall cliff (for example Yeager Airport). The callouts would jump from 1000 to 100 very fast. To create a more realistic experience, I added a feature where the code can consider the destination airport you set, and essentially pretend the ground is always at the same height as the airport for a circle of 10 kilometers centered on the destination. In the SWL-120, this is tied into the FMC and the ICAO codes, but for this block, I made it a simple number system. The airport indexes are below. You may wish to add a way to select a destination from within your aircraft, similar to my ICAO codes in the FMC. A value of 0 will disable this feature, and also disable GPWS minimums callouts.
- 0 | Off
- 1 | Wright Airport
- 2 | Wright North Airport
- 3 | Bandit Airport
- 4 | Yeager Airport
- 5 | Avalanche Airport
- 6 | Kaper Town Airport
- 7 | Maywar Airport
- 8 | Xinshan Airport
- 9 | Cape Coral Airport
- 10 | Sarajevo Airport
- 11 | Southside Airport
- 12 | Strait Military Base
- 13 | Turtle Isle Airport
- 14 | GIS Test
- 15 | Sultan Airport
- 16 | Skypark Airport
- 17 | Skoomer Airport
- 18 | Luma Airport
- 19 | Kaleidesdale Airfield
- 20 | Melba Airport
- 21 | Connolly Airport
- 22 | Gagarin TTR
Fasten Seatbelts
The value of your fasten seatbelts sign, if you have one. Automatically plays the on or off sound when the variable changes between 0 and 1.
No Smoking Signs
Exact same behavior and sounds as fasten seatbelts, just for no smoking (or anything else you wish).
On Ground
This tells the sound block if it is on the ground or not. If it is on the ground, most sounds will stop playing. My SWL-120 has an OnGround variable which is what is in the input controller, and this variable considers both the landing gear suspension and AltitudeAgl. It's up to you what code to put in here, just know that -1 means not on ground, and 1 means on ground.
ILSGlideslope
The value of your ILS glideslope, used for the glideslope warning. I suggest making your variable have a range of -1 to 1. The warning will activate if the value goes above 0.75. It can also be disabled entirely with a value of -2.
Altitude Adjustment
This is important for proper timing of the GPWS callouts, and is the distance between the SP cockpit part of your aircraft and the ground. To get the value to put here, open the debug console and type DebugExpression AltitudeAgl
. Then, put that exact value in this input. The number already there is my own value from the SWL-120.
SpeedIAS, SpeedTAS, Altitude, AltitudeAgl, Bank Angle, Angle Of Attack, Vertical Speed, Latitude, Longitude
These input flight data for use by the code and should not be changed.
Autopilot On
Whether your autopilot is on or not (0 or 1). When this value changes from 1 to 0, the autopilot disconnect warning will play.
Activation Parameters
Each sound has specific and realistic parameters that cause it to activate, which are listed below. I should also note there are several "groups" of sounds, and only one sound per group may play at a time. The priority is, from top to bottom, the order the sounds are listed in below. Please note AltitudeAgl is either the raw input or Altitude - AirportAltitude, depending on the destination airport and your current height.
GPWS Approach Callouts
Using AltitudeAgl, the relevant callout plays once when passing through each height. The sounds do not play when climbing, only descending.
- 1000 feet
- 500 feet
- 400 feet
- 300 feet
- 200 feet
- 100 feet
- 50 feet
- 40 feet
- 30 feet
- 20 feet
- 10 feet
- 5 feet
GPWS Gear/Flaps Warnings
If GearInput is 0 and AltitudeAgl is below 500 feet, a "too low, gear" warning plays. If the value in the FlapsSetting input is 1, a "too low, flaps" warning plays.
- Too low gear
- Too low flaps
GPWS Minimums
Similar to the GPWS altitude callouts, an "approaching minimums" warning plays at 350 feet above ground level, and a "minimums" warning plays at 250 feet above ground level.
- Approaching minimums
- Minimums
Speed Warnings
If your indicated air speed is greater than the value set in the overspeed speed input, an overspeed warning plays. If your indicated air speed is lower than the value set in the airspeed low speed input, an airspeed low warning plays. If your indicated air speed is lower than the value set in the stall speed input, a stall warning plays.
- Stall
- Airspeed low
- Overspeed
Bank Angle
A bank angle warning plays if the bank angle exceeds the value set in the bank angle warning angle input.
- Bank angle
Glideslope
If the value in the ILS glideslope input is greater than 0.75 (indicating you are very low below the glideslope), a glideslope warning will play. A value of -2 will disable the warning entirely.
- Glideslope
GPWS Descending Warnings
This is a little bit complicated since I made these realistic. From my research, I determined the value at which the warnings play actually changes based on altitude. I developed a simple equation from this, which you can see graphed colorfully below. Click the image for a larger version.
White indicates when nothing will play, blue indicates when "sink rate" will play, and red indicates when "pull up" or "terrain pull up" will play. The X axis is altitude (feet), and the Y axis is vertical speed (feet per minute). Below 1000 feet, "pull up" changes to "terrain pull up".
- Terrain pull up
- Pull up
- Sink rate
Autopilot Disconnect
If the value of the autopilot input changes from 1 to 0 (not 0 to 1), the autopilot disconnect warning will play.
- Autopilot disconnect
Seatbelt Signs
Based on the value of the seatbelt signs input, one of two sounds will play when the value changes (on and off).
- Pax signs on
- Pax signs off
No Smoking Signs
Based on the value of the no smoking signs input, one of two sounds will play when the value changes (on and off).
- Pax signs on
- Pax signs off
Brown Noise
This simply plays all the time, and its volume is set by the brown noise level input. This is the only sound that doesn't get disabled if you are outside of the cockpit (input Cockpit View = 0).
I hope you enjoy this mod!
No Mobile
Mobile mods with scripts have been unsupported for 6 years now.
"pLz aNdRoId mOd vErsIoN"
guys I don't think we're getting android
Where's the Crying Baby sound block?
@PlaneFlightX E
no andr-
evaporated into ash
@Alvinwilson345 Please read.
Mobile mods have been unsupported for 6 years now, and while some users have found ways to make mobile mods, these mods cannot use scripts (which this heavily relies on), and are made using an older version of Unity and unsupported mod tools.
Pls make mobile version
I thought itz a block that emits screaming