[Question]How to change zoom with a mod

Discussion in 'Mod Discussions' started by greysuit, April 20, 2014.

  1. greysuit

    greysuit New Member

    Messages:
    29
    Likes Received:
    9
    I'm trying to make a mod that would change the zoom level in game. There is the function `api.camera.setZoom`, but that only offers 4 possible zoom distances. Apparently, mouse-wheel zoom is not handled by `engine.call`, but rather by coherent. Is there some way that I can do mouse-wheel type zoom through a mod?
  2. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    The only other way I can think of is to increase the key pan speed, smooth zoom out, and set the key pan speed back. Even that isn't very accurate and has some limitations. I think we are getting some camera api improvements, so more might be possible soon.
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    camera movement is mostly handled by native code without coherent at all for lag reasons. So not possible to mod as of now.
  4. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    This mod is now possible with the new camera api.
  5. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Yay

Share This Page