You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/skyeye/main.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ var (
74
74
discordWebhookIDstring
75
75
discordWebhookTokenstring
76
76
exitAfter time.Duration
77
+
locationsFilestring
77
78
)
78
79
79
80
funcinit() {
@@ -142,6 +143,7 @@ func init() {
142
143
skyeye.Flags().DurationVar(&threatMonitoringInterval, "threat-monitoring-interval", 3*time.Minute, "How often to broadcast THREAT")
143
144
skyeye.Flags().Float64Var(&mandatoryThreatRadiusNM, "mandatory-threat-radius", 25, "Briefed radius for mandatory THREAT calls, in nautical miles")
144
145
skyeye.Flags().BoolVar(&threatMonitoringRequiresSRS, "threat-monitoring-requires-srs", true, "Require aircraft to be on SRS to receive THREAT calls. Only useful to disable when debugging")
146
+
skyeye.Flags().StringVar(&locationsFile, "locations-file", "", "Path to file containing additional locations that may be referenced in ALPHA CHECK and VECTOR calls.")
Server administrators can define custom locations which players can reference in ALPHA CHECK and VECTOR requests. You can define useful locations like friendly bases or fix points.
4
+
5
+
To use this feature, create a `locations.json` file. The content of the file should be a JSON array of objects. Each object should have the following properties:
6
+
7
+
-`names`: An array of strings, which are the names of the location. These names are used in the ALPHA CHECK and VECTOR requests. You can define multiple names for the same location - for example, you might have a location with both the names "Incirlik" and "Home plate"
8
+
-`latitude`: A floating point number, which is the latitude of the location in decimal degrees. This should be a number between -90 and 90.
9
+
-`longitude`: A floating point number, which is the longitude of the location in decimal degrees. This should be a number between -180 and 180.
Copy file name to clipboardExpand all lines: docs/PLAYER.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ Tips:
168
168
169
169
Keyword: `ALPHA`
170
170
171
-
Function: The GCI will check if they see you on scope and tell you your approximate current location in bullseye format.
171
+
Function: The GCI will check if they see you on scope and tell you your approximate current location as a bearing and range from a given point. You can ask for an Alpha Check from bullseye, or from a [named location](LOCATIONS.md). The bullseye is used if no point is specified.
172
172
173
173
Use: You can use this to coarsely check your INS navigation system in an aircraft without GPS. It is accurate to within several miles (accounting for potential lag time between when the bot checks the scope and when the response is sent on the radio).
174
174
@@ -189,6 +189,21 @@ YELLOW 13: "Goliath Yellow One Three alpha"
189
189
GOLIATH: "Yellow One Three, Goliath, contact, alpha check bullseye 088/5"
190
190
```
191
191
192
+
### VECTOR
193
+
194
+
Keyword: `VECTOR`
195
+
196
+
Function: The GCI will check if you are on scope and tell you the approximate bearing and range from you to a given point. You can ask for a vector to bullseye, or to a [named location](LOCATIONS.md). The bullseye is used if no point is specified.
197
+
198
+
Use: This is the reciprocal of an ALPHA CHECK, and is useful for navigation assistance.
199
+
200
+
Examples:
201
+
202
+
```
203
+
MOBIUS 1: "Thunderhead Mobius One vector to home plate."
0 commit comments