Blake's PINS(Pseudo Inertial Navigation System) and Bombing. V1.03.03

History
Version 1.03.03
Fixed: Action menu items not displaying. Broken in the last update.

Version 1.03.02
Altered: Menus to be created with the aircraft rather than dynamically to prevent duplication.

Version 1.03.01
Fixed: Bomb pipper staying visible when non bomb weapons selected.
Fixed: Action menu item duplication in multi personed aricraft. 

Version 1.03
Rover terminal fixes

Version 1.02
Added map auto closes after selecting the steerpoint.
Added a menu item FEED that broadcasts your cameras video feed to an external unit such as a JTAC. (Alpha)(Hold zoomout key to access. Requires a camera).
Added a mod Rover terminal, an adaption of the default laptop that functions as a Rover terminal. (Alpha)

Version 1.01.1
Added HUD secondary System menu item as an option for avoiding conflicting addons/scripts. Causes PINS to use the alternative resource layer.
Fixed a couple of issues when cleaning up after death, where overlay components would remain visible.

Version 1.01
Added Toggle laser off and on while in camera view. LookCenter key Default NUM5.
Added Reset menu item to action menu if overlay disappears. Requires user to hold zoom out key to make visable.
Changed Hud Colour/Display options to require user to hold down the zoom out key. Help declutter action menu.
Removed Zoom action menu, not required with using CBA key handlers.
Fixed syntax error that prevented a CBA key eventhandler from being removed.
Tweeked some of the routines to try and reduce mods overall impact slightly.
Added a config modification to help resolve ACE unguided bomb issues. (Seperate PBO found in the ACE_Bomb_fix_beta folder in the download).
Added one more zoom level "Very Wide" North marker set at 200m.

Version 1.0
Fixed missing { in the code contained in the fired event handler.
Changed setting SP to be from within an action menu. 
Removed SP reset action menu, not required with the change above.
Resized the text in the camera view.
Removed firing range limits.


Version 0.5a
Changed Flir colour from green to white.
Added Lase indicator to the camera view.
Added Grid reference of SP to the camera view.
Added current weapons name and ammo amount to the camera view.
Changed hud colours to be either bright or dark.
Changed flir steer box info to be either black or white dependant on the hud colour settings.
Added the ability to fire weapons from the camera view, keyboard only, watch key. (Joysticks with the ability to assign key strokes may be able to use that function to fire from the stick - not tested).

Version 0.4a
Altered the locking algorithm as it was conflicting with targeting vehicle objects.
Added IR and white hot, black hot thermal modes for the camera. Keyboard only, zoomout key. Default "numpad -" to cycle through the modes.
Changed the daylight camera to colour.
Increased the rate of movement for slewing the camera.
Added RST SP action menu. Allows better functionality with other mods. Example [FRL] Myke's missle Box JDAM addon also requires the onmouseclick functionality. Selecting this after using the gps dialog for the jdam will restore the onmouseclick functionality for repositioning the steerpoint.
Added menu item SP-ACRFT Selecting this menu item will set the sp marker to the aircrafts current position. Useful for marking up something unexpected without needing to bring up the map.
Added menu item SP-LOCK Selecting this menu item will set the sp to the currently locked target if it isn't an aircraft.
Guns no longer fire using the PINS fire default watch.

Version 0.3a
Changed control of the weapons systems to the gunner if there is one on the aircraft.
Changed the binoculars key to be a toggle on toggle off for the flir cam, Hold breath is still only while held.

Version 0.2a
Added config check to increase the number of valid weapons recognised opfor laser missiles now work
Fixed incorrect laser for opfor side
Added basic check to redirect lasers that are under buildings onto a face of the bounding box
Added generic lock cone for laser guided weapons
Added lock indicator when laser weapons have acquired the laser.
Added CBA keys handler to allow the use of the keyboard with some functions
Binocular key can be used insitu of the hold breath key.
The keyboard lookleft etc keys will now move the flir camera around if available.
The zoomin key has better response through CBA handler.
Added line of sight check to the laser, no need to keep refreshing via the flir camera. The laser will still revert to armed from on after 2mins of the using the flir camera.

Version 0.1a
Initial public release

Introduction:

Like my other releases at this time, this has been tested on my small test dedicated server by me, but hasn't had any real MP testing.
RL is limiting my online time atm, and a lot of things I have played around with are just getting dusty on my HD. So I figure better to just release as an ALPHA product and hope the community can enjoy some of these addons. FeedBack welcome especially regarding functionality on dedicated servers.

Background to design choices. Firstly I am an avid flight simulation enthusist, and have been using one piece of software or another for nearly thirty years. That said I believe Arma to primarily be and infantry simulator. It's one unqiue feature over any other software I have used in my opinion is it's ability to allow human players to experince the interaction between different arms within the military. So my focus here was to try and maximise that communication from the air to the ground, so many aspects are simplified in the aircraft so that hopefully on the ground it seems no different to somebody linking dcs a10 to arma.
Most importantly I wanted to maximise situational awareness, so that instead of the pilot always having his head in the map, he always has the most important reference point right there. He can then relay things like how long he will be what direction all from the information displayed. Hopefully it will make things like targetting with referencing smoke a lot easier as the imediate area is framed. Though the pilot still needs to use his eyes to find the exact point and the reference frame doesn't focus right down to the exact point. Resonably easy with a cluster of five buildings, different in the middle of a large town or city.
Even if you are just tranporting troops in, and you want to fly low, this gives you the distance to the area allowing you to focus on flying without be distracted by where you are going, or worse plowing into the ground because it took a little to long for your map to close.

Depending on the mission you can add a camera so the pilot can focus in more precisely on the area either as an aid for when referencing points with the ground, or fine tuning for CCIP,CCRP or Laser delivery.
 
I also wanted to have the different types of attacks represented better. So that the ground controller can make better use of the planes munitions. So unguided bombs can no longer lock onto a vehicle, but the pilot actually has an aiming cursor. Unguided bombs will drift too, so careful consideration needs to be applied in regards to where friendly troops are located. Eg target has a couple of non radar guided anti aircraft guns in a farm, friendlies in nearby woods. You have a harrier on call with unguided bombs. Better to setup a medium altitude CCRP run, to limit the guns effect compared to diving down onto the target. If this target was in the middle of the city then this may not be the right call as a stray bomb could kill civilians etc.


Installation:

Install as you would any other addon. (Check the BIS forums if unsure!).



Keys and Menu:

The action menu contains many options depending on the aircraft and it's loadout.

Interface:

ActionMenu Items:

CCIP/CCRP mode selection
Ripple amount
Ripple interval
Arm laser
HUD display toggles between time to arrival aan estimated time of arrival.Requires user to hold zoom out key to make visible.
HUD colour alter the heads up display colour. Doesn't alter the bombing indicators at this stage.Requires user to hold zoom out key to make visable.
Flir zoom Alters the zoom level when using the camera if enabled.
SP-ACRFT will menu item will set the steerpoint to your planes current position. Good for marking up something unexpected.
SP-LOCK will set the position of the steerpoint to where the currently locked enemy unit is, as long as it isn't an aircraft.
SP-SET Select this to automatically open the map, then single click on the map to place the sp position.
RESET HUD BREAKER Use this to restart the hud overlay if another script causes it the disapear. Requires user to hold zoom out key to make visable.
FEED If a camera is in use this will broadcast the video to any nearby Rover terminals. Requires holding of zoomout key to access.

Keys/Buttons:

The watch key is your new pickle button. default o.



Look left right up down default joystick hat keys move the focus of the camera view. If enabled.

Zoom in key default Num + toggles between the three zoom states of the camera. If enabled.
hold breath will access the optical camera. If enabled

Usage:

Any keys referenced below assume default key configuration, if you have altered these the actual key presses required may have changed.

Depending on the aircraft, and if certain object variables have been set determine which features are available.

Navigation:

Once in the aircraft access the map and by single clicking on a position sets the steerpoint to that position. Use the SP-SET action menu item to open the map.

Interval Menu Items:

By altering the the interval values, any weapon like rockets and unguided bombes will fire one after the other with that gap when pressing the o key.

CCIP mode.
Selected via the menu, and this is the default mode when you first get in the aircraft.
Using the fire button will live jettison the bomb.
Using the watch key will release the bomb which will land somewhere near the calculated impact point represented by the circle shaped pipper.
The vertical line give steering cues to the steerpoint. 
The horizontal line will drop down towards the pipper. When it is over the circle it is representing the calculated release point for hitting the steerpoint.

CCRP mode
Activated from the menu.
This uses the same cues as above, except this time you hold down the o key, this is your authorisation for release if or when the computer calculates you are at the release point.
If you have selected to release more than one bomb using the ripple amount menu, the computer will calculate release to set the target at the centre of the string of bombs.

Camera:

If enabled, pressing the hold breath key will change the view to that of the camera. The camera always looks towards the steerpoint. Adjust the cameras direction using the joystick hat. 
Use the zoom in key to change between the three zoom levels. (This can be slightly non responsive at times, no idea why).
Careful, changing the cameras focus also moves the steerpoint marker. This can also occur if looking from far off. If there is a hill between you and the sp, the camera will change the sp postion to where it is hitting the intervening terrain.
Be careful while using the camera you have no control over the aircraft. Try to stabilise the aircraft first.
NUM - Will change the camera mode through daylight(colour),IR,Thermal white hot and black hot.

A north marker is displayed to help orient the pilot when communicating with somebody on the ground. Different zoom levels show the north marker different distances from the center point.
Flir WIDE 100m
Flir NORM 50m
Flir TELE 25m

To enable in an aircraft place this in it's initization field.
this setvariable ["FLIRloc", [3.4,0.9,-1.1],true];
The position array sets where the camera view is from for that aircraft.

Laser:

If enabled. Use the menu to arm the laser.
Access the optical camera by holding down the right mouse button.
Use the joystick hat to move the cameras view onto the target.
When you judge your are within the bombs release parameters (no cues given yet) pickle the bomb using the o key.
You can adjust the laser by using the hat, to adjust impact. Though moving it to far may cause the bomb to loss focus and not hit.
Note: After two minutes of not using the camera the laser will automatically shut off, to ensure this doesn't occur periodically switch to the camera view.

To enable in an aircraft place this in it's initization field.
this setvariable ["Laser", true,true];

Disclaimer:


Unless stated otherwise, this item free of charge. If you paid for it, then you got screwed.

As well, all software is provided on an "as is" basis without warranty of any kind, express or implied.

Under no circumstances and under no legal theory, whether in tort, contract, or otherwise, shall I be liable to you or to any other person for any indirect, special, incidental, or consequential damages of any character including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or for any and all other damages or losses.

If you do not agree with these terms, then you you are advised to not use this item.
