Unique challenge- no FOV change when flying

Discussion in 'Plugin Development' started by dibujaron, Nov 30, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    dibujaron

    Hello! For a couple of plugins that i'm working on it would be really nice if the player's FOV didn't change when I set them to fly with setAllowFlight() and setFlying(). Any thoughts or even better code samples of how to get this to happen?

    Thanks for your help! :)
     
  2. Offline

    xTrollxDudex

    dibujaron
    AFAIK, I'm not sure there's a method to get client settings, let me take a look at the protocol just to make sure

    Edit: Nope.
     
  3. Offline

    Maulss

    I don't think that's possible. FOV is controlled by the client itself, and the FOV amount is inherited from the client's local configuration file, which servers obviously have no access to, sorry.
     
  4. Offline

    The_Doctor_123

    Hmm.. well, you could use the slowness effect, correct? And to cancel out the slowness, set the fly speed.
     
  5. Offline

    Maulss

    I think that would work to a certain extend, but there's one (big) problem;
    When you use the slowness effect, the effect might not be exactly the negative power of FOV as the flight's positive power of FOV. For example, you can't really cancel out a +1 and a -1.2.
     
  6. Offline

    The_Doctor_123

    Yeah, but it's really the best you can do.
     
Thread Status:
Not open for further replies.

Share This Page