promotional bannermobile promotional banner

Deathsound

Plays a custom sound through the Master audio channel when your character dies.

File Details

DeathSound_1.0.5.zip

  • R
  • May 22, 2026
  • 621.67 KB
  • 12
  • 12.0.7+1
  • Retail

File Name

DeathSound_1.0.5.zip

Supported Versions

  • 12.0.7
  • 12.0.5

Changelog - 1.0.5

Added
- New sound files added to the Sounds folder

Fixed
- `buildOptionsPanel` was declared twice as a forward declaration — duplicate removed
- `UpdateModeUI` was called in `randomCB:OnClick` before it existed in scope — fixed via inner forward declaration inside `buildOptionsPanel`
- `StopCurrentSound` extracted as a dedicated function to avoid duplicated stop logic across all three play paths

Changed
- `UpdateDropdownText` / `UpdateDropdownTextLocal` pattern replaced with `dropdownRef` — a module-level reference to the dropdown frame, used directly in `PlaySelectedSound` via `UIDropDownMenu_SetText`
- `UpdateModeUI` moved to after all widgets are defined, ensuring all upvalues are valid at call time