Module Functional.Range
Functional - Range Practice.
The RANGE class enables easy set up of bombing and strafing ranges within DCS World.
Implementation is based on the Simple Range Script by Ciribob, which itself was motivated by a script by SNAFU see here.
476th - Air Weapons Range Objects mod is highly recommended for this class.
Main Features:
- Impact points of bombs, rockets and missiles are recorded and distance to closest range target is measured and reported to the player.
- Number of hits on strafing passes are counted and reported. Also the percentage of hits w.r.t fired shots is evaluated.
- Results of all bombing and strafing runs are stored and top 10 results can be displayed.
- Range targets can be marked by smoke.
- Range can be illuminated by illumination bombs for night missions.
- Bomb, rocket and missile impact points can be marked by smoke.
- Direct hits on targets can trigger flares.
- Smoke and flare colors can be adjusted for each player via radio menu.
- Range information and weather at the range can be obtained via radio menu.
- Persistence: Bombing range results can be saved to disk and loaded the next time the mission is started.
- Range control voice overs (>40) for hit assessment.
Youtube Videos:
Missions:
- MAR - On the Range - MOOSE - SC by shagrat
Sound files: MOOSE Sound Files
Author: funkyfranky
Contributions: FlightControl, Ciribob
Global(s)
Global RANGE |
LuaFormatter on
Type(s)
| Fields and Methods inherited from RANGE | Description |
|---|---|
|
Triggers the FSM event "EnterRange". |
|
|
Triggers the FSM event "ExitRange". |
|
|
Triggers the FSM event "Impact". |
|
|
On after "EnterRange" event user function. |
|
|
On after "ExitRange" event user function. |
|
|
On after "Impact" event user function. |
|
|
Triggers the FSM event "Start". |
|
|
Triggers the FSM event "Status". |
|
|
Triggers the FSM delayed event "EnterRange". |
|
|
Triggers the FSM delayed event "ExitRange". |
|
|
Triggers the FSM delayed event "Impact". |
|
|
Triggers the FSM event "Start" after a delay. |
|
|
Triggers the FSM event "Status" after a delay. |
|
|
Triggers the FSM event "Stop" after a delay. |
|
| Fields and Methods inherited from RANGE.BombResult | Description |
|---|---|
|
Aircraft type of player. |
|
|
OS date. |
|
|
Distance in meters. |
|
|
Name of closest target. |
|
|
Player name. |
|
|
Hit quality. |
|
|
Radial in degrees. |
|
|
Time via timer.getAbsTime() in seconds of impact. |
|
|
Name of the weapon. |
| Fields and Methods inherited from RANGE.BombTarget | Description |
|---|---|
|
Coordinate of the target. |
|
|
Range in meters for a good hit. |
|
|
If true, unit move randomly. |
|
|
Name of unit. |
|
|
Speed of unit. |
|
|
Target unit. |
|
|
Type of target. |
| Fields and Methods inherited from RANGE.PlayerData | Description |
|---|---|
|
Aircraft type name. |
|
|
Client object of player. |
|
|
Color of flares. |
|
|
Flare when player directly hits a target. |
|
|
If true, player is inside the range zone. |
|
|
Display info messages. |
|
|
Name of player. |
|
|
Smoke bomb impact points. |
|
|
Color of smoke. |
|
|
Name of player aircraft unit. |
| Fields and Methods inherited from RANGE.Sound | Description |
|---|---|
| Fields and Methods inherited from RANGE.Soundfile | Description |
|---|---|
|
Duration in seconds. |
|
|
Name of the file |
| Fields and Methods inherited from RANGE.StrafeTarget | Description |
|---|---|
|
Center coordinate of the pit. |
|
|
Foul line |
|
|
Number of hits for a good pass. |
|
|
Heading of pit. |
|
|
Name of the unit. |
|
|
Polygon zone. |
|
|
Number of smoke points. |
|
|
Table of target units. |
| Fields and Methods inherited from RANGE.TargetType | Description |
|---|---|
|
Target is a coordinate. |
|
|
Target is a static. |
|
|
Target is a unit. |
Field(s)
Init player scores table.
Log id.
Radio queue.
Radio queue.
SCHEDULER:New(nil, self._CheckInZone, {self, EventData.IniUnitName}, 1, 1)
Function(s)
Triggers the FSM event "EnterRange".
Triggers the FSM event "ExitRange".
Triggers the FSM event "Impact".
Defined in:
RANGE
Parameters:
#RANGE.BombResult result
Data of bombing run.
#RANGE.PlayerData player
Data of player settings etc.
On after "EnterRange" event user function.
Called when a player enters the range zone.
Defined in:
RANGE
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#RANGE.PlayerData player
Data of player settings etc.
On after "ExitRange" event user function.
Called when a player leaves the range zone.
Defined in:
RANGE
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#RANGE.PlayerData player
Data of player settings etc.
On after "Impact" event user function.
Called when a bomb/rocket/missile impacted.
Defined in:
RANGE
Parameters:
#string From
From state.
#string Event
Event.
#string To
To state.
#RANGE.BombResult result
Data of the bombing run.
#RANGE.PlayerData player
Data of player settings etc.
Triggers the FSM event "Start".
Starts the RANGE. Initializes parameters and starts event handlers.
Defined in:
RANGE
Triggers the FSM delayed event "EnterRange".
Defined in:
RANGE
Parameters:
#number delay
Delay in seconds before the function is called.
#RANGE.PlayerData player
Data of player settings etc.
Triggers the FSM delayed event "ExitRange".
Defined in:
RANGE
Parameters:
#number delay
Delay in seconds before the function is called.
#RANGE.PlayerData player
Data of player settings etc.
Triggers the FSM delayed event "Impact".
Defined in:
RANGE
Parameters:
#number delay
Delay in seconds before the function is called.
#RANGE.BombResult result
Data of the bombing run.
#RANGE.PlayerData player
Data of player settings etc.
Triggers the FSM event "Start" after a delay.
Starts the RANGE. Initializes parameters and starts event handlers.
Defined in:
RANGE
Parameter:
#number delay
Delay in seconds.
Triggers the FSM event "Status" after a delay.
Defined in:
RANGE
Parameter:
#number delay
Delay in seconds.
Triggers the FSM event "Stop" after a delay.
Stops the RANGE and all its event handlers.
Defined in:
RANGE
Parameter:
#number delay
Delay in seconds.
Bomb target result.
Field(s)
Aircraft type of player.
OS date.
Distance in meters.
Name of closest target.
Player name.
Hit quality.
Radial in degrees.
Time via timer.getAbsTime() in seconds of impact.
Name of the weapon.
Function(s)
Bomb target data.
Field(s)
Range in meters for a good hit.
If true, unit move randomly.
Name of unit.
Speed of unit.
Function(s)
Player settings.
Field(s)
Aircraft type name.
Color of flares.
Flare when player directly hits a target.
If true, player is inside the range zone.
Display info messages.
Name of player.
Smoke bomb impact points.
Color of smoke.
Name of player aircraft unit.
Function(s)
Sound files.
Field(s)
Function(s)
Sound file data.
Field(s)
Duration in seconds.
Name of the file
Function(s)
Strafe target data.
Field(s)
Foul line
Number of hits for a good pass.
Heading of pit.
Name of the unit.
Number of smoke points.
Table of target units.
Function(s)
Target type, i.e.
unit, static, or coordinate.
Field(s)
Target is a coordinate.
Target is a static.
Target is a unit.