Peter200lx / ToolBelt

Play Minecraft with a wide assortment of tools at your side.
9 stars 5 forks source link

Leap tool config realatively useless at affecting leap size #17

Open ikkyblob opened 12 years ago

ikkyblob commented 12 years ago

One slightly glitchy thing is that no matter what the settings are for the leap tool, you still get shot high/far if you look anywhere above the horizon. Because of this, I would not be able to use it for flying characters on my RP server without fear of it being incredibly overpowered/unrealistic. After all, one doesn't shoot fifty meters in the air with a single flap of their wings. Could you please make the existing variables in the config or new ones have a bit more to do with things other than leaps with your view at the horizon and lower? It would be an amazing asset and could also be helpful for those on building servers who want a donator group who can fly, but not in an incredibly powerful way. I know this plugin is not an RP plugin, but the leap tool is a perfect way to emulate actual non-gliding winged flight.

Peter200lx commented 12 years ago

Possibly, I have wanted to investigate more intelligent leap control. Could you describe what you would want to have happen in different situations? What direction (vertical/horizontal) and how strongly would you be thrust if you clicked at... ...straight down? ...45deg down? ...at the horizon? ...45deg up? ...straight up? and other variations there-of.

If we can work out a solid definition of what would be useful I could try and design a more advanced algorithm then what it has currently.

ikkyblob commented 12 years ago

Currently, looking strait down works fine. I believe the thrust should be a vertical height limit, so no matter which way you face you cannot go above the height attained when looking strait down. I think that there should also be a horizontal limit of sorts. Basically, you would shoot in the same way looking up or down, its the angle in relation to the horizon that counts. At a 45 degree angle, you would be fired with half the upward force of a 90 degree (striat up or down) and half the forward force of a 0 degree angle (looking at the horizon). I'm thinking using sine and cosine might work, but perhaps at a lessened rate. Also, there should be a vertical minimum so you don't go speeding across the ground without any vertical lift. Perhaps there should be minimums on both (though looking strait up or down should negate the horizontal minimum) and the thrust at a 45 degree angle is halfway between the maximum and minimum, thus making the change more gradual, rather than just cutting off at the minimum. http://img405.imageshack.us/img405/7431/angles.png there is the url to an image of some examples of leap angles and their distances in relation to each other. The highest one could be seen as just short of the vertical height limit and the farthest one could be seen as just short of the horizontal distance limit.