@@ -27,9 +27,11 @@ Variable sar_cam_control("sar_cam_control", "0", 0, 3,
2727 " 2 = Cinematic mode (camera is controlled by predefined path).\n "
2828 " 3 = Follow mode (Camera is following the player but not rotating, useful when strafing on gel).\n " );
2929
30- Variable sar_cam_drive (" sar_cam_drive" , " 1 " , 0 , 1 ,
30+ Variable sar_cam_drive (" sar_cam_drive" , " 2 " , 0 , 2 ,
3131 " Enables or disables camera drive mode in-game "
32- " (turning it on is not required for demo player)\n " );
32+ " (turning it on is not required for demo player)\n "
33+ " 1 = enabled when LMB is held\n "
34+ " 2 = always enabled\n " );
3335
3436Variable sar_cam_ortho (" sar_cam_ortho" , " 0" , 0 , 1 , " Enables or disables camera orthographic projection.\n " );
3537Variable sar_cam_ortho_scale (" sar_cam_ortho_scale" , " 1" , 0 .001f , " Changes the scale of orthographic projection (how many units per pixel).\n " );
@@ -90,9 +92,9 @@ float Camera::GetCurrentPathTime() {
9092// if in drive mode, checks if player wants to control the camera
9193// for now it requires LMB input (as in demo drive mode)
9294bool Camera::IsDriving () {
93- bool drivingInGame = sar_cam_drive.GetBool () && sv_cheats. GetBool () && engine->hoststate ->m_activeGame ;
95+ bool drivingInGame = sar_cam_drive.GetBool () && engine->hoststate ->m_activeGame ;
9496 bool drivingInDemo = engine->demoplayer ->IsPlaying ();
95- bool wantingToDrive = inputSystem->IsKeyDown (ButtonCode_t::MOUSE_LEFT);
97+ bool wantingToDrive = sar_cam_drive. GetInt () == 2 || inputSystem->IsKeyDown (ButtonCode_t::MOUSE_LEFT);
9698 bool isUI = vgui->IsUIVisible ();
9799
98100 return (camera->controlType == Drive || camera->controlType == Follow) && wantingToDrive && (drivingInGame || drivingInDemo) && !isUI;
0 commit comments