SPON Rangefinder v0.3.0

Copyright (C) 2007-8 Bil Bas (bil dot bagpuss at gmail dot com / a.k.a. Spooner)
License: GNU Lesser General Public License, version 3

Overview

Adds an overlay to the standard ArmA SOFLAM laser designator. It will show range while the designator is turned on. Azimuth and elevation are also shown, even if the laser is turned off.

Requires that the SPON Core be installed in the mission (v0.5.1 or higher). Both SPON Rangefinder and SPON Core are available in two versions: One is a client-side addon and the other is mission-script-based, which does not require any addons to be installed on client or server. SPON Rangefinder requires ArmA 1.14 or higher.

Features

Background Information

Mils

A radian is a measure of an angle, such that there are 2π radians in a circle (360°). A milliradian is defined as being 1/1000th of a radian or 1/2000π of a circle. That is, there are ~6283.185 miliradians in 360°. The military, wanting to keep things simple, use an approximate value for a milliradian, since that is adequate for most purposes (this is called a Mil). Unfortunately, the exact approximation each army uses is different to the rest:

OrganisationMils in a revolution
ELM (The Evil League of Mathematicians)2000π
NATO (including US Army)6400
Soviet Union/Warsaw Pact6000
Sweden6300
USMC (Most accurate military approximation)6283

References

Installation (addon version)

  1. Install the XEH (Extended event handlers) addon by Solus. (Included)
  2. Install the SPON Core addon.
  3. Copy the "Addon Version/@SPON_Rangefinder" directory into your ArmA directory.
  4. Add " -mod=@XEH;@SPON_Core;@SPON_Rangefinder" to your ArmA shortcut target.
  5. SPON Rangefinder will then be available in any mission where a LaserDesignator is used, with default settings.

Installation (mission-script version)

  1. Ensure that you have the latest version of SPON Core installed in your mission (see the README.txt within that package for full installation instructions).
  2. Copy the "Scripts\SPON" directory into your mission folder.
  3. Add the following lines to your mission's "stringtable.csv" file (only #include the file from Core once, regardless of how many SPON components are used):
    LANGUAGE, "English"

    #include "SPON\Core\stringtable.csv"
    #include "SPON\Rangefinder\stringtable.csv"
  4. Add the following lines to your mission's "description.ext" file:
    #include "SPON\Core\ui\core.hpp"

    class RscTitles
    {
    #include "SPON\Rangefinder\ui\rangefinder.hpp"
    };

    Note that you may need to merge the RscTitles class with another RscTitles class if you have other scripts, that use this kind of resource, in your mission. For example:

    #include "SPON\Core\ui\core.hpp"

    class RscTitles
    {
    #include "SPON\Rangefinder\ui\rangefinder.hpp"
    #include "SPON\Status\ui\status.hpp"

    class CheeseDisplayRsc
    {
    //config for this display type...
    };
    };
  5. In your init.sqf (or init.sqs) file, include the following line (you may need to change the parameters to suit your mission):
    [] call compile preprocessFileLineNumbers "SPON\Rangefinder\initRangefinder.sqf";

Configuration

In your mission, whether you are using the mission-script or addon version, you can configure a few things using these functions (If using the mission-script version, this should be done in init.sqf, after"SPON\Core\initRangefinder.sqf" is run):

Limitations

Known Issues

Plans

None.

Design Aims

Credits

Change Log

v0.3.0 - First version available as an addon.

Added

Modified

Fixed

v0.2.0

Added

Modified

Removed

Fixed

v0.1.1

Added

Fixed

v0.1.0

Added

Modified

v0.0.21