====== Flight ======
^ Flight ^^
|{{ :flight.webp?500 |Using Flight.}}||
^Type|[[:Hack]]|
^Category|[[Movement]]|
^In-game description|"Allows you to fly.\\ \\ **WARNING:** You will take fall damage if you don't use NoFall."|
^[[:keybinds#default_keybinds|Default keybind]]|G|
^Source code|[[w7src>net/wurstclient/hacks/FlightHack.java]]|
The Flight hack allows the user to fly around and reach places they normally couldn't. As the in-game description says, Flight should be used together with [[NoFall]] to avoid taking fall damage.
Servers where flying is not enabled will attempt to kick the user for using Flight, but they can only detect that Flight is being used if the player isn't moving down for at least 4 seconds (80 ticks). Every time the player moves down by at least ~0.032m((The exact value is a bit lower, but it doesn't matter due to rounding errors.)), the four-second timer starts over again. With a bit of practice or use of the Anti-Kick feature, it is possible to fly around indefinitely without getting kicked.
===== Settings =====
==== Horizontal Speed ====
^ Horizontal Speed ^^
^Type|Slider|
^In-game description|(none)|
^Default value|1|
^Minimum|0.05|
^Maximum|10|
^Increment|0.05|
This setting determines how fast the Flight hack moves the player horizontally when the W, A, S or D keys are pressed.
==== Vertical Speed ====
^ Vertical Speed ^^
^Type|Slider|
^In-game description|"**WARNING:** Setting this too high can cause fall damage, even with NoFall."|
^Default value|1|
^Minimum|0.05|
^Maximum|5|
^Increment|0.05|
This setting determines how fast the Flight hack moves the player up and down when the jump or sneak key is pressed.
==== Slow sneaking ====
^ Slow sneaking ^^
^Type|Checkbox|
^In-game description|"Reduces your horizontal speed while you are sneaking to prevent you from glitching out."|
^Default value|checked|
When this checkbox is checked, Flight will reduce the player's horizontal speed to 0.85 while the player is sneaking. This prevents the player from rubber-banding back and forth when flying forward and down at the same time.
==== Anti-Kick ====
^ Anti-Kick ^^
^Type|Checkbox|
^In-game description|"Makes you fall a little bit every now and then to prevent you from getting kicked."|
^Default value|not checked|
When this checkbox is checked, Flight will make the player fall for a short time, at an interval determined by the "Anti-Kick Interval" setting and a distance determined by the "Anti-Kick Distance" setting. This prevents the player from getting kicked with the message "Flying is not enabled on this server".
==== Anti-Kick Interval ====
^ Anti-Kick Interval ^^
^Type|Slider|
^In-game description|"How often Anti-Kick should prevent you from getting kicked.\\ Most servers will kick you after 80 ticks."|
^Default value|30 ticks|
^Minimum|5 ticks|
^Maximum|80 ticks|
^Increment|1 tick|
This setting determines how often Flight will make the player fall. The default value of 30 ticks means that the player will fall every 1.5 seconds, which is rather conservative since most servers will wait as much as 80 ticks (4 seconds) before kicking the player.
As long as the server is not lagging too badly, values as high as 70 ticks (3.5 seconds) are still safe to use and will be much less noticeable to the user.
==== Anti-Kick Distance ====
^ Anti-Kick Distance ^^
^Type|Slider|
^In-game description|"How far Anti-Kick should make you fall.\\ Most servers require at least 0.032m to stop you from getting kicked."|
^Default value|0.07m (7cm)|
^Minimum|0.01m (1cm)|
^Maximum|0.2m (20cm)|
^Increment|0.001m (1mm)|
This setting determines how far Flight will make the player fall when the "Anti-Kick" setting is enabled. The default value of 0.07m (7cm) is again rather conservative, since most servers will only require a fall distance of 0.032m (3.2cm) to prevent the player from getting kicked.
Decreasing this value to about 0.034m (3.4cm) will make the Anti-Kick feature less noticeable to the user and still be safe to use on most servers. However, some users may prefer the noticeable jump caused by the default value, as it provides a visual indication that the Anti-Kick feature is working correctly.
===== Changes =====
^Version^Changes^
|[[update:Wurst 1.1 Beta]]|Added Flight.|
|[[update:Wurst 1.5 Beta]]|Added a Flight Speed slider.|
|[[update:Wurst 1.15]]|Added Flight bypass.|
|[[update:Wurst 2.0]]|Flight bypass now allows you to fly back up to the Y level where you started.|
|:::|Flight and [[Jetpack]] will now disable each other.|
|[[update:Wurst 2.1]]|Fixed a problem with the Flight bypass.|
|[[update:Wurst 2.19]]|Added a "Flying is not enabled" bypass to Flight and [[Jetpack]].|
|[[update:Wurst 2.24]]|Fixed Flight being slowed down by water.|
|[[update:Wurst 3.0pre2]]|Removed Flight Kick Bypass (Minecraft 1.9 patched it).|
|[[update:Wurst 5.4]]|Fixed Flight being slowed down by water.|
|[[update:Wurst 6.5]]|Added a Mode setting to Flight.|
|[[update:Wurst 7.0pre1]]|Temporarily removed Flight.|
|[[update:Wurst 7.0pre4]]|Re-added Flight.|
|[[update:Wurst 7.22]]|Fixed a typo in the Flight and [[CreativeFlight]] descriptions. (Thanks to [[gh>pcm1k]]!)|
|[[update:Wurst 7.29]]|Added "Anti-Kick" and "Anti-Kick Interval" settings to Flight and [[CreativeFlight]]. (Thanks to [[gh>isjerryxiao]]!)|
|:::|Split Flight's "Speed" slider into "Horizontal Speed" and "Vertical Speed".|
|:::|Added a "Slow sneaking" checkbox to Flight.|
|[[update:Wurst 7.31]]|Added an "Anti-Kick Distance" setting to Flight and [[CreativeFlight]]. Determines how far the Anti-Kick should make you fall.|
|:::|Fixed Flight's "Slow sneaking" setting not actually turning off when the checkbox is unchecked.|
{{tag>flight}}