Jump to content
Sign in to follow this  
Malcain

3rd person zoom disable

Recommended Posts

Is it possible to disable 3rd person zooming?
We all know that "1st person vs 3rd person" debate, but Instead of forcing 1st person server-side, I would like to restrict 3rd person view a bit, so you cannot zoom behind the wall and spot people at 700m range. This could improve 3rd person pvp gameplay quality.

Share this post


Link to post
Share on other sites

Messed with it very quickly. Can't seem to override the zoom the simple way by returning true for override.

(findDisplay 46) displayAddEventHandler ["MouseButtonDown",
{
	params ["_display", "_button", "_xPos", "_yPos", "_shift", "_ctrl", "_alt"];
	_handled = false;
	if (_button isEqualTo 1 && cameraView isEqualTo "EXTERNAL") then
	{
		_handled = true;
		player switchCamera "INTERNAL";
	};
	_handled // zoom still works
}];

Switched to first upon zoom. Should get you started...

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×