# Lockheed Martin F-22A Raptor

![image](/Screenshots/pic.png)
This is the F-22 add-on for FlightGear!
If you need help: You can join our Discord server temporarily if you want: https://discord.gg/B9WWFcwY2V

## Installation:

To download this aircraft, press [here](https://github.com/racerretrocoder/Flightgear-F-22A-Raptor/archive/refs/heads/master.zip) or the green button and then press 'Download ZIP'.

Once you downloaded the file, move it to a folder where you want to save all of your custom aircraft, if you haven't got one already.
Then, launch FlightGear, go to the Add-ons tab and add the aircraft folder to the `Additional aircraft folders`.

### Example:

Say you stored your airplane in `home/Documents/(CustomAircraftFolder)/F-22`.
Now add the `CustomAircraftFolder` to `Additional aircraft folders` in FlightGear.

Bam! You just achieved air superiority.

If you still have problems installing, you can join our Discord server.

## How to fly

### Important keys / Joystick Controls:

#### Joystick:

<table>
    <tr>
        <td>Military: Target next</td>
        <td>locks up a new target from the radar</td>
    </tr>
    <tr>
        <td>Military: Target previous</td>
        <td>locks the previously locked target (sometimes)</td>
    </tr>
    <tr>
        <td>Military: Trigger</td>
        <td>fires the guns when in guns mode and missiles/bombs when in missiles mode</td>
    </tr>
    <tr>
        <td>Military: Pickle</td>
        <td>Fires the currently selected missile weather in missile mode or not</td>
    </tr>
    <tr>
        <td>Military: Missile reject</td>
        <td>deploy the current countermessures program</td>
    </tr>
    <tr>
        <td>Military: Weapon next</td>
        <td>Selects the next A/A Missile</td>
    </tr>
    <tr>
        <td>Military: Weapon Previous</td>
        <td>Selects the next A/G Missile/Bomb</td>
    </tr>
</table>

#### Important Keys

- `l` deploys the currently selected counter messures program (see the CMS menu in the SMS page on a MFD to cycle between programs)
- `m` switches the current air-to-air missile
- `n` switches the current air-to-gnd bomb/missile

- `Ctrl+f` Toggles the side baydoors
- `Ctrl+d` Toggles the center baydoors
(Note that the bays will automatically be controlled when you shoot. use this if you want to keep them open)
- `Ctrl+o` Unlock from the currently locked radar target
- `w` switches the triggers mode. guns or missiles
- `n/m` to choose what weapon you shoot when in missile mode
- `e` shoots the selected weapon

There is no key for pickle.

### Radar

The FCR on the MFDs is the radar screen

- `Shift+r` to enable / disable the radar
- `r` changes the radars range.
- `y` locks a target. if you see a target on the FCR, press y to select it, and lock it up

#### Radar Modes:

<table>
    <tr>
        <td>TWS</td>
        <td>Track while scan</td>
        <td>The default radar mode for pretty much any situation</td>
    </tr>
    <tr>
        <td>RWS</td>
        <td>Range while scan</td>
        <td>This mode allows the radar to search 320NM (592km) out!</td>
    </tr>
    <tr>
        <td>ACM</td>
        <td>Dogfight Mode</td>
        <td>Automatically seek and lock targets if positioned in the HUD</td>
    </tr>
    <tr>
        <td>SLR</td>
        <td>Side-Looking Radar</td>
        <td>Raptor has advanced SLR'S at the side of the nose to allow for a crazy scan azimuth of 280 degrees. It's possible to lock and fire Aim-120's at bandits that are roughly on your tail!</td>
    </tr>
    <tr>
        <td>AG</td>
        <td>Air to ground</td>
        <td>This allows you to lock on to targets on the ground or that dont show any movement. Note that you wont be able to detect any targets that are moving faster than roughly 20kts</td>
    </tr>
    <tr>
        <td>JAM</td>
        <td>Jammer</td>
        <td>This is not a radar mode where you can deploy weapons off of. Locking up a target in this mode will activate the jammer and brodcast *special radiation* to trigger the opponents RWR into beliving an active missile is on there tail</td>
    </tr>
</table>

### More Photos

![image](/Screenshots/pic2.png)
![image](/Screenshots/pic3.png)
![image](/Screenshots/pic4.png)
![image](/Screenshots/pic5.png)
![image](/Screenshots/pic6.png)
![image](/Screenshots/pic7.png)
![image](/Screenshots/pic8.png)
![image](/Screenshots/pic10.png)

### Known Bugs:

- the landing gear acts funny. mainly in the wind
