1. #1

    Minimum camera zoom

    Does anyone know if there is a way to stop the camera ever going into first person? i.e. so that the camera zoom just before first person is the minimum?

  2. #2
    This should prevent you from zooming into first person view, unless you scroll very fast
    Code:
    local oldZoomIn = CameraZoomIn
    
    function CameraZoomIn(v)
    	if GetCameraZoom() > 1.8 then
    		oldZoomIn(v)
    	end
    end

    You can turn this into an addon with https://addon.bool.no/ or the REHack addon
    Last edited by Ketho; 2019-08-13 at 09:42 AM.

  3. #3
    Quote Originally Posted by Ketho View Post
    This should prevent you from zooming into first person view, unless you scroll very fast
    Code:
    local oldZoomIn = CameraZoomIn
    
    function CameraZoomIn(v)
    	if GetCameraZoom() > 1.7 then
    		oldZoomIn(v)
    	end
    end

    You can turn this into an addon with https://addon.bool.no/ or the REHack addon
    Thx. I tried this with rehack and it made the scrolling freeze sporadically and constantly. Any idea what that might be?

  4. #4
    Quote Originally Posted by Ketho View Post
    --snip--
    won't replace the in-game function taint?

    - - - Updated - - -

    Quote Originally Posted by Kaitain View Post
    Thx. I tried this with rehack and it made the scrolling freeze sporadically and constantly. Any idea what that might be?
    Don't use it since replacing in-game function is extremely harmful and should be avoided.

  5. #5
    Quote Originally Posted by Kaitain View Post
    Thx. I tried this with rehack and it made the scrolling freeze sporadically and constantly. Any idea what that might be?

    Works fine for me with rehack, are you sure you are not accidentally running this script multiple times? Otherwise try http://addon.bool.no/

    Note that I changed the distance to 1.8 instead, up from 1.7

    Quote Originally Posted by ruwshtyb View Post
    won't replace the in-game function taint?
    [...]
    Don't use it since replacing in-game function is extremely harmful and should be avoided.

    It won't taint the UI since it doesn't return or call anything else. It's how MaxCam works which has thousands of users
    Last edited by Ketho; 2019-08-13 at 09:43 AM.

  6. #6
    Neither method works for me, and the instructions aren't complicated enough to get wrong. I assume there is some other variable or conflict with something my UI has but yours doesn't (or vice versa)? But don't worry about it. Not super important. Thanks for your help anyways.

  7. #7
    Thank you for mentioning REHack, I don't know about this useful addon.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •