mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
General - Change FUNC
to LINKFUNC
where appropriate (#9882)
FUNC -> LINKFUNC
This commit is contained in:
parent
2a52ad14c4
commit
415d2f685c
@ -19,11 +19,11 @@ if (!hasInterface) exitWith {};
|
|||||||
[] call FUNC(initializeTerrainExtension);
|
[] call FUNC(initializeTerrainExtension);
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
["ace_firedPlayerNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Register Perframe Handler
|
// Register Perframe Handler
|
||||||
[FUNC(handleFirePFH), GVAR(simulationInterval)] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(handleFirePFH), GVAR(simulationInterval)] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
//Add warnings for missing compat PBOs (only if AB is on)
|
//Add warnings for missing compat PBOs (only if AB is on)
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// Fired XEH
|
// Fired XEH
|
||||||
GVAR(ammoEventHandlers) = createHashMap;
|
GVAR(ammoEventHandlers) = createHashMap;
|
||||||
[QGVAR(throwFiredXEH), FUNC(throwFiredXEH)] call CBA_fnc_addEventHandler;
|
[QGVAR(throwFiredXEH), LINKFUNC(throwFiredXEH)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Exit on HC
|
// Exit on HC
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
} forEach _sections;
|
} forEach _sections;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[QGVAR(unGarrison), FUNC(unGarrison)] call CBA_fnc_addEventHandler;
|
[QGVAR(unGarrison), LINKFUNC(unGarrison)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[QGVAR(doMove), {
|
[QGVAR(doMove), {
|
||||||
params ["_unitsArray"];
|
params ["_unitsArray"];
|
||||||
@ -73,6 +73,6 @@
|
|||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
["CAManBase", "init", {
|
["CAManBase", "init", {
|
||||||
// wait for HMD to be assigned so `hmd _unit` works
|
// wait for HMD to be assigned so `hmd _unit` works
|
||||||
[FUNC(assignNVG), _this, 1] call CBA_fnc_waitAndExecute;
|
[LINKFUNC(assignNVG), _this, 1] call CBA_fnc_waitAndExecute;
|
||||||
}] call CBA_fnc_addClassEventHandler;
|
}] call CBA_fnc_addClassEventHandler;
|
||||||
};
|
};
|
||||||
|
@ -7,4 +7,4 @@ if (!hasInterface) exitWith {};
|
|||||||
GVAR(active) = false;
|
GVAR(active) = false;
|
||||||
GVAR(initialised) = false;
|
GVAR(initialised) = false;
|
||||||
|
|
||||||
[QEGVAR(vector,rangefinderData), {_this call FUNC(sord)}] call CBA_fnc_addEventHandler;
|
[QEGVAR(vector,rangefinderData), LINKFUNC(sord)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -25,14 +25,14 @@ if (isServer) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
[QGVAR(moveInCaptive), FUNC(vehicleCaptiveMoveIn)] call CBA_fnc_addEventHandler;
|
[QGVAR(moveInCaptive), LINKFUNC(vehicleCaptiveMoveIn)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(moveOutCaptive), FUNC(vehicleCaptiveMoveOut)] call CBA_fnc_addEventHandler;
|
[QGVAR(moveOutCaptive), LINKFUNC(vehicleCaptiveMoveOut)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[QGVAR(setHandcuffed), FUNC(setHandcuffed)] call CBA_fnc_addEventHandler;
|
[QGVAR(setHandcuffed), LINKFUNC(setHandcuffed)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(setSurrendered), FUNC(setSurrendered)] call CBA_fnc_addEventHandler;
|
[QGVAR(setSurrendered), LINKFUNC(setSurrendered)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//Medical Integration Events
|
//Medical Integration Events
|
||||||
["ace_unconscious", FUNC(handleOnUnconscious)] call CBA_fnc_addEventHandler;
|
["ace_unconscious", LINKFUNC(handleOnUnconscious)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
|
@ -4,4 +4,4 @@ if (!hasInterface || !GVAR(enabled)) exitWith {};
|
|||||||
|
|
||||||
GVAR(cachedCasings) = createHashMap;
|
GVAR(cachedCasings) = createHashMap;
|
||||||
GVAR(casings) = [];
|
GVAR(casings) = [];
|
||||||
["CAManBase", "FiredMan", {call FUNC(createCasing)}] call CBA_fnc_addClassEventHandler;
|
["CAManBase", "FiredMan", LINKFUNC(createCasing)] call CBA_fnc_addClassEventHandler;
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
["ace_firedPlayer", DFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||||
// ["ace_firedPlayerNonLocal", DFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
// ["ace_firedPlayerNonLocal", LINKFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||||
// ["ace_firedNonPlayer", DFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
// ["ace_firedNonPlayer", LINKFUNC(throwEH)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
//Status Effect EHs:
|
//Status Effect EHs:
|
||||||
[QGVAR(setStatusEffect), {_this call FUNC(statusEffect_set)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setStatusEffect), LINKFUNC(statusEffect_set)] call CBA_fnc_addEventHandler;
|
||||||
["forceWalk", false, ["ace_advanced_fatigue", "ACE_SwitchUnits", "ACE_Attach", "ace_dragging", "ACE_Explosives", "ACE_Ladder", "ACE_Sandbag", "ACE_refuel", "ACE_rearm", "ACE_Trenches", "ace_medical_fracture"]] call FUNC(statusEffect_addType);
|
["forceWalk", false, ["ace_advanced_fatigue", "ACE_SwitchUnits", "ACE_Attach", "ace_dragging", "ACE_Explosives", "ACE_Ladder", "ACE_Sandbag", "ACE_refuel", "ACE_rearm", "ACE_Trenches", "ace_medical_fracture"]] call FUNC(statusEffect_addType);
|
||||||
["blockSprint", false, ["ace_advanced_fatigue", "ace_dragging", "ace_medical_fracture"]] call FUNC(statusEffect_addType);
|
["blockSprint", false, ["ace_advanced_fatigue", "ace_dragging", "ace_medical_fracture"]] call FUNC(statusEffect_addType);
|
||||||
["setCaptive", true, [QEGVAR(captives,Handcuffed), QEGVAR(captives,Surrendered)]] call FUNC(statusEffect_addType);
|
["setCaptive", true, [QEGVAR(captives,Handcuffed), QEGVAR(captives,Surrendered)]] call FUNC(statusEffect_addType);
|
||||||
@ -157,9 +157,9 @@ if (isServer) then {
|
|||||||
INFO_2("Headbug Used: Name: %1, Animation: %2",_profileName,_animation);
|
INFO_2("Headbug Used: Name: %1, Animation: %2",_profileName,_animation);
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[QGVAR(fixCollision), FUNC(fixCollision)] call CBA_fnc_addEventHandler;
|
[QGVAR(fixCollision), LINKFUNC(fixCollision)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(fixFloating), FUNC(fixFloating)] call CBA_fnc_addEventHandler;
|
[QGVAR(fixFloating), LINKFUNC(fixFloating)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(fixPosition), FUNC(fixPosition)] call CBA_fnc_addEventHandler;
|
[QGVAR(fixPosition), LINKFUNC(fixPosition)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["ace_loadPersonEvent", LINKFUNC(loadPersonLocal)] call CBA_fnc_addEventHandler;
|
["ace_loadPersonEvent", LINKFUNC(loadPersonLocal)] call CBA_fnc_addEventHandler;
|
||||||
["ace_unloadPersonEvent", LINKFUNC(unloadPersonLocal)] call CBA_fnc_addEventHandler;
|
["ace_unloadPersonEvent", LINKFUNC(unloadPersonLocal)] call CBA_fnc_addEventHandler;
|
||||||
@ -209,8 +209,8 @@ if (isServer) then {
|
|||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Request framework
|
// Request framework
|
||||||
[QGVAR(requestCallback), FUNC(requestCallback)] call CBA_fnc_addEventHandler;
|
[QGVAR(requestCallback), LINKFUNC(requestCallback)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(receiveRequest), FUNC(receiveRequest)] call CBA_fnc_addEventHandler;
|
[QGVAR(receiveRequest), LINKFUNC(receiveRequest)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[QGVAR(systemChatGlobal), {systemChat _this}] call CBA_fnc_addEventHandler;
|
[QGVAR(systemChatGlobal), {systemChat _this}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
@ -219,7 +219,7 @@ if (isServer) then {
|
|||||||
[QGVAR(enableSimulationGlobal), {(_this select 0) enableSimulationGlobal (_this select 1)}] call CBA_fnc_addEventHandler;
|
[QGVAR(enableSimulationGlobal), {(_this select 0) enableSimulationGlobal (_this select 1)}] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(setShotParents), {(_this select 0) setShotParents [_this select 1, _this select 2]}] call CBA_fnc_addEventHandler;
|
[QGVAR(setShotParents), {(_this select 0) setShotParents [_this select 1, _this select 2]}] call CBA_fnc_addEventHandler;
|
||||||
["ace_setOwner", {(_this select 0) setOwner (_this select 1)}] call CBA_fnc_addEventHandler;
|
["ace_setOwner", {(_this select 0) setOwner (_this select 1)}] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(serverLog), FUNC(serverLog)] call CBA_fnc_addEventHandler;
|
[QGVAR(serverLog), LINKFUNC(serverLog)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(claimSafe), LINKFUNC(claimSafeServer)] call CBA_fnc_addEventHandler;
|
[QGVAR(claimSafe), LINKFUNC(claimSafeServer)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -236,14 +236,14 @@ if (!isServer) then {
|
|||||||
["ACEa", [player]] call CBA_fnc_serverEvent;
|
["ACEa", [player]] call CBA_fnc_serverEvent;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
} else {
|
} else {
|
||||||
["ACEa", FUNC(_handleRequestAllSyncedEvents)] call CBA_fnc_addEventHandler;
|
["ACEa", LINKFUNC(_handleRequestAllSyncedEvents)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
["ACEe", FUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
["ACEe", LINKFUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||||
["ACEs", FUNC(_handleRequestSyncedEvent)] call CBA_fnc_addEventHandler;
|
["ACEs", LINKFUNC(_handleRequestSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
[FUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -392,8 +392,8 @@ addMissionEventHandler ["PlayerViewChanged", {
|
|||||||
// Eventhandlers for player controlled machines
|
// Eventhandlers for player controlled machines
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
[QGVAR(displayTextStructured), {_this call FUNC(displayTextStructured)}] call CBA_fnc_addEventHandler;
|
[QGVAR(displayTextStructured), LINKFUNC(displayTextStructured)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(displayTextPicture), {_this call FUNC(displayTextPicture)}] call CBA_fnc_addEventHandler;
|
[QGVAR(displayTextPicture), LINKFUNC(displayTextPicture)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["ace_unconscious", {
|
["ace_unconscious", {
|
||||||
params ["_unit", "_isUnconscious"];
|
params ["_unit", "_isUnconscious"];
|
||||||
@ -403,7 +403,7 @@ addMissionEventHandler ["PlayerViewChanged", {
|
|||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["ace_useItem", DFUNC(useItem)] call CBA_fnc_addEventHandler;
|
["ace_useItem", LINKFUNC(useItem)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
@ -24,7 +24,7 @@ if (_name in GVAR(syncedEvents)) exitWith {
|
|||||||
false
|
false
|
||||||
};
|
};
|
||||||
|
|
||||||
private _eventId = [_name, FUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
private _eventId = [_name, LINKFUNC(_handleSyncedEvent)] call CBA_fnc_addEventHandler;
|
||||||
private _data = [_handler, [], _ttl, _eventId];
|
private _data = [_handler, [], _ttl, _eventId];
|
||||||
|
|
||||||
GVAR(syncedEvents) set [_name, _data];
|
GVAR(syncedEvents) set [_name, _data];
|
||||||
|
@ -10,4 +10,4 @@ GVAR(deployPFH) = -1;
|
|||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[QGVAR(vehicleDamage), {_this call FUNC(vehicleDamage)}] call CBA_fnc_addEventHandler;
|
[QGVAR(vehicleDamage), LINKFUNC(vehicleDamage)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[QGVAR(engineFire), FUNC(engineFire)] call CBA_fnc_addEventHandler;
|
[QGVAR(engineFire), LINKFUNC(engineFire)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(cookOff), {
|
[QGVAR(cookOff), {
|
||||||
params ["_vehicle"];
|
params ["_vehicle"];
|
||||||
if (local _vehicle) then {
|
if (local _vehicle) then {
|
||||||
_this call FUNC(cookOff);
|
_this call FUNC(cookOff);
|
||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(cookOffEffect), FUNC(cookOffEffect)] call CBA_fnc_addEventHandler;
|
[QGVAR(cookOffEffect), LINKFUNC(cookOffEffect)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(smoke), FUNC(smoke)] call CBA_fnc_addEventHandler;
|
[QGVAR(smoke), LINKFUNC(smoke)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(cookOffBox), FUNC(cookOffBox)] call CBA_fnc_addEventHandler;
|
[QGVAR(cookOffBox), LINKFUNC(cookOffBox)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// handle cleaning up effects when vehicle is deleted mid-cookoff
|
// handle cleaning up effects when vehicle is deleted mid-cookoff
|
||||||
[QGVAR(addCleanupHandlers), {
|
[QGVAR(addCleanupHandlers), {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[QGVAR(dropItems), FUNC(eventTargetStart)] call CBA_fnc_addEventHandler;
|
[QGVAR(dropItems), LINKFUNC(eventTargetStart)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(debugCallback), FUNC(eventCallerFinish)] call CBA_fnc_addEventHandler;
|
[QGVAR(debugCallback), LINKFUNC(eventCallerFinish)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[QGVAR(showDogtag), DFUNC(showDogtag)] call CBA_fnc_addEventHandler;
|
[QGVAR(showDogtag), LINKFUNC(showDogtag)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(sendDogtagData), DFUNC(sendDogtagData)] call CBA_fnc_addEventHandler;
|
[QGVAR(sendDogtagData), LINKFUNC(sendDogtagData)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(getDogtagItem), DFUNC(getDogtagItem)] call CBA_fnc_addEventHandler;
|
[QGVAR(getDogtagItem), LINKFUNC(getDogtagItem)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(addDogtagItem), DFUNC(addDogtagItem)] call CBA_fnc_addEventHandler;
|
[QGVAR(addDogtagItem), LINKFUNC(addDogtagItem)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Add actions and event handlers only if ace_medical is loaded
|
// Add actions and event handlers only if ace_medical is loaded
|
||||||
// - Adding actions via config would create a dependency
|
// - Adding actions via config would create a dependency
|
||||||
|
@ -53,7 +53,7 @@ _unit setVariable [QGVAR(releaseActionID), [
|
|||||||
] call EFUNC(common,addActionEventHandler)];
|
] call EFUNC(common,addActionEventHandler)];
|
||||||
|
|
||||||
// Add anim changed EH
|
// Add anim changed EH
|
||||||
[_unit, "AnimChanged", FUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
[_unit, "AnimChanged", LINKFUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
||||||
|
|
||||||
// Prevent UAVs from firing
|
// Prevent UAVs from firing
|
||||||
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
|
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
|
||||||
@ -67,4 +67,4 @@ if (_UAVCrew isNotEqualTo []) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Check everything
|
// Check everything
|
||||||
[FUNC(carryObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(carryObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
@ -66,7 +66,7 @@ if (!GVAR(dragAndFire)) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Add anim changed EH
|
// Add anim changed EH
|
||||||
[_unit, "AnimChanged", FUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
[_unit, "AnimChanged", LINKFUNC(handleAnimChanged), [_unit]] call CBA_fnc_addBISEventHandler;
|
||||||
|
|
||||||
// Prevent UAVs from firing
|
// Prevent UAVs from firing
|
||||||
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
|
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
|
||||||
@ -80,7 +80,7 @@ if (_UAVCrew isNotEqualTo []) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Check everything
|
// Check everything
|
||||||
[FUNC(dragObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(dragObjectPFH), 0.5, [_unit, _target, CBA_missionTime]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
// Fixes not being able to move when in combat pace
|
// Fixes not being able to move when in combat pace
|
||||||
[_unit, "forceWalk", QUOTE(ADDON), true] call EFUNC(common,statusEffect_set);
|
[_unit, "forceWalk", QUOTE(ADDON), true] call EFUNC(common,statusEffect_set);
|
||||||
|
@ -84,7 +84,7 @@ _unit setVariable [QGVAR(isCarrying), true, true];
|
|||||||
// Required for aborting animation
|
// Required for aborting animation
|
||||||
_unit setVariable [QGVAR(carriedObject), _target, true];
|
_unit setVariable [QGVAR(carriedObject), _target, true];
|
||||||
|
|
||||||
[FUNC(startCarryPFH), 0.2, [_unit, _target, _timer]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(startCarryPFH), 0.2, [_unit, _target, _timer]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
// Disable collisions by setting the PhysX mass to almost zero
|
// Disable collisions by setting the PhysX mass to almost zero
|
||||||
private _mass = getMass _target;
|
private _mass = getMass _target;
|
||||||
|
@ -96,7 +96,7 @@ if (_target isKindOf "CAManBase") then {
|
|||||||
// Prevents dragging and carrying at the same time
|
// Prevents dragging and carrying at the same time
|
||||||
_unit setVariable [QGVAR(isDragging), true, true];
|
_unit setVariable [QGVAR(isDragging), true, true];
|
||||||
|
|
||||||
[FUNC(startDragPFH), 0.2, [_unit, _target, CBA_missionTime + 5]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(startDragPFH), 0.2, [_unit, _target, CBA_missionTime + 5]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
// Disable collisions by setting the physx mass to almost zero
|
// Disable collisions by setting the physx mass to almost zero
|
||||||
private _mass = getMass _target;
|
private _mass = getMass _target;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(startDefuse), FUNC(startDefuse)] call CBA_fnc_addEventHandler;
|
[QGVAR(startDefuse), LINKFUNC(startDefuse)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//When getting knocked out in medical, trigger deadman explosives:
|
//When getting knocked out in medical, trigger deadman explosives:
|
||||||
//Event is global, only run on server (ref: ace_medical_fnc_setUnconscious)
|
//Event is global, only run on server (ref: ace_medical_fnc_setUnconscious)
|
||||||
|
@ -30,7 +30,7 @@ for "_i" from 1 to _ran do {
|
|||||||
};
|
};
|
||||||
if (_unit == ace_player) then {
|
if (_unit == ace_player) then {
|
||||||
ctrlSetText [1400,"Calling"];
|
ctrlSetText [1400,"Calling"];
|
||||||
[FUNC(dialingPhone), 0.25, [_unit,4,_arr,_code]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|
[LINKFUNC(dialingPhone), 0.25, [_unit,4,_arr,_code]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|
||||||
} else {
|
} else {
|
||||||
private _explosive = [_code] call FUNC(getSpeedDialExplosive);
|
private _explosive = [_code] call FUNC(getSpeedDialExplosive);
|
||||||
if ((count _explosive) > 0) then {
|
if ((count _explosive) > 0) then {
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[QGVAR(deployRopes), {
|
[QGVAR(deployRopes), LINKFUNC(deployRopes)] call CBA_fnc_addEventHandler;
|
||||||
_this call FUNC(deployRopes);
|
|
||||||
}] call CBA_fnc_addEventHandler;
|
|
||||||
|
|
||||||
[QGVAR(startFastRope), {
|
[QGVAR(startFastRope), {
|
||||||
[FUNC(fastRopeServerPFH), 0, _this] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(fastRopeServerPFH), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Keybinds
|
// Keybinds
|
||||||
|
@ -36,4 +36,4 @@ _vehicle setVariable [QGVAR(deployedRopes), _deployedRopes, true];
|
|||||||
//Start server PFH asap
|
//Start server PFH asap
|
||||||
[QGVAR(startFastRope), [_unit, _vehicle, _usableRope, _usableRopeIndex, false]] call CBA_fnc_serverEvent;
|
[QGVAR(startFastRope), [_unit, _vehicle, _usableRope, _usableRopeIndex, false]] call CBA_fnc_serverEvent;
|
||||||
moveOut _unit;
|
moveOut _unit;
|
||||||
[FUNC(fastRopeLocalPFH), 0, [_unit, _vehicle, _usableRope, _usableRopeIndex, diag_tickTime]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(fastRopeLocalPFH), 0, [_unit, _vehicle, _usableRope, _usableRopeIndex, diag_tickTime]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
@ -72,5 +72,5 @@ if (getNumber (configFile >> "CfgAmmo" >> _ammo >> QGVAR(Airburst)) == 1) then {
|
|||||||
if (_zeroing < 50) exitWith {};
|
if (_zeroing < 50) exitWith {};
|
||||||
if (_zeroing > 1500) exitWith {};
|
if (_zeroing > 1500) exitWith {};
|
||||||
|
|
||||||
[FUNC(handleAirBurstAmmunitionPFH), 0, [_vehicle, _projectile, _zeroing]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(handleAirBurstAmmunitionPFH), 0, [_vehicle, _projectile, _zeroing]] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
@ -96,7 +96,7 @@ if !(hasInterface) exitWith {};
|
|||||||
] call CBA_fnc_addItemContextMenuOption;
|
] call CBA_fnc_addItemContextMenuOption;
|
||||||
|
|
||||||
// Add water source helpers when interaction menu is opened
|
// Add water source helpers when interaction menu is opened
|
||||||
["ace_interactMenuOpened", {call FUNC(addWaterSourceInteractions)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", LINKFUNC(addWaterSourceInteractions)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Add status modifiers
|
// Add status modifiers
|
||||||
if (["ace_medical"] call EFUNC(common,isModLoaded)) then {
|
if (["ace_medical"] call EFUNC(common,isModLoaded)) then {
|
||||||
@ -134,7 +134,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["CAManBase", "respawn", LINKFUNC(handleRespawn)] call CBA_fnc_addClassEventHandler;
|
["CAManBase", "respawn", LINKFUNC(handleRespawn)] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
// Start update loop
|
// Start update loop
|
||||||
[FUNC(update), CBA_missionTime + MP_SYNC_INTERVAL, 1] call CBA_fnc_waitAndExecute;
|
[LINKFUNC(update), CBA_missionTime + MP_SYNC_INTERVAL, 1] call CBA_fnc_waitAndExecute;
|
||||||
|
|
||||||
#ifdef DEBUG_MODE_FULL
|
#ifdef DEBUG_MODE_FULL
|
||||||
["ACE_player thirst", {ACE_player getVariable [QXGVAR(thirst), 0]}, [true, 0, 100]] call EFUNC(common,watchVariable);
|
["ACE_player thirst", {ACE_player getVariable [QXGVAR(thirst), 0]}, [true, 0, 100]] call EFUNC(common,watchVariable);
|
||||||
|
@ -25,7 +25,7 @@ private _player = ACE_player;
|
|||||||
|
|
||||||
// Exit if player is not alive or a virtual unit
|
// Exit if player is not alive or a virtual unit
|
||||||
if (!alive _player || {_player isKindOf "VirtualMan_F"}) exitWith {
|
if (!alive _player || {_player isKindOf "VirtualMan_F"}) exitWith {
|
||||||
[FUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
[LINKFUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
||||||
QGVAR(hud) cutFadeOut 0.5;
|
QGVAR(hud) cutFadeOut 0.5;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -73,4 +73,4 @@ if (!EGVAR(common,OldIsCamera) && {_thirst > XGVAR(hudShowLevel) || {_hunger > X
|
|||||||
QGVAR(hud) cutFadeOut 0.5;
|
QGVAR(hud) cutFadeOut 0.5;
|
||||||
};
|
};
|
||||||
|
|
||||||
[FUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
[LINKFUNC(update), _nextMpSync, 1] call CBA_fnc_waitAndExecute;
|
||||||
|
@ -11,7 +11,7 @@ if (!hasInterface) exitWith {};
|
|||||||
GVAR(fingersHash) = createHashMap;
|
GVAR(fingersHash) = createHashMap;
|
||||||
GVAR(pfeh_id) = -1;
|
GVAR(pfeh_id) = -1;
|
||||||
|
|
||||||
[QGVAR(fingered), {_this call FUNC(incomingFinger)}] call CBA_fnc_addEventHandler;
|
[QGVAR(fingered), LINKFUNC(incomingFinger)] call CBA_fnc_addEventHandler;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//Add Keybind:
|
//Add Keybind:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[QGVAR(burn), FUNC(burn)] call CBA_fnc_addEventHandler;
|
[QGVAR(burn), LINKFUNC(burn)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(playScream), {
|
[QGVAR(playScream), {
|
||||||
params ["_scream", "_source"];
|
params ["_scream", "_source"];
|
||||||
// only play sound if enabled in settings and enabled for the unit
|
// only play sound if enabled in settings and enabled for the unit
|
||||||
@ -31,7 +31,7 @@
|
|||||||
[GVAR(fireSources), _key] call CBA_fnc_hashRem;
|
[GVAR(fireSources), _key] call CBA_fnc_hashRem;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
[{ _this call FUNC(fireManagerPFH) }, FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(fireManagerPFH), FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler;
|
||||||
GVAR(fireSources) = [[], nil] call CBA_fnc_hashCreate;
|
GVAR(fireSources) = [[], nil] call CBA_fnc_hashCreate;
|
||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
@ -244,7 +244,7 @@ if (_isBurning) exitWith {};
|
|||||||
|
|
||||||
private _burnIndicatorPFH = _unit getVariable [QGVAR(burnUIPFH), -1];
|
private _burnIndicatorPFH = _unit getVariable [QGVAR(burnUIPFH), -1];
|
||||||
if (_unit isEqualTo ace_player && { _isThisUnitAlive } && { _burnIndicatorPFH < 0 }) then {
|
if (_unit isEqualTo ace_player && { _isThisUnitAlive } && { _burnIndicatorPFH < 0 }) then {
|
||||||
_burnIndicatorPFH = [FUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
_burnIndicatorPFH = [LINKFUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
||||||
_unit setVariable [QGVAR(burnUIPFH), _burnIndicatorPFH];
|
_unit setVariable [QGVAR(burnUIPFH), _burnIndicatorPFH];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -296,7 +296,7 @@ if (_isBurning) exitWith {};
|
|||||||
|
|
||||||
if (local _unit) then {
|
if (local _unit) then {
|
||||||
if (_unit isEqualTo ace_player) then {
|
if (_unit isEqualTo ace_player) then {
|
||||||
private _burnIndicatorPFH = [FUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
private _burnIndicatorPFH = [LINKFUNC(burnIndicator), 1, _unit] call CBA_fnc_addPerFrameHandler;
|
||||||
_unit setVariable [QGVAR(burnUIPFH), _burnIndicatorPFH];
|
_unit setVariable [QGVAR(burnUIPFH), _burnIndicatorPFH];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
GVAR(lastFragTime) = -1;
|
GVAR(lastFragTime) = -1;
|
||||||
[QGVAR(frag_eh), {_this call FUNC(frago);}] call CBA_fnc_addEventHandler;
|
[QGVAR(frag_eh), LINKFUNC(frago)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
["CBA_settingsInitialized", {
|
["CBA_settingsInitialized", {
|
||||||
|
@ -22,5 +22,5 @@ if (_depth <= 2) then {
|
|||||||
private _indirectHitRange = getNumber(configFile >> "CfgAmmo" >> _ammo >> "indirectHitRange");
|
private _indirectHitRange = getNumber(configFile >> "CfgAmmo" >> _ammo >> "indirectHitRange");
|
||||||
private _indirectHit = getNumber(configFile >> "CfgAmmo" >> _ammo >> "indirectHit");
|
private _indirectHit = getNumber(configFile >> "CfgAmmo" >> _ammo >> "indirectHit");
|
||||||
private _testParams = [_pos, [_indirectHitRange, _indirectHit], [], [], -4, _depth, 0];
|
private _testParams = [_pos, [_indirectHitRange, _indirectHit], [], [], -4, _depth, 0];
|
||||||
[DFUNC(findReflections), 0, _testParams] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(findReflections), 0, _testParams] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
@ -88,10 +88,10 @@ if (!hasInterface) exitWith {};
|
|||||||
if (GVAR(effects) in [2, 3]) then {
|
if (GVAR(effects) in [2, 3]) then {
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//Add Explosion XEH
|
//Add Explosion XEH
|
||||||
["CAManBase", "explosion", FUNC(handleExplosion)] call CBA_fnc_addClassEventHandler;
|
["CAManBase", "explosion", LINKFUNC(handleExplosion)] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
GVAR(PostProcessEyes) = ppEffectCreate ["ColorCorrections", 1992];
|
GVAR(PostProcessEyes) = ppEffectCreate ["ColorCorrections", 1992];
|
||||||
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0, 0, 0, 1], [1, 1, 1, 0]];
|
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0, 0, 0, 1], [1, 1, 1, 0]];
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
["ace_flashbangExploded", {_this call FUNC(flashbangExplosionEH)}] call CBA_fnc_addEventHandler;
|
["ace_flashbangExploded", LINKFUNC(flashbangExplosionEH)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Register fired event handlers
|
// Register fired event handlers
|
||||||
["ace_firedPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||||
["ace_firedPlayerNonLocal", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerNonLocal", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||||
["ace_firedNonPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
["ace_firedNonPlayer", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
// Request rebalance on any unit spawn (only if distribution enabled)
|
// Request rebalance on any unit spawn (only if distribution enabled)
|
||||||
if (XGVAR(enabled)) then {
|
if (XGVAR(enabled)) then {
|
||||||
["AllVehicles", "initPost", FUNC(handleSpawn), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
["AllVehicles", "initPost", LINKFUNC(handleSpawn), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||||
};
|
};
|
||||||
// Add disconnect EH
|
// Add disconnect EH
|
||||||
addMissionEventHandler ["HandleDisconnect", {call FUNC(handleDisconnect)}];
|
addMissionEventHandler ["HandleDisconnect", {call FUNC(handleDisconnect)}];
|
||||||
|
@ -13,7 +13,7 @@ if (isServer) then {
|
|||||||
GVAR(inRebalance) = false;
|
GVAR(inRebalance) = false;
|
||||||
GVAR(endMissionCheckDelayed) = false;
|
GVAR(endMissionCheckDelayed) = false;
|
||||||
GVAR(blacklistType) = [BLACKLIST_UAV];
|
GVAR(blacklistType) = [BLACKLIST_UAV];
|
||||||
[QXGVAR(headlessClientJoined), FUNC(handleConnectHC)] call CBA_fnc_addEventHandler;
|
[QXGVAR(headlessClientJoined), LINKFUNC(handleConnectHC)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
@ -18,8 +18,8 @@ if (isServer) then {
|
|||||||
GVAR(intelData) = [true] call CBA_fnc_createNamespace;
|
GVAR(intelData) = [true] call CBA_fnc_createNamespace;
|
||||||
publicVariable QGVAR(intelData);
|
publicVariable QGVAR(intelData);
|
||||||
|
|
||||||
[QGVAR(handleMagIndex), FUNC(handleMagIndex)] call CBA_fnc_addEventHandler;
|
[QGVAR(handleMagIndex), LINKFUNC(handleMagIndex)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(setObjectData), FUNC(setObjectData)] call CBA_fnc_addEventHandler;
|
[QGVAR(setObjectData), LINKFUNC(setObjectData)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (hasInterface) then {
|
if (hasInterface) then {
|
||||||
|
@ -47,7 +47,7 @@ GVAR(ParsedTextCached) = [];
|
|||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//Add Actions to Houses:
|
//Add Actions to Houses:
|
||||||
["ace_interactMenuOpened", {_this call FUNC(userActions_addHouseActions)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", LINKFUNC(userActions_addHouseActions)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["ACE3 Common", QGVAR(InteractKey), (localize LSTRING(InteractKey)),
|
["ACE3 Common", QGVAR(InteractKey), (localize LSTRING(InteractKey)),
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ PREP_RECOMPILE_END;
|
|||||||
|
|
||||||
if (!hasInterface) exitWith { ADDON = true; };
|
if (!hasInterface) exitWith { ADDON = true; };
|
||||||
|
|
||||||
["All", "init", {_this call FUNC(compileMenu)}] call CBA_fnc_addClassEventHandler;
|
["All", "init", LINKFUNC(compileMenu)] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
GVAR(ActNamespace) = [] call CBA_fnc_createNamespace;
|
GVAR(ActNamespace) = [] call CBA_fnc_createNamespace;
|
||||||
GVAR(ActSelfNamespace) = [] call CBA_fnc_createNamespace;
|
GVAR(ActSelfNamespace) = [] call CBA_fnc_createNamespace;
|
||||||
|
@ -78,7 +78,7 @@ ACE_Modifier = 0;
|
|||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
[QGVAR(replaceTerrainObject), FUNC(replaceTerrainObject)] call CBA_fnc_addEventHandler;
|
[QGVAR(replaceTerrainObject), LINKFUNC(replaceTerrainObject)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[] call FUNC(initItemContextMenu);
|
[] call FUNC(initItemContextMenu);
|
||||||
|
|
||||||
addUserActionEventHandler ["headlights", "Deactivate", FUNC(onLightToggled)];
|
addUserActionEventHandler ["headlights", "Deactivate", LINKFUNC(onLightToggled)];
|
||||||
|
|
||||||
["ACE3 Equipment", QGVAR(hold), LLSTRING(MomentarySwitch), {
|
["ACE3 Equipment", QGVAR(hold), LLSTRING(MomentarySwitch), {
|
||||||
ACE_player action ["GunLightOn", ACE_player];
|
ACE_player action ["GunLightOn", ACE_player];
|
||||||
|
@ -55,5 +55,5 @@ TRACE_1("",GVAR(trackedLaserTargets));
|
|||||||
|
|
||||||
if (GVAR(pfehID) == -1) then {
|
if (GVAR(pfehID) == -1) then {
|
||||||
TRACE_1("starting pfeh",count GVAR(trackedLaserTargets));
|
TRACE_1("starting pfeh",count GVAR(trackedLaserTargets));
|
||||||
GVAR(pfehID) = [DFUNC(laserTargetPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
GVAR(pfehID) = [LINKFUNC(laserTargetPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
if (hasInterface) then {
|
if (hasInterface) then {
|
||||||
["ace_interactMenuOpened", {_this call FUNC(interactEH)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", LINKFUNC(interactEH)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
[QGVAR(destroyFence), {_this call FUNC(destroyFence)}] call CBA_fnc_addEventHandler;
|
[QGVAR(destroyFence), LINKFUNC(destroyFence)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
GVAR(possibleWirecutters) = call (uiNamespace getVariable [QGVAR(possibleWirecutters), {[]}]);
|
GVAR(possibleWirecutters) = call (uiNamespace getVariable [QGVAR(possibleWirecutters), {[]}]);
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
if (GVAR(BFT_Enabled) && {isNil QGVAR(BFT_markers)}) then {
|
if (GVAR(BFT_Enabled) && {isNil QGVAR(BFT_markers)}) then {
|
||||||
GVAR(BFT_markers) = [];
|
GVAR(BFT_markers) = [];
|
||||||
[FUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
// recieve remote marker data
|
// recieve remote marker data
|
||||||
[QGVAR(setMarkerNetwork), {_this call DFUNC(setMarkerNetwork)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setMarkerNetwork), LINKFUNC(setMarkerNetwork)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// recieve marker data for JIP
|
// recieve marker data for JIP
|
||||||
[QGVAR(setMarkerJIP), {_this call DFUNC(setMarkerJIP)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setMarkerJIP), LINKFUNC(setMarkerJIP)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// request marker data for JIP
|
// request marker data for JIP
|
||||||
if (isMultiplayer && {!isServer} && {hasInterface}) then {
|
if (isMultiplayer && {!isServer} && {hasInterface}) then {
|
||||||
|
@ -37,5 +37,5 @@ if (_type == "marker" && {_marker find "_USER_DEFINED" != -1 && {_marker call FU
|
|||||||
|
|
||||||
GVAR(moving) = true;
|
GVAR(moving) = true;
|
||||||
_marker setMarkerAlphaLocal 0.5;
|
_marker setMarkerAlphaLocal 0.5;
|
||||||
[FUNC(movePFH), 0, [_marker, _ctrlMap, _originalPos, _originalAlpha]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(movePFH), 0, [_marker, _ctrlMap, _originalPos, _originalAlpha]] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
GVAR(useAceMedical) = ["ace_medical"] call EFUNC(common,isModLoaded);
|
GVAR(useAceMedical) = ["ace_medical"] call EFUNC(common,isModLoaded);
|
||||||
|
|
||||||
// To support public API regardless of component settings
|
// To support public API regardless of component settings
|
||||||
[QGVAR(spurt), FUNC(spurt)] call CBA_fnc_addEventHandler;
|
[QGVAR(spurt), LINKFUNC(spurt)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
GVAR(bloodDrops) = [];
|
GVAR(bloodDrops) = [];
|
||||||
@ -21,7 +21,7 @@ if (isServer) then {
|
|||||||
|
|
||||||
// Start the cleanup loop
|
// Start the cleanup loop
|
||||||
if (_index == 0) then {
|
if (_index == 0) then {
|
||||||
[FUNC(cleanupLoop), [], GVAR(bloodLifetime)] call CBA_fnc_waitAndExecute;
|
[LINKFUNC(cleanupLoop), [], GVAR(bloodLifetime)] call CBA_fnc_waitAndExecute;
|
||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
@ -60,6 +60,6 @@ private _listCode = if (_mode == BLOOD_ONLY_PLAYERS) then {
|
|||||||
GVAR(stateMachine) = [_listCode, true] call CBA_statemachine_fnc_create;
|
GVAR(stateMachine) = [_listCode, true] call CBA_statemachine_fnc_create;
|
||||||
[GVAR(stateMachine), LINKFUNC(onBleeding), {}, {}, "Bleeding"] call CBA_statemachine_fnc_addState;
|
[GVAR(stateMachine), LINKFUNC(onBleeding), {}, {}, "Bleeding"] call CBA_statemachine_fnc_addState;
|
||||||
|
|
||||||
GVAR(woundReceivedEH) = [QEGVAR(medical,woundReceived), FUNC(handleWoundReceived)] call CBA_fnc_addEventHandler;
|
GVAR(woundReceivedEH) = [QEGVAR(medical,woundReceived), LINKFUNC(handleWoundReceived)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
TRACE_3("Set up state machine and wounds event",_mode,GVAR(stateMachine),GVAR(woundReceivedEH));
|
TRACE_3("Set up state machine and wounds event",_mode,GVAR(stateMachine),GVAR(woundReceivedEH));
|
||||||
|
@ -30,7 +30,7 @@ GVAR(bloodTickCounter) = 0;
|
|||||||
|
|
||||||
[false] call FUNC(initEffects);
|
[false] call FUNC(initEffects);
|
||||||
[true] call FUNC(handleEffects);
|
[true] call FUNC(handleEffects);
|
||||||
[FUNC(handleEffects), 1, false] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(handleEffects), 1, false] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
["ace_unconscious", {
|
["ace_unconscious", {
|
||||||
params ["_unit", "_unconscious"];
|
params ["_unit", "_unconscious"];
|
||||||
|
@ -41,7 +41,7 @@ if (GVAR(menuPFH) != -1) exitWith {
|
|||||||
TRACE_1("Menu PFH already running",GVAR(menuPFH));
|
TRACE_1("Menu PFH already running",GVAR(menuPFH));
|
||||||
};
|
};
|
||||||
|
|
||||||
GVAR(menuPFH) = [FUNC(menuPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
GVAR(menuPFH) = [LINKFUNC(menuPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
// Hide categories if they don't have any actions (airway)
|
// Hide categories if they don't have any actions (airway)
|
||||||
private _list = [
|
private _list = [
|
||||||
|
@ -35,7 +35,7 @@ private _closeCode = {
|
|||||||
}, ""] call CBA_fnc_addKeybind;
|
}, ""] call CBA_fnc_addKeybind;
|
||||||
|
|
||||||
//Add Eventhandler:
|
//Add Eventhandler:
|
||||||
[QEGVAR(vector,rangefinderData), {_this call FUNC(recieveRangefinderData)}] call CBA_fnc_addEventHandler;
|
[QEGVAR(vector,rangefinderData), LINKFUNC(recieveRangefinderData)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//Global Variables to default:
|
//Global Variables to default:
|
||||||
GVAR(gpsPositionASL) = [0,0,0];
|
GVAR(gpsPositionASL) = [0,0,0];
|
||||||
|
@ -12,8 +12,8 @@ private _detectableClasses = call (uiNamespace getVariable [QGVAR(detectableClas
|
|||||||
} forEach _detectableClasses;
|
} forEach _detectableClasses;
|
||||||
TRACE_1("built cache",count allVariables GVAR(detectableClasses));
|
TRACE_1("built cache",count allVariables GVAR(detectableClasses));
|
||||||
|
|
||||||
[QGVAR(enableDetector), FUNC(enableDetector)] call CBA_fnc_addEventHandler;
|
[QGVAR(enableDetector), LINKFUNC(enableDetector)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(disableDetector), FUNC(disableDetector)] call CBA_fnc_addEventHandler;
|
[QGVAR(disableDetector), LINKFUNC(disableDetector)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Shows detector and mine posistions in 3d when debug is on
|
// Shows detector and mine posistions in 3d when debug is on
|
||||||
#ifdef DEBUG_MODE_FULL
|
#ifdef DEBUG_MODE_FULL
|
||||||
|
@ -31,4 +31,4 @@ if (_unit == ACE_player) then {
|
|||||||
[QGVAR(detectorEnabled), [_unit, _detectorType]] call CBA_fnc_localEvent;
|
[QGVAR(detectorEnabled), [_unit, _detectorType]] call CBA_fnc_localEvent;
|
||||||
|
|
||||||
private _config = [_detectorType] call FUNC(getDetectorConfig);
|
private _config = [_detectorType] call FUNC(getDetectorConfig);
|
||||||
[FUNC(detectorLoop), 0.05, [_unit, _detectorType, _config, CBA_missionTime - 0.25]] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(detectorLoop), 0.05, [_unit, _detectorType, _config, CBA_missionTime - 0.25]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[QGVAR(handoff), {_this call FUNC(handleHandoff)}] call CBA_fnc_addEventHandler;
|
[QGVAR(handoff), LINKFUNC(handleHandoff)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode),
|
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode),
|
||||||
{
|
{
|
||||||
|
@ -19,4 +19,4 @@ params ["_target", "_args"];
|
|||||||
|
|
||||||
if (isNil "_target" || {isNull _target} || {!local _target} ) exitWith { false };
|
if (isNil "_target" || {isNull _target} || {!local _target} ) exitWith { false };
|
||||||
|
|
||||||
[FUNC(guidancePFH), 0, _args] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(guidancePFH), 0, _args] call CBA_fnc_addPerFrameHandler;
|
||||||
|
@ -145,7 +145,7 @@ if (_onFiredFunc != "") then {
|
|||||||
// _stateParams params ["_lastRunTime", "_seekerStateParams", "_attackProfileStateParams", "_lastKnownPosState"];
|
// _stateParams params ["_lastRunTime", "_seekerStateParams", "_attackProfileStateParams", "_lastKnownPosState"];
|
||||||
// _seekerParams params ["_seekerAngle", "_seekerAccuracy", "_seekerMaxRange", "_seekerMinRange"];
|
// _seekerParams params ["_seekerAngle", "_seekerAccuracy", "_seekerMaxRange", "_seekerMinRange"];
|
||||||
|
|
||||||
[FUNC(guidancePFH), 0, _args ] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(guidancePFH), 0, _args ] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
|
|
||||||
/* Clears locking settings
|
/* Clears locking settings
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
if (hasInterface) then {
|
if (hasInterface) then {
|
||||||
#include "initKeybinds.inc.sqf"
|
#include "initKeybinds.inc.sqf"
|
||||||
["ace_infoDisplayChanged", FUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
["ace_infoDisplayChanged", LINKFUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
["CBA_settingsInitialized", {
|
["CBA_settingsInitialized", {
|
||||||
TRACE_4("CBA_settingsInitialized",GVAR(airResistanceEnabled),GVAR(allowComputerRangefinder),GVAR(allowCompass),GVAR(useAmmoHandling));
|
TRACE_4("CBA_settingsInitialized",GVAR(airResistanceEnabled),GVAR(allowComputerRangefinder),GVAR(allowCompass),GVAR(useAmmoHandling));
|
||||||
|
|
||||||
["vehicle", FUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
|
["vehicle", LINKFUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
if (!GVAR(airResistanceEnabled)) exitWith {};
|
if (!GVAR(airResistanceEnabled)) exitWith {};
|
||||||
if (EGVAR(artillerytables,advancedCorrections)) exitWith { TRACE_1("defer firedEH to artillerytables",_this); };
|
if (EGVAR(artillerytables,advancedCorrections)) exitWith { TRACE_1("defer firedEH to artillerytables",_this); };
|
||||||
["Mortar_01_base_F", "fired", {call FUNC(handleFired)}] call CBA_fnc_addClassEventHandler;
|
|
||||||
|
|
||||||
|
["Mortar_01_base_F", "fired", LINKFUNC(handleFired)] call CBA_fnc_addClassEventHandler;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
["unit", FUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
["unit", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["loadout", FUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
["loadout", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
["ACE3 Movement", QGVAR(climb), localize LSTRING(Climb), {
|
["ACE3 Movement", QGVAR(climb), localize LSTRING(Climb), {
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
|
@ -28,4 +28,4 @@ GVAR(camera) = objNull;
|
|||||||
}] call CBA_fnc_addPlayerEventHandler;
|
}] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -35,8 +35,8 @@ if (hasInterface) then {
|
|||||||
GVAR(storedSpareBarrels) = createHashMap;
|
GVAR(storedSpareBarrels) = createHashMap;
|
||||||
|
|
||||||
// Install event handlers for spare barrels
|
// Install event handlers for spare barrels
|
||||||
[QGVAR(sendSpareBarrelTemperatureHint), FUNC(sendSpareBarrelsTemperaturesHint)] call CBA_fnc_addEventHandler;
|
[QGVAR(sendSpareBarrelTemperatureHint), LINKFUNC(sendSpareBarrelsTemperaturesHint)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(loadCoolestSpareBarrel), FUNC(loadCoolestSpareBarrel)] call CBA_fnc_addEventHandler;
|
[QGVAR(loadCoolestSpareBarrel), LINKFUNC(loadCoolestSpareBarrel)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Schedule cool down calculation of stored spare barrels
|
// Schedule cool down calculation of stored spare barrels
|
||||||
[] call FUNC(updateSpareBarrelsTemperaturesThread);
|
[] call FUNC(updateSpareBarrelsTemperaturesThread);
|
||||||
@ -50,14 +50,14 @@ if (hasInterface) then {
|
|||||||
|
|
||||||
//Add Take EH if required
|
//Add Take EH if required
|
||||||
if (GVAR(unJamOnReload) || {GVAR(cookoffCoef) > 0}) then {
|
if (GVAR(unJamOnReload) || {GVAR(cookoffCoef) > 0}) then {
|
||||||
["CAManBase", "Take", {_this call FUNC(handleTakeEH);}] call CBA_fnc_addClassEventHandler;
|
["CAManBase", "Take", LINKFUNC(handleTakeEH)] call CBA_fnc_addClassEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||||
// Only add eh to non local players if dispersion is enabled
|
// Only add eh to non local players if dispersion is enabled
|
||||||
if (GVAR(overheatingDispersion) || {GVAR(showParticleEffectsForEveryone)}) then {
|
if (GVAR(overheatingDispersion) || {GVAR(showParticleEffectsForEveryone)}) then {
|
||||||
["ace_firedPlayerNonLocal", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerNonLocal", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Schedule cool down calculation of player weapons at (infrequent) regular intervals
|
// Schedule cool down calculation of player weapons at (infrequent) regular intervals
|
||||||
@ -86,10 +86,10 @@ if (hasInterface) then {
|
|||||||
}] call CBA_fnc_addClassEventHandler;
|
}] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
// Install event handler to display temp when a barrel was swapped
|
// Install event handler to display temp when a barrel was swapped
|
||||||
[QGVAR(showWeaponTemperature), DFUNC(displayTemperature)] call CBA_fnc_addEventHandler;
|
[QGVAR(showWeaponTemperature), LINKFUNC(displayTemperature)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Install event handler to initiate an assisted barrel swap
|
// Install event handler to initiate an assisted barrel swap
|
||||||
[QGVAR(initiateSwapBarrelAssisted), DFUNC(swapBarrel)] call CBA_fnc_addEventHandler;
|
[QGVAR(initiateSwapBarrelAssisted), LINKFUNC(swapBarrel)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Add an action to allow hot weapons to be cooled off in AceX Field Rations water sources
|
// Add an action to allow hot weapons to be cooled off in AceX Field Rations water sources
|
||||||
if (["acex_field_rations"] call EFUNC(common,isModLoaded)) then {
|
if (["acex_field_rations"] call EFUNC(common,isModLoaded)) then {
|
||||||
|
@ -34,9 +34,9 @@ if (!hasInterface) exitWith {};
|
|||||||
}, {false}, [24, [false, false, false]], false] call CBA_fnc_addKeybind;
|
}, {false}, [24, [false, false, false]], false] call CBA_fnc_addKeybind;
|
||||||
|
|
||||||
// Handle reserve chute based on current backpack (fires when parachute opens too)
|
// Handle reserve chute based on current backpack (fires when parachute opens too)
|
||||||
["loadout", FUNC(handleReserve), true] call CBA_fnc_addPlayerEventHandler;
|
["loadout", LINKFUNC(handleReserve), true] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// Don't show vanilla speed and height when in expert mode
|
// Don't show vanilla speed and height when in expert mode
|
||||||
["ace_infoDisplayChanged", {_this call FUNC(handleInfoDisplayChanged)}] call CBA_fnc_addEventHandler;
|
["ace_infoDisplayChanged", LINKFUNC(handleInfoDisplayChanged)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["vehicle", {_this call FUNC(handleFailureChance)}] call CBA_fnc_addPlayerEventHandler;
|
["vehicle", LINKFUNC(handleFailureChance)] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(camShake)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(camShake)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
if (!GVAR(enabled)) exitWith {};
|
if (!GVAR(enabled)) exitWith {};
|
||||||
|
|
||||||
[QGVAR(setVehicleDamage), {_this call FUNC(setDamage)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setVehicleDamage), LINKFUNC(setDamage)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(setVehicleHitPointDamage), {_this call FUNC(setHitPointDamage)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setVehicleHitPointDamage), LINKFUNC(setHitPointDamage)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(setWheelHitPointDamage), {
|
[QGVAR(setWheelHitPointDamage), {
|
||||||
params ["_object", "_hitPoint", "_damage"];
|
params ["_object", "_hitPoint", "_damage"];
|
||||||
private _damageDisabled = !isDamageAllowed _object;
|
private _damageDisabled = !isDamageAllowed _object;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
["ace_rallypointMoved", FUNC(updateRallypoint)] call CBA_fnc_addEventHandler;
|
["ace_rallypointMoved", LINKFUNC(updateRallypoint)] call CBA_fnc_addEventHandler;
|
||||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler; // hide enemy rallypoint markers
|
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler; // hide enemy rallypoint markers
|
||||||
|
|
||||||
[QGVAR(showFriendlyFireMessageEvent), FUNC(showFriendlyFireMessage)] call CBA_fnc_addEventHandler;
|
[QGVAR(showFriendlyFireMessageEvent), LINKFUNC(showFriendlyFireMessage)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -15,11 +15,11 @@ GVAR(deployDirection) = 0;
|
|||||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Cancel deploy on player change. This does work when returning to lobby, but not when hard disconnecting.
|
// Cancel deploy on player change. This does work when returning to lobby, but not when hard disconnecting.
|
||||||
["unit", {_this call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["loadout", {_this call FUNC(handlePlayerInventoryChanged)}] call CBA_fnc_addPlayerEventHandler;
|
["loadout", LINKFUNC(handlePlayerInventoryChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// handle waking up dragged unit and falling unconscious while dragging
|
// handle waking up dragged unit and falling unconscious while dragging
|
||||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//@todo Captivity?
|
//@todo Captivity?
|
||||||
|
@ -24,7 +24,7 @@ GVAR(scopeAdjust) = [[[0,0],0,[0,0],0], [[0,0],0,[0,0],0], [[0,0],0,[0,0],0]];
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Check inventory when it changes
|
// Check inventory when it changes
|
||||||
["loadout", FUNC(inventoryCheck), true] call CBA_fnc_addPlayerEventHandler;
|
["loadout", LINKFUNC(inventoryCheck), true] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// Instantly hide knobs when scoping in
|
// Instantly hide knobs when scoping in
|
||||||
["cameraView", {
|
["cameraView", {
|
||||||
@ -140,7 +140,7 @@ GVAR(scopeAdjust) = [[[0,0],0,[0,0],0], [[0,0],0,[0,0],0], [[0,0],0,[0,0],0]];
|
|||||||
|
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||||
["ace_firedPlayerNonLocal", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerNonLocal", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
@ -10,7 +10,7 @@ if (!hasInterface) exitWith {};
|
|||||||
if (!XGVAR(enable)) exitWith {};
|
if (!XGVAR(enable)) exitWith {};
|
||||||
|
|
||||||
// Initialize classes as they spawn
|
// Initialize classes as they spawn
|
||||||
["ThingX", "init", FUNC(addSitActions), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
["ThingX", "init", LINKFUNC(addSitActions), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||||
|
|
||||||
// Initialize statically defined benches (also appear as world objects, no class EH thrown)
|
// Initialize statically defined benches (also appear as world objects, no class EH thrown)
|
||||||
{
|
{
|
||||||
@ -21,6 +21,6 @@ if (!hasInterface) exitWith {};
|
|||||||
["isNotSitting", {isNil {(_this select 0) getVariable QGVAR(sittingStatus)}}] call EFUNC(common,addCanInteractWithCondition);
|
["isNotSitting", {isNil {(_this select 0) getVariable QGVAR(sittingStatus)}}] call EFUNC(common,addCanInteractWithCondition);
|
||||||
|
|
||||||
// Handle interruptions
|
// Handle interruptions
|
||||||
["ace_unconscious", {_this call DFUNC(handleInterrupt)}] call CBA_fnc_addEventHandler;
|
["ace_unconscious", LINKFUNC(handleInterrupt)] call CBA_fnc_addEventHandler;
|
||||||
["ace_captives_SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call CBA_fnc_addEventHandler;
|
["ace_captives_SetHandcuffed", LINKFUNC(handleInterrupt)] call CBA_fnc_addEventHandler;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
@ -17,10 +17,10 @@ GVAR(currentAngle) = 0;
|
|||||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Cancel adjusting on player change.
|
// Cancel adjusting on player change.
|
||||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// handle falling unconscious
|
// handle falling unconscious
|
||||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// @todo captivity?
|
// @todo captivity?
|
||||||
|
@ -14,7 +14,7 @@ if (hasInterface) then {
|
|||||||
call FUNC(compileConfigTags);
|
call FUNC(compileConfigTags);
|
||||||
|
|
||||||
// Scripted tag adding EH
|
// Scripted tag adding EH
|
||||||
[QGVAR(applyCustomTag), FUNC(applyCustomTag)] call CBA_fnc_addEventHandler;
|
[QGVAR(applyCustomTag), LINKFUNC(applyCustomTag)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Keybind
|
// Keybind
|
||||||
["ACE3 Equipment", QGVAR(quickTag), localize LSTRING(QuickTag), {
|
["ACE3 Equipment", QGVAR(quickTag), localize LSTRING(QuickTag), {
|
||||||
@ -32,4 +32,4 @@ if (!isServer) exitWith {};
|
|||||||
GVAR(testingThread) = false;
|
GVAR(testingThread) = false;
|
||||||
GVAR(tagsToTest) = [];
|
GVAR(tagsToTest) = [];
|
||||||
|
|
||||||
[QGVAR(createTag), DFUNC(createTag)] call CBA_fnc_addEventHandler;
|
[QGVAR(createTag), LINKFUNC(createTag)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -27,11 +27,11 @@ GVAR(digDirection) = 0;
|
|||||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Cancel dig on player change. This does work when returning to lobby, but not when hard disconnecting.
|
// Cancel dig on player change. This does work when returning to lobby, but not when hard disconnecting.
|
||||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["loadout", FUNC(handlePlayerInventoryChanged)] call CBA_fnc_addPlayerEventHandler;
|
["loadout", LINKFUNC(handlePlayerInventoryChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// handle waking up dragged unit and falling unconscious while dragging
|
// handle waking up dragged unit and falling unconscious while dragging
|
||||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
//@todo Captivity?
|
//@todo Captivity?
|
||||||
|
@ -10,10 +10,10 @@ GVAR(height) = 0.5;
|
|||||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Cancel adjusting on player change.
|
// Cancel adjusting on player change.
|
||||||
["unit", FUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
["unit", LINKFUNC(handlePlayerChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||||
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
["vehicle", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
|
||||||
// handle falling unconscious
|
// handle falling unconscious
|
||||||
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// @todo captivity?
|
// @todo captivity?
|
||||||
|
@ -48,4 +48,4 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
|
|||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["unit", FUNC(handlePlayerChanged), true] call CBA_fnc_addPlayerEventHandler;
|
["unit", LINKFUNC(handlePlayerChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||||
|
@ -38,7 +38,7 @@ private _fnc_setPFH = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
GVAR(currentMode) = _this;
|
GVAR(currentMode) = _this;
|
||||||
GVAR(holdKeyHandler) = [FUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
GVAR(holdKeyHandler) = [LINKFUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (_this select 0) do {
|
switch (_this select 0) do {
|
||||||
|
@ -22,7 +22,7 @@ private _fnc_setPFH = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
GVAR(currentMode) = _this;//
|
GVAR(currentMode) = _this;//
|
||||||
GVAR(holdKeyHandler) = [FUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
GVAR(holdKeyHandler) = [LINKFUNC(onKeyHold), 0, _this] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (_this select 0) do {
|
switch (_this select 0) do {
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
//Add Event Handlers
|
//Add Event Handlers
|
||||||
[QGVAR(setupCustomKey), {_this call FUNC(serverSetupCustomKeyEH)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setupCustomKey), LINKFUNC(serverSetupCustomKeyEH)] call CBA_fnc_addEventHandler;
|
||||||
[QGVAR(setVehicleLock), {_this call FUNC(setVehicleLockEH)}] call CBA_fnc_addEventHandler;
|
[QGVAR(setVehicleLock), LINKFUNC(setVehicleLockEH)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
["CBA_settingsInitialized", {
|
["CBA_settingsInitialized", {
|
||||||
TRACE_2("SettingsInitialized eh",GVAR(LockVehicleInventory),GVAR(VehicleStartingLockState));
|
TRACE_2("SettingsInitialized eh",GVAR(LockVehicleInventory),GVAR(VehicleStartingLockState));
|
||||||
|
|
||||||
if (hasInterface && {GVAR(LockVehicleInventory)}) then {
|
if (hasInterface && {GVAR(LockVehicleInventory)}) then {
|
||||||
["CAManBase", "InventoryOpened", {_this call FUNC(onOpenInventory)}] call CBA_fnc_addClassEventHandler;
|
["CAManBase", "InventoryOpened", LINKFUNC(onOpenInventory)] call CBA_fnc_addClassEventHandler;
|
||||||
};
|
};
|
||||||
if (isServer && {GVAR(VehicleStartingLockState) != -1}) then {
|
if (isServer && {GVAR(VehicleStartingLockState) != -1}) then {
|
||||||
[{
|
[{
|
||||||
|
@ -41,7 +41,7 @@ if (_objectViewDistanceCoeff isEqualType 0) then {
|
|||||||
} else {
|
} else {
|
||||||
if (isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
if (isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
||||||
GVAR(fovBasedPFHminimalViewDistance) = getObjectViewDistance select 0; // Minimal view distance holder and PFH isRunning variable
|
GVAR(fovBasedPFHminimalViewDistance) = getObjectViewDistance select 0; // Minimal view distance holder and PFH isRunning variable
|
||||||
[FUNC(setFovBasedOvdPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(setFovBasedOvdPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -210,4 +210,4 @@ if (!hasInterface) exitWith {};
|
|||||||
[0, [false, false, false]]] call CBA_fnc_addKeybind;
|
[0, [false, false, false]]] call CBA_fnc_addKeybind;
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
if (GVAR(windSimulation)) then {
|
if (GVAR(windSimulation)) then {
|
||||||
call FUNC(initWind);
|
call FUNC(initWind);
|
||||||
[FUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
||||||
};
|
};
|
||||||
[FUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
[LINKFUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
@ -9,12 +9,12 @@ GVAR(trackedBullets) = [];
|
|||||||
if (!GVAR(enabled)) exitWith {};
|
if (!GVAR(enabled)) exitWith {};
|
||||||
|
|
||||||
// Register fire event handler
|
// Register fire event handler
|
||||||
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
["ace_firedPlayerNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
if (GVAR(vehicleEnabled)) then {
|
if (GVAR(vehicleEnabled)) then {
|
||||||
["ace_firedPlayerVehicle", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerVehicle", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
["ace_firedPlayerVehicleNonLocal", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
["ace_firedPlayerVehicleNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
[] call FUNC(updateTrajectoryPFH);
|
[] call FUNC(updateTrajectoryPFH);
|
||||||
|
@ -7,12 +7,12 @@ PREP_RECOMPILE_START;
|
|||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
[QGVAR(zeusUnitAssigned), FUNC(handleZeusUnitAssigned)] call CBA_fnc_addEventHandler;
|
[QGVAR(zeusUnitAssigned), LINKFUNC(handleZeusUnitAssigned)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Only add an InitPost EH if setting is enabled (and apply retroactively)
|
// Only add an InitPost EH if setting is enabled (and apply retroactively)
|
||||||
["CBA_settingsInitialized", {
|
["CBA_settingsInitialized", {
|
||||||
if (GVAR(autoAddObjects)) then {
|
if (GVAR(autoAddObjects)) then {
|
||||||
["AllVehicles", "InitPost", FUNC(addObjectToCurator), true, [], true] call CBA_fnc_addClassEventHandler;
|
["AllVehicles", "InitPost", LINKFUNC(addObjectToCurator), true, [], true] call CBA_fnc_addClassEventHandler;
|
||||||
};
|
};
|
||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user