mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
Add multi-tier unstuck system with void fall detection
Replace broken hardcoded-coordinate unstuck with tiered fallbacks: last safe position > hearth bind > map spawn. Track safe positions only on real geometry, let player fall after 500ms with no ground, and auto-trigger unstuck after 5s of continuous falling.
This commit is contained in:
parent
8fee55f99f
commit
ef54f62df0
4 changed files with 102 additions and 33 deletions
|
|
@ -4494,14 +4494,14 @@ void GameHandler::useItemById(uint32_t itemId) {
|
|||
void GameHandler::unstuck() {
|
||||
if (unstuckCallback_) {
|
||||
unstuckCallback_();
|
||||
addSystemChatMessage("Unstuck: moved 5 units forward.");
|
||||
addSystemChatMessage("Unstuck: snapped upward. Use /unstuckgy for full teleport.");
|
||||
}
|
||||
}
|
||||
|
||||
void GameHandler::unstuckGy() {
|
||||
if (unstuckGyCallback_) {
|
||||
unstuckGyCallback_();
|
||||
addSystemChatMessage("Unstuck: moved to nearest graveyard.");
|
||||
addSystemChatMessage("Unstuck: teleported to safe location.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue