mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
d3ce75daef
- Overhauls the spectator module entirely to share a similar UX to BI's "End Game Spectator" while maintaining some of the extended flexibility of ACE Spectator. - Simplifies spectator setup by reducing the number of settings. More advanced setup is still possible via the API functions provided.
37 lines
798 B
Plaintext
37 lines
798 B
Plaintext
/*
|
|
* Author: Nelson Duarte, SilentSpike
|
|
* Function used to set camera slow speed mode
|
|
*
|
|
* Arguments:
|
|
* 0: Enable slow speed <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [true] call ace_spectator_fnc_cam_toggleSlow
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_slowSpeed"];
|
|
|
|
if !(GVAR(camSlow) isEqualTo _slowSpeed) then {
|
|
private _camera = GVAR(camera);
|
|
|
|
if (GVAR(camMode) == MODE_FREE) then {
|
|
GVAR(camSlow) = _slowSpeed;
|
|
|
|
if (_slowSpeed) then {
|
|
_camera camCommand format ["speedDefault %1", SPEED_SLOW];
|
|
} else {
|
|
_camera camCommand format ["speedDefault %1", SPEED_DEFAULT];
|
|
};
|
|
} else {
|
|
_camera camCommand format ["speedDefault %1", SPEED_DEFAULT];
|
|
GVAR(camSlow) = false;
|
|
};
|
|
};
|