"+cammousemove"

MS:C community

Old Skool Apostle
Alpha Tester
Joined
Jul 7, 2011
Messages
504
Reaction score
109
Is "+cammousemove" an MS:C-specific thing?
I noticed it behaves rather odd (as in: hardly at all) in Half-Life and Sven Co-op's third person modes.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
It's core Half-Life, and engine side to boot, I believe. If your mouse input type settings are different between the games, that may have an effect.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
There does seem to be a *slight* difference between the standard SDK and MSC:

Both:
Code:
	gEngfuncs.pfnAddCommand( "+cammousemove",CAM_StartMouseMove);

Standard 2005:
Code:
void CAM_StartMouseMove(void)
{
	float flSensitivity;
		
	//only move the cam with mouse if we are in third person.
	if (cam_thirdperson)
	{
		//set appropriate flags and initialize the old mouse position
		//variables for mouse camera movement
		if (!cam_mousemove)
		{
			cam_mousemove=1;
			iMouseInUse=1;
			GetCursorPos (&cam_mouse);

			if ( ( flSensitivity = gHUD.GetSensitivity() ) != 0 )
			{
				cam_old_mouse_x=cam_mouse.x*flSensitivity;
				cam_old_mouse_y=cam_mouse.y*flSensitivity;
			}
			else
			{
				cam_old_mouse_x=cam_mouse.x;
				cam_old_mouse_y=cam_mouse.y;
			}
		}
	}
	//we are not in 3rd person view..therefore do not allow camera movement
	else
	{   
		cam_mousemove=0;
		iMouseInUse=0;
	}
}

MSC:
Code:
void CAM_StartMouseMove(void)
{
		
	//only move the cam with mouse if we are in third person.
	if (MSCLGlobals::CamThirdPerson)
	{
		//set appropriate flags and initialize the old mouse position
		//variables for mouse camera movement
		if (!cam_mousemove)
		{
			cam_mousemove=1;
			iMouseInUse=1;
			GetCursorPos (&cam_mouse);

			float flSensitivity;
			if ( ( flSensitivity = gHUD.GetSensitivity() ) != 0 )
			{
				cam_old_mouse_x=cam_mouse.x*flSensitivity;
				cam_old_mouse_y=cam_mouse.y*flSensitivity;
			}
			else
			{
				cam_old_mouse_x=cam_mouse.x;
				cam_old_mouse_y=cam_mouse.y;
			}
		}
	}
	//we are not in 3rd person view..therefore do not allow camera movement
	else
	{   
		cam_mousemove=0;
		iMouseInUse=0;
	}
}

But it just seems to be in the way MSC determines if third person mode is active.

I suppose if the original SDK isn't determining third person mode correctly, it *might* explain the behavior, but if it's doing anything at all, seems it'd most likely be different input settings and/or launch flags. I think I, for instance, have raw input enabled on Half-Life but not MSC, due to some fandangling during the February 2013 fiasco.
 
Top