-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
missile_hud - Add hud for GPS seeker (#10749)
- Loading branch information
1 parent
cc3b2fa
commit cddcc68
Showing
5 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: PabstMirror | ||
* Generates HUD info for GPS seeker. | ||
* | ||
* Arguments: | ||
* None | ||
* | ||
* Return Value: | ||
* Element array <ARRAY> | ||
* | ||
* Example: | ||
* [["TEXT", "My Test", [1, 0.4, 5]]] call ace_missile_hud_fnc_info_gps | ||
* | ||
* Public: No | ||
*/ | ||
|
||
// params ["_idleText", "_lockedText", "_unit", "_vehicle", "_ammoConfig"]; | ||
|
||
private _output = [["TEXT", "GPS", [1, 1, 1]]]; | ||
|
||
([] call EFUNC(missileguidance,gps_getAttackData)) params [["_position", [0,0,0]]]; | ||
if (_position isNotEqualTo [0,0,0]) then { | ||
([_position] call EFUNC(common,getMapGridFromPos)) params ["_easting", "_northing"]; | ||
_output pushBack ["TEXT", format ["%1 %2", _easting, _northing], [1, 1, 1]]; | ||
} else { | ||
_output pushBack ["TEXT", "----- -----", [1, 1, 1]]; | ||
}; | ||
|
||
_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters