Jip Menu settings and framework

Presentation
The JIP (Join In Progress) menu can be used to allow players who join mid game to rejoin their attributed groups (or pick any other group to join). In the JIP menu players who are dead are marked with a red skull but can still be joined if they are in a respawn bunker. The player is reminded of their original group but can select any group to join and any player in this groups. Players that are currently on board a vehicle are marked with a specific icon.

A white icon means that there is cargo space left in the vehicle and that the player can be joined, upon joining the JIP player will be moved as cargo inside the vehicle.

A red icon indicates that the vehicle's cargo space is full and JIP players won't be able to join whoever is inside.

Upon clicking on the join selected player button the JIP player will be teleported to the desired position/vehicle after a short cut scene.

Useful notes

 * While being teleported the JIP's player simulation is disabled and they can receive no damage.
 * After teleporting the player is flagged by the mod as 'alive' (see Core settings for more explanation).
 * After teleporting the player is fully healed.
 * An admin can remotely open the jip menu for any given player, or for all dead players to allow them to jump back in game.

Jip menu settings
Some settings for the J.I.P. menu are available from

settings >> configure addons >> show: MRH Milsim Tools - JIP Menu

The following settings are available: ''Disable to prevent the JIP menu to show when a player joins in progress. Default: enabled.'' ''Enable to show groups containing only AIs and AIs inside groups. Useful for testing and debugging. Default: disabled.'' ''Disable to show groups from all sides, if enabled only group of the same side as the player's will be shown. Default: disabled.''
 * Use JIP menu
 * Include AIs in JIP
 * Only show groups on the same side as the player's.

Make an object a JIP menu access point
If you wish to grant players free access to the JIP menu (in a persistent mission for example). You can set any object to be a JIP Menu access point. The JIP menu will be available through an ACE3 interaction on the object.

To do so just paste the following code in the object's init box: [this] call MRH_fnc_MilsimTools_Jip_isJipMenuAccessPoint;