Working on teleports

This commit is contained in:
Vladislav Khorev committed 2026-06-09 14:43:04 +03:00
1 parent b94f02bd77
commit 0ed7021e90
9 files changed
+60 -3

No files matched your search

+11
View File
@@ -359,6 +359,16 @@ namespace ZL
menuManager.tutorialShowTaxiHint();
};
locations["location_dorm"]->tutorialInteractiveObjectsLocked = true;
menuManager.tutorialUnlockInteractiveObjectsFunc = [this]()
{
if (locations["location_dorm"])
{
locations["location_dorm"]->tutorialInteractiveObjectsLocked = false;
}
};
menuManager.callTaxiFunc = [this]()
{
if (locations["location_dorm"])
@@ -386,6 +396,7 @@ namespace ZL
if (currentLocation->player) {
currentLocation->player->position = destPos;
currentLocation->player->setTarget(destPos);
currentLocation->player->stopInPlace();
currentLocation->player->facingAngle = destRotY;
currentLocation->player->targetFacingAngle = destRotY;
}