mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
tabs -> spaces again
This commit is contained in:
parent
7988469fe3
commit
80b2595abb
@ -12,15 +12,15 @@ PREP_RECOMPILE_END;
|
||||
if (isNil QGVAR(enabled)) then { GVAR(enabled) = 2; };
|
||||
|
||||
GVAR(gps_currentSettings) = [
|
||||
[0, 0, 0], // attack position
|
||||
-1, // impact angle
|
||||
-1 // attack heading
|
||||
[0, 0, 0], // attack position
|
||||
-1, // impact angle
|
||||
-1 // attack heading
|
||||
];
|
||||
|
||||
GVAR(gps_pbMode) = 0;
|
||||
GVAR(gps_settings) = createHashMap;
|
||||
for "_i" from 0 to MAX_PB_MODES do {
|
||||
GVAR(gps_settings) set [_i, GVAR(currentSettings)];
|
||||
GVAR(gps_settings) set [_i, GVAR(currentSettings)];
|
||||
};
|
||||
|
||||
GVAR(gps_mode) = "pb";
|
||||
|
@ -10,41 +10,41 @@ _camera camCommitPrepared 0;
|
||||
|
||||
GVAR(debug_camera_close) = false;
|
||||
private _displayEH = (findDisplay 46) displayAddEventHandler ["KeyDown", {
|
||||
params ["_displayorcontrol", "_key", "_shift", "_ctrl", "_alt"];
|
||||
GVAR(debug_camera_close) = (_key == 1);
|
||||
true
|
||||
params ["_displayorcontrol", "_key", "_shift", "_ctrl", "_alt"];
|
||||
GVAR(debug_camera_close) = (_key == 1);
|
||||
true
|
||||
}];
|
||||
|
||||
[{
|
||||
params ["_args", "_pfh"];
|
||||
_args params ["_projectile", "_camera", "_projectilePos", "_displayEH"];
|
||||
if (!alive _projectile || GVAR(debug_camera_close)) exitWith {
|
||||
private _delay = 1.5;
|
||||
if (GVAR(debug_camera_close)) then {
|
||||
_delay = 0;
|
||||
};
|
||||
params ["_args", "_pfh"];
|
||||
_args params ["_projectile", "_camera", "_projectilePos", "_displayEH"];
|
||||
if (!alive _projectile || GVAR(debug_camera_close)) exitWith {
|
||||
private _delay = 1.5;
|
||||
if (GVAR(debug_camera_close)) then {
|
||||
_delay = 0;
|
||||
};
|
||||
|
||||
(findDisplay 46) displayRemoveEventHandler ["KeyDown", _displayEH];
|
||||
(findDisplay 46) displayRemoveEventHandler ["KeyDown", _displayEH];
|
||||
|
||||
[{
|
||||
params ["_camera"];
|
||||
[{
|
||||
params ["_camera"];
|
||||
|
||||
_camera cameraEffect ["terminate", "back"];
|
||||
_camera camCommitPrepared 0;
|
||||
camDestroy _camera;
|
||||
}, [_camera], _delay] call CBA_fnc_waitAndExecute;
|
||||
_camera cameraEffect ["terminate", "back"];
|
||||
_camera camCommitPrepared 0;
|
||||
camDestroy _camera;
|
||||
}, [_camera], _delay] call CBA_fnc_waitAndExecute;
|
||||
|
||||
_camera camPrepareTarget _projectilePos;
|
||||
_camera camCommitPrepared 0;
|
||||
_camera camPrepareTarget _projectilePos;
|
||||
_camera camCommitPrepared 0;
|
||||
|
||||
[_pfh] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
[_pfh] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
private _currentProjectilePos = getPosATLVisual _projectile;
|
||||
private _currentProjectilePos = getPosATLVisual _projectile;
|
||||
|
||||
_camera camPrepareTarget _projectile;
|
||||
_camera camPrepareRelPos [0, -5, 1];
|
||||
_camera camCommitPrepared 0;
|
||||
_camera camPrepareTarget _projectile;
|
||||
_camera camPrepareRelPos [0, -5, 1];
|
||||
_camera camCommitPrepared 0;
|
||||
|
||||
_args set [2, getPosATL _projectile];
|
||||
_args set [2, getPosATL _projectile];
|
||||
}, 0, [_projectile, _camera, getPosATL _projectile, _displayEH]] call CBA_fnc_addPerFrameHandler;
|
Loading…
Reference in New Issue
Block a user