mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
commit
a5b88d3276
@ -28,3 +28,30 @@ if (isNil "ACE_maxWeightCarry") then {
|
|||||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//@todo Captivity?
|
//@todo Captivity?
|
||||||
|
|
||||||
|
//Add Keybind:
|
||||||
|
["ACE3 Common", QGVAR(drag), (localize LSTRING(DragKeybind)),
|
||||||
|
{
|
||||||
|
if (!alive ACE_player) exitWith {false};
|
||||||
|
if !([ACE_player, objNull, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
|
|
||||||
|
// If we are drag/carrying something right now then just drop it:
|
||||||
|
if (ACE_player getVariable [QGVAR(isDragging), false]) exitWith {
|
||||||
|
[ACE_player, ACE_player getVariable [QGVAR(draggedObject), objNull]] call FUNC(dropObject);
|
||||||
|
false
|
||||||
|
};
|
||||||
|
if (ACE_player getVariable [QGVAR(isCarrying), false]) exitWith {
|
||||||
|
[ACE_player, ACE_player getVariable [QGVAR(carriedObject), objNull]] call FUNC(dropObject_carry);
|
||||||
|
false
|
||||||
|
};
|
||||||
|
|
||||||
|
private _cursor = cursorObject;
|
||||||
|
if ((isNull _cursor) || {(_cursor distance ACE_player) > 2.6}) exitWith {false};
|
||||||
|
if (!([ACE_player, _cursor] call FUNC(canDrag))) exitWith {false};
|
||||||
|
|
||||||
|
[ACE_player, _cursor] call FUNC(startDrag);
|
||||||
|
false
|
||||||
|
},
|
||||||
|
{false},
|
||||||
|
[-1, [false, false, false]]] call CBA_fnc_addKeybind; // UNBOUND
|
||||||
|
|
||||||
|
@ -25,6 +25,18 @@
|
|||||||
<Italian>Lascia</Italian>
|
<Italian>Lascia</Italian>
|
||||||
<Hungarian>Elengedés</Hungarian>
|
<Hungarian>Elengedés</Hungarian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Dragging_DragKeybind">
|
||||||
|
<English>Drag/Release Object</English>
|
||||||
|
<Russian>Тащить/Отпустить Объекты</Russian>
|
||||||
|
<Spanish>Arrastrar/Soltar Objeto</Spanish>
|
||||||
|
<Polish>Ciągnij/Puść Obiekt</Polish>
|
||||||
|
<Czech>Táhnout/Položit Objekt</Czech>
|
||||||
|
<French>Trainer/Lâcher Objets</French>
|
||||||
|
<German>Objekt ziehen/loslassen</German>
|
||||||
|
<Portuguese>Arrastar/Soltar Objeto</Portuguese>
|
||||||
|
<Italian>Trascina/Lascia Oggetto</Italian>
|
||||||
|
<Hungarian>Húzás/Elengedés Objektum</Hungarian>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_ACE_Dragging_UnableToDrag">
|
<Key ID="STR_ACE_Dragging_UnableToDrag">
|
||||||
<English>Item too heavy</English>
|
<English>Item too heavy</English>
|
||||||
<German>Gegenstand ist zu schwer</German>
|
<German>Gegenstand ist zu schwer</German>
|
||||||
|
Loading…
Reference in New Issue
Block a user