I have found something here in gameplayercontrol, I think I have it
-- Rotate player camera
if ( g_PlayerHealth>0 and g_suspendplayercontrols == 0 ) then
-- when camea rotation overridden, prevent rotation
if ( GetCameraOverride() ~= 2 and GetCameraOverride() ~= 3 ) then
-- SetCameraAngle ( 0, GetGamePlayerStateCamAngleX(), GetGamePlayerStateCamAngleY(), 0 )
-- SetGamePlayerControlCx(GetCameraAngleX(0))
-- SetGamePlayerControlCy(GetCameraAngleY(0))
-- SetGamePlayerControlCz(GetCameraAngleZ(0))
end
-- when camera overridden, do not allow movement
--
if ( GetCameraOverride() ~= 1 and GetCameraOverride() ~= 3 ) then