Skip to content

Commit

Permalink
implement grad-gpstracker
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed May 7, 2017
1 parent be48c32 commit 617dfb6
Show file tree
Hide file tree
Showing 35 changed files with 346 additions and 2 deletions.
1 change: 1 addition & 0 deletions description.ext
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CfgFunctions
#include "node_modules\grad-moneymenu\cfgFunctions.hpp"
#include "node_modules\grad-scoreboard\cfgFunctions.hpp"
#include "node_modules\grad-civs\cfgFunctions.hpp"
#include "node_modules\grad-gpsTracker\cfgFunctions.hpp"
};


Expand Down
1 change: 1 addition & 0 deletions functions/mission/cfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ class wita_mission {
class agentMarker {};
class handleAgentKilled {};
class heliFuelFix {};
class showTracker {};
};
};
1 change: 1 addition & 0 deletions functions/mission/fn_agentMarker.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ _agent setVariable ["wita_mission_currentAgentMarkerInterval",_markerIntervalMin
_agent setVariable ["wita_mission_currentAgentMarkerInterval",_markerIntervalMin + (random _markerIntervalRandom)];

_markerPos = [getPos _agent,[0,_currentVariance],[0,360],""] call wita_common_fnc_findRandomPos;
[_markerPos] remoteExec ["wita_mission_fnc_showTracker",WEST,false];

_centerMarker = createMarker [format ["wita_agentmarker_%1_center_%2",[name _agent] call BIS_fnc_filterString,CBA_missionTime * 1000],_markerPos];
_centerMarker setMarkerShape "ICON";
Expand Down
9 changes: 9 additions & 0 deletions functions/mission/fn_showTracker.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "component.hpp"

params ["_pos"];

private _lastRunTime = missionNamespace getVariable ["wita_mission_trackerLastRuntime",0];
if (CBA_missionTime - _lastRunTime < 10) exitWith {};
missionNamespace setVariable ["wita_mission_trackerLastRuntime",CBA_missionTime];

[_pos,0.2,1,1,1,nil,7] call grad_gpsTracker_fnc_openTitle;
92 changes: 92 additions & 0 deletions node_modules/grad-gpstracker/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions node_modules/grad-gpstracker/cfgFunctions.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions node_modules/grad-gpstracker/component.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added node_modules/grad-gpstracker/data/tracker_0.paa
Binary file not shown.
Binary file added node_modules/grad-gpstracker/data/tracker_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added node_modules/grad-gpstracker/data/tracker_1.paa
Binary file not shown.
Binary file added node_modules/grad-gpstracker/data/tracker_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added node_modules/grad-gpstracker/data/tracker_2.paa
Binary file not shown.
Binary file added node_modules/grad-gpstracker/data/tracker_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added node_modules/grad-gpstracker/data/tracker_3.paa
Binary file not shown.
Binary file added node_modules/grad-gpstracker/data/tracker_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added node_modules/grad-gpstracker/data/tracker_4.paa
Binary file not shown.
Binary file added node_modules/grad-gpstracker/data/tracker_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added node_modules/grad-gpstracker/data/tracker_bg.paa
Binary file not shown.
Binary file added node_modules/grad-gpstracker/data/tracker_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_addPFH.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_closeTitle.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_createGPS.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_getModuleRoot.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_initModule.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_openDialog.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_openTitle.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_setTarget.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_updateArrow.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions node_modules/grad-gpstracker/functions/fn_updateReception.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions node_modules/grad-gpstracker/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tvt-wita2016",
"description": "Where is the agent?",
"version": "0.2.0",
"version": "0.3.0",
"contributors": [
{
"name": "XiviD"
Expand All @@ -16,6 +16,7 @@
"grad-listbuymenu": ">=0.0.3",
"grad-moneymenu": ">=0.0.1",
"grad-scoreboard": ">=0.0.1",
"grad-civs": ">=0.0.1"
"grad-civs": ">=0.0.1",
"grad-gpstracker": ">=0.0.1"
}
}

0 comments on commit 617dfb6

Please sign in to comment.