mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge branch 'master' of github.com:KoffeinFlummi/ACE3
This commit is contained in:
commit
e76db653e8
@ -15,6 +15,7 @@ if (!hasInterface) exitWith {};
|
|||||||
GVAR(isOpeningDoor) = false;
|
GVAR(isOpeningDoor) = false;
|
||||||
|
|
||||||
// restore global fire teams for JIP
|
// restore global fire teams for JIP
|
||||||
|
private ["_team"];
|
||||||
{
|
{
|
||||||
_team = _x getVariable [QGVAR(assignedFireTeam), ""];
|
_team = _x getVariable [QGVAR(assignedFireTeam), ""];
|
||||||
if (_team != "") then {_x assignTeam _team};
|
if (_team != "") then {_x assignTeam _team};
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Children actions <ARRAY>
|
* Children actions <ARRAY>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = [target, player, [params]] call ace_interaction_fnc_addPassengerAction
|
* array = [target, player, [params]] call ace_interaction_fnc_addPassengerAction
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Children actions <ARRAY>
|
* Children actions <ARRAY>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = [target, player, [params]] call ace_interaction_fnc_addPassengersActions
|
* [target, player, [params]] call ace_interaction_fnc_addPassengersActions
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
@ -23,8 +23,9 @@ private ["_actions"];
|
|||||||
_actions = [];
|
_actions = [];
|
||||||
|
|
||||||
{
|
{
|
||||||
|
private ["_unit"];
|
||||||
_unit = _x;
|
_unit = _x;
|
||||||
if (_x != _player) then {
|
if (_unit != _player) then {
|
||||||
_actions pushBack
|
_actions pushBack
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Container <ARRAY/NUMBER>
|
* Container <ARRAY/NUMBER>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = [_actions, "Banana", "UI\dot_ca.paa", "bananaContents"] call ace_interaction_fnc_addSelectableItem
|
* [actions, "Banana", "UI\dot_ca.paa", "bananaContents"] call ace_interaction_fnc_addSelectableItem
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_object", "_actions", "_dlgInteractionDialog", "_ctrlInteractionDialog", "_index", "_ctrlInteractionDialogIcon"];
|
private ["_object", "_actions", "_dlgInteractionDialog", "_ctrlInteractionDialog", "_index", "_ctrlInteractionDialogIcon", "_a", "_action", "_count"];
|
||||||
|
|
||||||
_object = GVAR(Target);
|
_object = GVAR(Target);
|
||||||
_actions = GVAR(Buttons);
|
_actions = GVAR(Buttons);
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Able to become leader of group <BOOL>
|
* Able to become leader of group <BOOL>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _bool = [player, player] call ace_interaction_fnc_canBecomeLeader
|
* [player, player] call ace_interaction_fnc_canBecomeLeader
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Able to interact with civilian <BOOL>
|
* Able to interact with civilian <BOOL>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _bool = [target] call ace_interaction_fnc_canInteractWithCivilian
|
* [target] call ace_interaction_fnc_canInteractWithCivilian
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Able to join a group <BOOL>
|
* Able to join a group <BOOL>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _bool = [player, target] call ace_interaction_fnc_canJoinGroup
|
* [player, target] call ace_interaction_fnc_canJoinGroup
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Able to join a team <BOOL>
|
* Able to join a team <BOOL>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _bool = [player, target] call ace_interaction_fnc_canJoinTeam
|
* [player, target] call ace_interaction_fnc_canJoinTeam
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Able to tap a shoulder <BOOL>
|
* Able to tap a shoulder <BOOL>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _bool = [player, target] call ace_interaction_fnc_canTapShoulder
|
* [player, target] call ace_interaction_fnc_canTapShoulder
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* 1: Door Name <STRING>
|
* 1: Door Name <STRING>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = [player, target] call ace_interaction_fnc_getDoor
|
* [player, target] call ace_interaction_fnc_getDoor
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* 1: Locked variable <STRING>
|
* 1: Locked variable <STRING>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = [target, "door"] call ace_interaction_fnc_getDoorAnimations
|
* array = [target, "door"] call ace_interaction_fnc_getDoorAnimations
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Angle <NUMBER>
|
* Angle <NUMBER>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _number = call ace_interaction_fnc_getSelectedButton
|
* call ace_interaction_fnc_getSelectedButton
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
* Return a suitable position for the action point for the current weapon
|
* Return a suitable position for the action point for the current weapon
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
* None
|
* None (uses local variable _target)
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Children actions <ARRAY>
|
* Children actions <ARRAY>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = call ace_interaction_fnc_getWeaponPos
|
* call ace_interaction_fnc_getWeaponPos
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Vehicle in range of player <BOOL>
|
* Vehicle in range of player <BOOL>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _bool = [target, 5] call ace_interaction_fnc_isInRange
|
* [target, 5] call ace_interaction_fnc_isInRange
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_count", "_player", "_vehicle", "_dlgInteractionDialog", "_top", "_i", "", "_ctrl", "_index", "_action", "_color", "_current", "_infoText"];
|
private ["_count", "_player", "_vehicle", "_dlgInteractionDialog", "_top", "_i", "", "_ctrl", "_index", "_action", "_color", "_current", "_infoText", "_target"];
|
||||||
|
|
||||||
#define CLAMP(x,low,high) (if(x > high)then{high}else{if(x < low)then{low}else{x}})
|
#define CLAMP(x,low,high) (if(x > high)then{high}else{if(x < low)then{low}else{x}})
|
||||||
if (isNil QGVAR(MainButton)) exitWith{};
|
if (isNil QGVAR(MainButton)) exitWith{};
|
||||||
|
@ -39,6 +39,7 @@ GVAR(isOpeningDoor) = true;
|
|||||||
playSound "ACE_Sound_Click";
|
playSound "ACE_Sound_Click";
|
||||||
|
|
||||||
[_house, _animations] spawn {
|
[_house, _animations] spawn {
|
||||||
|
private ["_house", "_animations", "_phase", "_position", "_time", "_usedMouseWheel"];
|
||||||
_house = _this select 0;
|
_house = _this select 0;
|
||||||
_animations = _this select 1;
|
_animations = _this select 1;
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
private["_action", "_count", "_customActions", "_i"];
|
||||||
|
|
||||||
if (!(profileNamespace getVariable [QGVAR(FlowMenu), false])) then {
|
if (!(profileNamespace getVariable [QGVAR(FlowMenu), false])) then {
|
||||||
GVAR(SelectAccept) = _this select 1;
|
GVAR(SelectAccept) = _this select 1;
|
||||||
GVAR(SelectCancel) = _this select 2;
|
GVAR(SelectCancel) = _this select 2;
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
* 1: Approve Button Text <STRING>
|
* 1: Approve Button Text <STRING>
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Container object <ARRAY/NUMBER>
|
* Container object <NUMBER>
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _array = ["Select Explosive", "Place"] call ace_interaction_fnc_prepareSelectMenu
|
* array = ["Select Explosive", "Place"] call ace_interaction_fnc_prepareSelectMenu
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
0 spawn {
|
0 spawn {
|
||||||
private ["_index"];
|
private ["_index", "_name"];
|
||||||
|
|
||||||
waitUntil {player getVariable ["ACE_Name", ""] != ""};
|
waitUntil {player getVariable ["ACE_Name", ""] != ""};
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* _customActions call ace_interaction_fnc_sortOptionsByPriority
|
* customActions call ace_interaction_fnc_sortOptionsByPriority
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
PARAMS_3(_tooltip,_coordinateX,_coordinateY);
|
PARAMS_3(_tooltip,_coordinateX,_coordinateY);
|
||||||
|
|
||||||
|
private["_ctrl"];
|
||||||
|
|
||||||
disableSerialization;
|
disableSerialization;
|
||||||
_ctrl = ctrlParent _tooltip displayCtrl 40;
|
_ctrl = ctrlParent _tooltip displayCtrl 40;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user