Correcting view transition

This commit is contained in:
SilentSpike 2015-07-16 17:48:32 +01:00
parent e3c9e52fdd
commit 3895a51f02
2 changed files with 11 additions and 5 deletions

View File

@ -44,7 +44,7 @@ switch (toLower _mode) do {
GVAR(camFocus) = [-1,-1];
GVAR(camFOV) = 0.7;
GVAR(camSpeed) = 0.1;
GVAR(camTilt) = -60;
GVAR(camTilt) = -10;
GVAR(camZoom) = 3;
GVAR(gunCam) = false;
@ -60,10 +60,6 @@ switch (toLower _mode) do {
GVAR(camera) setDir GVAR(camPan);
call FUNC(updateView);
// HUD stuff
showCinemaBorder false;
cameraEffectEnableHUD true;
// Handle camera movement
[FUNC(handleCamera), 0] call CBA_fnc_addPerFrameHandler;
@ -291,6 +287,8 @@ switch (toLower _mode) do {
_netID = (_args select 0) tvData _sel;
GVAR(camUnit) = objectFromNetId _netID;
};
} else {
GVAR(camMode) == 1;
};
call FUNC(updateView);
};

View File

@ -4,6 +4,10 @@ GVAR(camera) camSetFOV GVAR(camFOV);
if (GVAR(camMode) == 0) then { // Free
GVAR(camera) cameraEffect ["internal", "back"];
// HUD stuff
showCinemaBorder false;
cameraEffectEnableHUD false;
} else {
// When no units available to spectate, exit to freecam
if (unitList isEqualTo []) exitWith {
@ -26,5 +30,9 @@ if (GVAR(camMode) == 0) then { // Free
} else { // External
GVAR(camUnit) switchCamera "external";
};
// Terminate camera view
GVAR(camera) cameraEffect ["terminate", "back"];
cameraEffectEnableHUD true;
};