mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix CBA_fnc capitalization
This commit is contained in:
parent
3be60a2f6e
commit
ca9b909e75
@ -36,7 +36,7 @@ GVAR(Protractor) = true;
|
||||
if !(GVAR(Protractor) && !(weaponLowered ACE_player) && currentWeapon ACE_player == primaryWeapon ACE_player) exitWith {
|
||||
GVAR(Protractor) = false;
|
||||
1 cutText ["", "PLAIN"];
|
||||
[_idPFH] call cba_fnc_removePerFrameHandler;
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
1 cutRsc ["RscProtractor", "PLAIN", 1, false];
|
||||
|
@ -40,7 +40,7 @@ GVAR(currentGrid) = 0;
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
systemChat format["AdvancedBallistics: Finished terrain initialization in %1 seconds", ceil(ACE_time - _initStartTime)];
|
||||
#endif
|
||||
[_idPFH] call cba_fnc_removePerFrameHandler;
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
for "_i" from 1 to 50 do {
|
||||
|
@ -54,7 +54,7 @@ GVAR(active) = true;
|
||||
|
||||
GVAR(DialogPFH) = [{
|
||||
if (!GVAR(active)) exitWith {
|
||||
[_this select 1] call cba_fnc_removePerFrameHandler;
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
__ctrlBackground ctrlSetText format [QUOTE(PATHTOF(UI\ATRAG_%1.paa)), ["N", "D"] select (call EFUNC(common,ambientBrightness))];
|
||||
}, 60, []] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
uiNamespace setVariable ['ATragMX_Display', nil];
|
||||
GVAR(active) = false;
|
||||
[GVAR(DialogPFH)] call cba_fnc_removePerFrameHandler;
|
||||
[GVAR(DialogPFH)] call CBA_fnc_removePerFrameHandler;
|
@ -37,7 +37,7 @@ if !(ctrlVisible 9000) then {
|
||||
false call FUNC(show_target_speed_assist_timer);
|
||||
true call FUNC(show_target_speed_assist);
|
||||
|
||||
[_this select 1] call cba_fnc_removePerFrameHandler;
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
ctrlSetText [9001, Str(Round((ACE_time - _startTime) * 10) / 10)];
|
||||
|
@ -45,7 +45,7 @@ if (_state) then {
|
||||
};
|
||||
|
||||
if (!(_unit getVariable [QGVAR(isEscorting), false])) then {
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
[objNull, _target, false] call EFUNC(common,claim);
|
||||
detach _target;
|
||||
_unit removeAction _actionID;
|
||||
|
@ -14,7 +14,7 @@
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[0, [false, true, false]], false] call cba_fnc_addKeybind; // (empty default key)
|
||||
[0, [false, true, false]], false] call CBA_fnc_addKeybind; // (empty default key)
|
||||
|
||||
["ACE3 Equipment", QGVAR(ToggleKey), "Toggle DAGR",
|
||||
{
|
||||
@ -27,7 +27,7 @@
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[0, [false, false, false]], false] call cba_fnc_addKeybind; // (empty default key)
|
||||
[0, [false, false, false]], false] call CBA_fnc_addKeybind; // (empty default key)
|
||||
|
||||
//Add deviceKey entry:
|
||||
private ["_conditonCode", "_toggleCode", "_closeCode"];
|
||||
|
@ -52,7 +52,7 @@ if !([_unit] call EFUNC(common,isPlayer)) then {
|
||||
//don't do anything until projectile is null (exploded/max range)
|
||||
if (isNull _projectile) then {
|
||||
//Remove PFEH:
|
||||
[_idPFH] call cba_fnc_removePerFrameHandler;
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
|
||||
//If (tube is dropped) OR (is dead) OR (is player) just exit
|
||||
if (((secondaryWeapon _unit) != _tube) || {!alive _unit} || {([_unit] call EFUNC(common,isPlayer))}) exitWith {};
|
||||
|
@ -30,7 +30,7 @@ private "_explosive";
|
||||
_explosive = [_code] call FUNC(getSpeedDialExplosive);
|
||||
|
||||
if (_i >= (count _arr + 2)) then {
|
||||
[_pfID] call CALLSTACK(cba_fnc_removePerFrameHandler);
|
||||
[_pfID] call CALLSTACK(CBA_fnc_removePerFrameHandler);
|
||||
if ((count _explosive) > 0) then {
|
||||
[_unit, -1, [_explosive select 0, _explosive select 2]] call FUNC(detonateExplosive);
|
||||
};
|
||||
|
@ -28,7 +28,7 @@
|
||||
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex)] call FUNC(keyUp);
|
||||
false
|
||||
},
|
||||
[15, [false, false, false]], false] call cba_fnc_addKeybind; //Tab Key
|
||||
[15, [false, false, false]], false] call CBA_fnc_addKeybind; //Tab Key
|
||||
|
||||
["ACE3 Vehicles", QGVAR(adjustRangeUp), localize LSTRING(AdjustRangeUp),
|
||||
{
|
||||
@ -42,7 +42,7 @@
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[201, [false, false, false]], false] call cba_fnc_addKeybind; //PageUp Key
|
||||
[201, [false, false, false]], false] call CBA_fnc_addKeybind; //PageUp Key
|
||||
|
||||
["ACE3 Vehicles", QGVAR(adjustRangDown), localize LSTRING(AdjustRangeDown),
|
||||
{
|
||||
@ -56,4 +56,4 @@
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[209, [false, false, false]], false] call cba_fnc_addKeybind; //PageDown Key
|
||||
[209, [false, false, false]], false] call CBA_fnc_addKeybind; //PageDown Key
|
||||
|
@ -19,5 +19,5 @@ GVAR(pfeh_id) = -1;
|
||||
_this call FUNC(keyPress);
|
||||
},
|
||||
{false},
|
||||
[41, [true, false, false]], true] call cba_fnc_addKeybind; // Shift + Tilda (hold)
|
||||
[41, [true, false, false]], true] call CBA_fnc_addKeybind; // Shift + Tilda (hold)
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
@ -20,7 +20,7 @@ for "_i" from _index to ((_index+2) min (count _explosions)) do {
|
||||
};
|
||||
_index = _index + 2;
|
||||
if(_index >= (count _explosions)) then {
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
} else {
|
||||
_params set[1, _index];
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ if(_zIndex < 5) then {
|
||||
};
|
||||
for "_i" from 0 to _radi do {
|
||||
_test = true;
|
||||
_vec = [1, ((_i*_split)+_rand) mod 360, _zAng] call cba_fnc_polar2vect;
|
||||
_vec = [1, ((_i*_split)+_rand) mod 360, _zAng] call CBA_fnc_polar2vect;
|
||||
for "_x" from 1 to _distanceCount do {
|
||||
_testPos = _pos vectorAdd (_vec vectorMultiply _x);
|
||||
// drop ["\a3\data_f\Cl_basic","","Billboard",1,15,ASLtoATL _testPos,[0,0,0],1,1.275,1.0,0.0,[1],[[1,0,0,1]],[0],0.0,2.0,"","",""];
|
||||
@ -122,5 +122,5 @@ if(_zIndex < 5) then {
|
||||
// _dirvec = _dirvec vectorMultiply 100;
|
||||
// _can setVelocity _dirvec;
|
||||
[DFUNC(doExplosions), 0, [_explosions, 0]] call CBA_fnc_addPerFrameHandler;
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "script_component.hpp"
|
||||
if(GVAR(tracesStarted)) then {
|
||||
GVAR(tracesStarted) = false;
|
||||
[GVAR(traceID)] call cba_fnc_removePerFrameHandler;
|
||||
[GVAR(traceID)] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
@ -10,5 +10,5 @@ if (alive _tracerObj && (count GVAR(traces)) > 0) then {
|
||||
_positions = _data select 4;
|
||||
_positions set [(count _positions), [(getPos _tracerObj), vectorMagnitude (velocity _tracerObj)]];
|
||||
} else {
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
@ -93,7 +93,7 @@ GVAR(no_cams) sort true;
|
||||
GVAR(pos) = getPosVisual GVAR(huntIR);
|
||||
|
||||
if ((!dialog) || (count GVAR(no_cams) == 0) || ((GVAR(pos) select 2) <= 20)) exitWith {
|
||||
[_this select 1] call cba_fnc_removePerFrameHandler;
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
|
||||
GVAR(stop) = true;
|
||||
|
||||
|
@ -48,7 +48,7 @@ createDialog "ace_huntir_cam_dialog_off";
|
||||
_nearestHuntIRs = ACE_player nearEntities ["ACE_HuntIR", HUNTIR_MAX_TRANSMISSION_RANGE];
|
||||
|
||||
if ((!dialog) || GVAR(done)) exitWith {
|
||||
[_this select 1] call cba_fnc_removePerFrameHandler;
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
|
||||
if (dialog && GVAR(state) == "connected") then {
|
||||
[_nearestHuntIRs select 0] call FUNC(cam);
|
||||
|
@ -41,14 +41,14 @@ GVAR(ParsedTextCached) = [];
|
||||
// Statement
|
||||
[0] call FUNC(keyDown)
|
||||
},{[0,false] call FUNC(keyUp)},
|
||||
[219, [false, false, false]], false] call cba_fnc_addKeybind; //Left Windows Key
|
||||
[219, [false, false, false]], false] call CBA_fnc_addKeybind; //Left Windows Key
|
||||
|
||||
["ACE3 Common", QGVAR(SelfInteractKey), (localize LSTRING(SelfInteractKey)),
|
||||
{
|
||||
// Statement
|
||||
[1] call FUNC(keyDown)
|
||||
},{[1,false] call FUNC(keyUp)},
|
||||
[219, [false, true, false]], false] call cba_fnc_addKeybind; //Left Windows Key + Ctrl/Strg
|
||||
[219, [false, true, false]], false] call CBA_fnc_addKeybind; //Left Windows Key + Ctrl/Strg
|
||||
|
||||
|
||||
// Listens for the falling unconscious event, just in case the menu needs to be closed
|
||||
|
@ -55,7 +55,7 @@ if (((count _weaponConfig) < 1) || {(getNumber (_weaponConfig select 0)) != 1})
|
||||
_fireDisabledEH = [_fireDisabledEH] call FUNC(enableFire);
|
||||
};
|
||||
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
GVAR(pfehID) = -1;
|
||||
};
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
[ACE_player] call FUNC(lockKeyUp);
|
||||
false
|
||||
},
|
||||
[15, [false, false, false]], false] call cba_fnc_addKeybind; //Tab Key
|
||||
[15, [false, false, false]], false] call CBA_fnc_addKeybind; //Tab Key
|
||||
|
||||
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode),
|
||||
{ false },
|
||||
@ -27,4 +27,4 @@
|
||||
[ACE_player] call FUNC(cycleFireMode);
|
||||
false
|
||||
},
|
||||
[15, [false, true, false]], false] call cba_fnc_addKeybind; //Ctrl+Tab Key
|
||||
[15, [false, true, false]], false] call CBA_fnc_addKeybind; //Ctrl+Tab Key
|
@ -10,7 +10,7 @@ _shooter = _args select 1;
|
||||
_uuid = _args select 2;
|
||||
|
||||
if(isNull _laserTarget || !alive _shooter) exitWith {
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
REM(GVAR(VanillaLasers), _laserTarget);
|
||||
|
||||
// Remove laseron
|
||||
|
@ -13,7 +13,7 @@ _args = _this select 0;
|
||||
EXPLODE_7_PVT((_args select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
|
||||
if(!alive _projectile || isNull _projectile || isNull _shooter) exitWith {
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
_launchParams = _args select 1;
|
||||
|
@ -71,7 +71,7 @@ if (_activated && local _logic) then {
|
||||
_args params ["_logic", "_ambianceSounds", "_minimalDistance", "_maximalDistance", "_minDelayBetweensounds", "_maxDelayBetweenSounds", "_volume", "_followPlayers", "_lastTimePlayed"];
|
||||
|
||||
if (!alive _logic) exitWith {
|
||||
[_pfhHandle] call cba_fnc_removePerFrameHandler;
|
||||
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
if (ACE_time - _lastTimePlayed >= ((_minDelayBetweensounds + random(_maxDelayBetweenSounds)) min _maxDelayBetweenSounds)) then {
|
||||
|
@ -60,7 +60,7 @@ if (_newMuzzleVelocityCoefficent != 1) then {
|
||||
EXPLODE_4_PVT(_args,_shell,_airFriction,_time,_relativeDensity);
|
||||
|
||||
if (isNull _shell || {!alive _shell}) exitwith {
|
||||
[_pfID] call cba_fnc_removePerFrameHandler;
|
||||
[_pfID] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
_deltaT = ACE_time - _time;
|
||||
|
@ -32,4 +32,4 @@ if (!hasInterface) exitWith {};
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[47, [false, true, false]], false] call cba_fnc_addKeybind; //DIK_V + CTRL//STRG
|
||||
[47, [false, true, false]], false] call CBA_fnc_addKeybind; //DIK_V + CTRL//STRG
|
||||
|
@ -20,7 +20,7 @@ GVAR(showNamesTime) = -10;
|
||||
false
|
||||
},
|
||||
{false},
|
||||
[29, [false, false, false]], false] call cba_fnc_addKeybind; //LeftControl Key
|
||||
[29, [false, false, false]], false] call CBA_fnc_addKeybind; //LeftControl Key
|
||||
|
||||
// Monitor the assigned teams, and propegate them appropriately for the player
|
||||
// This allows for assigned team colors to match across the entire group
|
||||
|
@ -49,7 +49,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[201, [false, false, true]], false] call cba_fnc_addKeybind; //PageUp + ALT
|
||||
[201, [false, false, true]], false] call CBA_fnc_addKeybind; //PageUp + ALT
|
||||
|
||||
["ACE3 Equipment", QGVAR(DecreaseNVGBrightness), localize LSTRING(DecreaseNVGBrightness),
|
||||
{
|
||||
@ -63,4 +63,4 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[209, [false, false, true]], false] call cba_fnc_addKeybind; //PageDown + ALT
|
||||
[209, [false, false, true]], false] call CBA_fnc_addKeybind; //PageDown + ALT
|
||||
|
@ -18,4 +18,4 @@ if (!hasInterface) exitWith {};
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[19, [true, false, false]], false] call cba_fnc_addKeybind; //R Key
|
||||
[19, [true, false, false]], false] call CBA_fnc_addKeybind; //R Key
|
||||
|
@ -34,7 +34,7 @@ _fnc_stopCurrentBurst = {
|
||||
if (diag_frameno == _startFrame) exitWith {};
|
||||
|
||||
// Remove the PFH on the second execution
|
||||
[_pfhId] call cba_fnc_removePerFrameHandler;
|
||||
[_pfhId] call CBA_fnc_removePerFrameHandler;
|
||||
|
||||
_unit setAmmo [_weapon, _ammo];
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ if (!hasInterface) exitWith {};
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[24, [false, false, false]], false] call cba_fnc_addKeybind;
|
||||
[24, [false, false, false]], false] call CBA_fnc_addKeybind;
|
||||
|
||||
GVAR(PFH) = false;
|
||||
["playerVehicleChanged",{
|
||||
|
@ -22,6 +22,6 @@ _unit setVariable [QGVAR(chuteIsCut), false, true];
|
||||
[{
|
||||
if (ACE_time >= ((_this select 0) select 0) + 1) then {
|
||||
((_this select 0) select 1) playActionNow "Crouch";
|
||||
[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);
|
||||
[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);
|
||||
};
|
||||
}, 1, [ACE_time,_unit]] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|
||||
|
@ -16,16 +16,16 @@
|
||||
#include "script_component.hpp"
|
||||
private "_player";
|
||||
_player = ACE_player;
|
||||
if (!GVAR(PFH)) exitWith {[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);};
|
||||
if (isNull _player) exitWith {[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);GVAR(PFH) = false;};
|
||||
if !((vehicle _player) isKindOf "ParachuteBase") exitWith {[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);GVAR(PFH) = false;};
|
||||
if (isTouchingGround _player) exitWith {[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);GVAR(PFH) = false;};
|
||||
if (!GVAR(PFH)) exitWith {[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);};
|
||||
if (isNull _player) exitWith {[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);GVAR(PFH) = false;};
|
||||
if !((vehicle _player) isKindOf "ParachuteBase") exitWith {[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);GVAR(PFH) = false;};
|
||||
if (isTouchingGround _player) exitWith {[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);GVAR(PFH) = false;};
|
||||
|
||||
private ["_pos"];
|
||||
_pos = getPosASL (vehicle _player);
|
||||
|
||||
if ((lineIntersects [_pos, _pos vectorAdd [0,0,-0.5], vehicle _player, _player]) || {((ASLtoATL _pos) select 2) < 0.75}) then {
|
||||
[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);
|
||||
[(_this select 1)] call CALLSTACK(CBA_fnc_removePerFrameHandler);
|
||||
GVAR(PFH) = false;
|
||||
// I believe this will not work for Zeus units.
|
||||
deleteVehicle (vehicle _player);
|
||||
|
@ -23,10 +23,10 @@ if (isNull (uiNamespace getVariable ["ACE_Altimeter", displayNull])) exitWith {}
|
||||
GVAR(AltimeterActive) = true;
|
||||
|
||||
[{
|
||||
if (!GVAR(AltimeterActive)) exitWith {[_this select 1] call CALLSTACK(cba_fnc_removePerFrameEventHandler)};
|
||||
if (!GVAR(AltimeterActive)) exitWith {[_this select 1] call CALLSTACK(CBA_fnc_removePerFrameEventHandler)};
|
||||
disableSerialization;
|
||||
(_this select 0) params ["_display", "_unit", "_oldHeight", "_prevTime"];
|
||||
if !("ACE_Altimeter" in assignedItems _unit) exitWith {[_this select 1] call CALLSTACK(cba_fnc_removePerFrameEventHandler); call FUNC(hideAltimeter)};
|
||||
if !("ACE_Altimeter" in assignedItems _unit) exitWith {[_this select 1] call CALLSTACK(CBA_fnc_removePerFrameEventHandler); call FUNC(hideAltimeter)};
|
||||
|
||||
private ["_height", "_hour", "_minute", "_descentRate","_HeightText", "_DecendRate", "_TimeText", "_curTime", "_timeDiff"];
|
||||
|
||||
|
@ -16,7 +16,7 @@ if (!hasInterface) exitWith {};
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[19, [false, true, false]], false] call cba_fnc_addKeybind;
|
||||
[19, [false, true, false]], false] call CBA_fnc_addKeybind;
|
||||
|
||||
["setAmmoSync", {
|
||||
//To propagate the setAmmo change, do it on all clients
|
||||
|
@ -25,7 +25,7 @@ if (!hasInterface) exitWith {};
|
||||
|
||||
|
||||
if !(isNil QGVAR(fadePFH)) then {
|
||||
[GVAR(fadePFH)] call cba_fnc_removePerFrameHandler;
|
||||
[GVAR(fadePFH)] call CBA_fnc_removePerFrameHandler;
|
||||
GVAR(fadePFH) = nil;
|
||||
};
|
||||
};
|
||||
@ -44,7 +44,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, ELEVATION_UP, MINOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[201, [false, false, false]], true] call cba_fnc_addKeybind;
|
||||
[201, [false, false, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustDownMinor), localize LSTRING(AdjustDownMinor),
|
||||
{
|
||||
@ -57,7 +57,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, ELEVATION_DOWN, MINOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[209, [false, false, false]], true] call cba_fnc_addKeybind;
|
||||
[209, [false, false, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustLeftMinor), localize LSTRING(AdjustLeftMinor),
|
||||
{
|
||||
@ -70,7 +70,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, WINDAGE_LEFT, MINOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[209, [false, true, false]], true] call cba_fnc_addKeybind;
|
||||
[209, [false, true, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustRightMinor), localize LSTRING(AdjustRightMinor),
|
||||
{
|
||||
@ -83,7 +83,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, WINDAGE_RIGHT, MINOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[201, [false, true, false]], true] call cba_fnc_addKeybind;
|
||||
[201, [false, true, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustUpMajor), localize LSTRING(AdjustUpMajor),
|
||||
{
|
||||
@ -96,7 +96,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, ELEVATION_UP, MAJOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[201, [true, false, false]], true] call cba_fnc_addKeybind;
|
||||
[201, [true, false, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustDownMajor), localize LSTRING(AdjustDownMajor),
|
||||
{
|
||||
@ -109,7 +109,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, ELEVATION_DOWN, MAJOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[209, [true, false, false]], true] call cba_fnc_addKeybind;
|
||||
[209, [true, false, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustLeftMajor), localize LSTRING(AdjustLeftMajor),
|
||||
{
|
||||
@ -122,7 +122,7 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, WINDAGE_LEFT, MAJOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[209, [true, true, false]], true] call cba_fnc_addKeybind;
|
||||
[209, [true, true, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustRightMajor), localize LSTRING(AdjustRightMajor),
|
||||
{
|
||||
@ -135,4 +135,4 @@ if (!hasInterface) exitWith {};
|
||||
[ACE_player, WINDAGE_RIGHT, MAJOR_INCREMENT] call FUNC(adjustScope);
|
||||
},
|
||||
{false},
|
||||
[201, [true, true, false]], true] call cba_fnc_addKeybind;
|
||||
[201, [true, true, false]], true] call CBA_fnc_addKeybind;
|
||||
|
@ -58,6 +58,6 @@ GVAR(fadePFH) = [{
|
||||
_layer cutFadeOut 2;
|
||||
|
||||
GVAR(fadePFH) = nil;
|
||||
[_pfhId] call cba_fnc_removePerFrameHandler;
|
||||
[_pfhId] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
}, 0.1, []] call CBA_fnc_addPerFrameHandler
|
||||
|
@ -32,6 +32,6 @@ params ["_originalPlayerUnit"];
|
||||
_layer = "BIS_fnc_respawnCounter" call bis_fnc_rscLayer;
|
||||
_layer cuttext ["","plain"];
|
||||
|
||||
[_pfhId] call cba_fnc_removePerFrameHandler;
|
||||
[_pfhId] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
}, 0.2, _this] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -76,6 +76,6 @@ if (_leave) exitWith {
|
||||
|
||||
[localize LSTRING(SwitchedUnit)] call EFUNC(common,displayTextStructured);
|
||||
|
||||
[_pfhId] call cba_fnc_removePerFrameHandler;
|
||||
[_pfhId] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
}, 0.2, [_unit, player]] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -18,4 +18,4 @@ if (!hasInterface) exitWith {};
|
||||
true
|
||||
},
|
||||
{false},
|
||||
[211, [false, false, false]], false] call cba_fnc_addKeybind; //DELETE Key
|
||||
[211, [false, false, false]], false] call CBA_fnc_addKeybind; //DELETE Key
|
||||
|
@ -33,7 +33,7 @@ GVAR(WindInfo) = true;
|
||||
if !(GVAR(WindInfo) && !(underwater ACE_player) && vehicle ACE_player == ACE_player) exitWith {
|
||||
GVAR(WindInfo) = false;
|
||||
0 cutText ["", "PLAIN"];
|
||||
[_this select 1] call cba_fnc_removePerFrameHandler;
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
_windIndex = 12;
|
||||
|
Loading…
Reference in New Issue
Block a user