ACE3/addons/dragging/XEH_clientInit.sqf

26 lines
1.1 KiB
Plaintext
Raw Normal View History

// by PabstMirror, commy2
#include "script_component.hpp"
2015-08-09 12:53:13 +00:00
[DFUNC(handleScrollWheel)] call EFUNC(common,addScrollWheelEventHandler);
2015-03-18 13:14:16 +00:00
if (isNil "ACE_maxWeightDrag") then {
ACE_maxWeightDrag = 800;
};
if (isNil "ACE_maxWeightCarry") then {
ACE_maxWeightCarry = 600;
};
["isNotDragging", {!((_this select 0) getVariable [QGVAR(isDragging), false])}] call EFUNC(common,addCanInteractWithCondition);
2015-03-17 14:42:25 +00:00
["isNotCarrying", {!((_this select 0) getVariable [QGVAR(isCarrying), false])}] call EFUNC(common,addCanInteractWithCondition);
2015-03-17 12:47:07 +00:00
// release object on player change. This does work when returning to lobby, but not when hard disconnecting.
2015-08-09 12:53:13 +00:00
["playerChanged", DFUNC(handlePlayerChanged)] call EFUNC(common,addEventhandler);
["playerVehicleChanged", {[ACE_player, objNull] call DFUNC(handlePlayerChanged)}] call EFUNC(common,addEventhandler);
2015-08-09 12:53:13 +00:00
["playerWeaponChanged", DFUNC(handlePlayerWeaponChanged)] call EFUNC(common,addEventhandler);
2015-03-24 18:07:39 +00:00
// handle waking up dragged unit and falling unconscious while dragging
2015-08-09 12:53:13 +00:00
["medical_onUnconscious", DFUNC(handleUnconscious)] call EFUNC(common,addEventhandler);
2015-03-24 18:07:39 +00:00
//@todo Captivity?