diff --git a/addons/missileguidance/XEH_pre_init.sqf b/addons/missileguidance/XEH_pre_init.sqf index 3c94b0f08c..3281fdc6ab 100644 --- a/addons/missileguidance/XEH_pre_init.sqf +++ b/addons/missileguidance/XEH_pre_init.sqf @@ -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"; diff --git a/addons/missileguidance/dev/projectileCamera.sqf b/addons/missileguidance/dev/projectileCamera.sqf index 43db4b3148..06f2877f5f 100644 --- a/addons/missileguidance/dev/projectileCamera.sqf +++ b/addons/missileguidance/dev/projectileCamera.sqf @@ -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; \ No newline at end of file