Improve spectator camera vision mode on start

The spectator camera should start in night vision mode if the sun to moon transition state is appropriate
This commit is contained in:
SilentSpike 2015-08-03 15:18:09 +01:00
parent f5e7185aec
commit 5bfa4e5971

View File

@ -37,6 +37,11 @@ switch (toLower _mode) do {
GVAR(mouse) = [false,false];
GVAR(mousePos) = [0.5,0.5];
// Camera starts with night vision if it's dark
if (sunOrMoon < 1) then {
[nil,nil,-1] call FUNC(setCameraAttributes);
};
// Initalize the camera view
GVAR(camera) = "Camera" camCreate (ASLtoATL GVAR(camPos));
[] call FUNC(transitionCamera);