-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
300 additions
and
138 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#define MAJOR 1 | ||
#define MINOR 3 | ||
#define PATCHLVL 2 | ||
#define BUILD 211112 | ||
#define PATCHLVL 3 | ||
#define BUILD 220119 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
PREP(addOpenMapAction); | ||
PREP(addPickupMapAction); | ||
PREP(addPlaceMapAction); | ||
PREP(mapActionMenu); | ||
PREP(hasMap); | ||
PREP(openMap); | ||
PREP(pickupMap); | ||
PREP(placeMapOnVehicle); | ||
PREP(playMapSound); | ||
PREP(removeMap); |
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,37 @@ | ||
#include "script_component.hpp" | ||
/** | ||
* Author: PhILoX, Timi007 | ||
* | ||
* Description: | ||
* Adds the open map actions to the placed map. | ||
* This function has a local effect. | ||
* | ||
* Parameter(s): | ||
* 0: OBJECT - Placed map | ||
* | ||
* Returns: | ||
* Nothing. | ||
* | ||
* Example: | ||
* [_map] call mts_map_fnc_addOpenMapAction | ||
* | ||
*/ | ||
|
||
params [["_map", objNull, [objNull]]]; | ||
|
||
CHECK(!hasinterface || isNull _map); | ||
|
||
private _openMap = [ | ||
QGVAR(openMap), | ||
LLSTRING(openMap), | ||
"A3\Ui_f\data\GUI\Rsc\RscDisplayArsenal\map_ca.paa", | ||
{ | ||
params ["_map", "_player"]; | ||
[_player, _map] call FUNC(openMap); | ||
}, | ||
{ | ||
params ["_map", "_player"]; | ||
[_player, _map] call ace_common_fnc_canInteractWith | ||
} | ||
] call ace_interact_menu_fnc_createAction; | ||
[_map, 0, ["ACE_MainActions"], _openMap] call ace_interact_menu_fnc_addActionToObject; |
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,42 @@ | ||
#include "script_component.hpp" | ||
/** | ||
* Author: PhILoX, Timi007 | ||
* | ||
* Description: | ||
* Adds the pickup map actions to the placed map. | ||
* This function has a local effect. | ||
* | ||
* Parameter(s): | ||
* 0: OBJECT - Placed map | ||
* 1: OBJECT - The vehicle which the map is placed on. (Optional, only needed if map was placed on vehicle) | ||
* | ||
* Returns: | ||
* Nothing. | ||
* | ||
* Example: | ||
* [_map] call mts_map_fnc_addPickupMapAction | ||
* | ||
*/ | ||
|
||
params [["_map", objNull, [objNull]], ["_vehicle", objNull, [objNull]]]; | ||
|
||
CHECK(!hasinterface || isNull _map); | ||
|
||
private _pickupMap = [ | ||
QGVAR(pickupMap), | ||
LLSTRING(pickupMap), | ||
"A3\Ui_f\data\IGUI\Cfg\Actions\take_ca.paa", | ||
{ | ||
params ["_map", "_player", "_args"]; | ||
_args params ["_vehicle"]; | ||
|
||
[_player, _map, _vehicle] call FUNC(pickupMap); | ||
}, | ||
{ | ||
params ["_map", "_player"]; | ||
!([_player] call FUNC(hasMap)) && {[_player, _map] call ace_common_fnc_canInteractWith} | ||
}, | ||
{}, | ||
[_vehicle] | ||
] call ace_interact_menu_fnc_createAction; | ||
[_map, 0, ["ACE_MainActions"], _pickupMap] call ace_interact_menu_fnc_addActionToObject; |
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,24 @@ | ||
#include "script_component.hpp" | ||
/** | ||
* Author: Timi007 | ||
* | ||
* Description: | ||
* Returns true if unit has a map; otherwise false. | ||
* | ||
* Parameter(s): | ||
* 0: OBJECT - Unit to check. | ||
* | ||
* Returns: | ||
* BOOLEAN - Unit has a map. | ||
* | ||
* Example: | ||
* [player] call mts_map_fnc_hasMap | ||
* | ||
*/ | ||
|
||
params ["_player"]; | ||
|
||
private _map = (assignedItems _player) param [0, ""]; | ||
private _hasMap = getText (configFile >> "CfgWeapons" >> _map >> "simulation") == "ItemMap"; | ||
|
||
_hasMap |
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
#include "script_component.hpp" | ||
/** | ||
* Author: Timi007 | ||
* | ||
* Description: | ||
* Opens the map for a unit even if the unit has no map. | ||
* | ||
* Parameter(s): | ||
* 0: OBJECT - Unit which should open a map. | ||
* 1: OBJECT - The map object which the player interacted with. | ||
* If this object is picked up, all units looking inside this map are forced out. | ||
* | ||
* Returns: | ||
* BOOLEAN - Return true if the map of the unit is open. | ||
* | ||
* Example: | ||
* [player, cursorObject] call mts_map_fnc_openMap | ||
* | ||
*/ | ||
|
||
params [["_player", objNull, [objNull]], ["_map", objNull, [objNull]]]; | ||
|
||
CHECK(isNull _player || isNull _map); | ||
|
||
if ([_player] call FUNC(hasMap)) then { | ||
GVAR(hasMap) = true; | ||
} else { | ||
GVAR(hasMap) = false; | ||
|
||
private _mapClass = _map getVariable [QGVAR(mapClass), "ItemMap"]; | ||
_player linkItem _mapClass; | ||
}; | ||
|
||
GVAR(map) = _map; | ||
openMap true; |
Oops, something went wrong.