NoFly

Disables flying. Stay grounded, explore naturally.

File Details

NoFly-12.0.1.zip

  • R
  • Apr 12, 2026
  • 13.71 KB
  • 13
  • 12.0.1
  • Retail

File Name

NoFly-12.0.1.zip

Supported Versions

  • 12.0.1

# Changelog

## [1.0.0] — Initial Release
> WoW Patch 12.0.1

### Overview
First public release of NoFly. Stay grounded, explore naturally.

### Features

**Core — Fly Prevention**
- Detects the moment `IsFlying()` becomes true and immediately dismounts the player
- Dismount check runs every frame for near-instant response; the dismount action is throttled to 0.05s to prevent double-fires

**Glide Detection**
- Hooks `JumpOrAscendStart` to precisely track when the player intentionally presses Spacebar
- At the exact frame `IsFlying()` transitions, checks time since last spacebar press:
  - No recent jump (≥ 0.8s) → player walked off a ledge → mount glides naturally, no dismount
  - Recent jump (< 0.8s) → intentional takeoff → dismount fires immediately
- Glide state persists until the player lands (`IsFlying()` returns false)
- Can be toggled via the Settings panel (`Allow gliding off ledges`, on by default)

**On-Screen Notification**
- Displays a centre-screen message whenever flying is prevented: *"Flying disabled due to AddOn."*
- Subtitle: *"Enable flying with /nf or in AddOn settings."*
- Holds at full opacity for 0.5s, then fades out over 3.5s; auto-hides after 4.5s total

**Login Status Message**
- Prints current addon status to chat on every login, showing enabled state, glide setting, and chat message setting

**Settings Panel**
- Accessible via Escape → Settings → AddOns → NoFly, or `/nf config`
- Three toggles: Prevent Flying, Allow gliding off ledges, Show chat messages when flying is prevented
- Slash command reference listed at the bottom of the panel

**Slash Commands**
- `/nf` — toggle flying prevention on/off
- `/nf status` — print current status to chat
- `/nf config` — open the settings panel

**Saved Variables**
- `NoFlyDB.enabled` — master on/off toggle (default: `true`)
- `NoFlyDB.allowGlide` — glide exemption (default: `true`)
- `NoFlyDB.announce` — chat message on dismount (default: `false`)

**Addon Icon**
- Custom icon displayed in the WoW addon manager

**License**
- Released under the MIT License