Implement Rocket Launch Lup Component

This commit is contained in:
Aaron Kimbre
2022-05-03 15:05:29 -05:00
parent 427c4a8c33
commit bd3e8aee51
8 changed files with 94 additions and 208 deletions

View File

@ -19,21 +19,6 @@ void BaseConsoleTeleportServer::BaseOnMessageBoxResponse(Entity* self, Entity* s
if (button == 1)
{
if (self->GetLOT() == 14333)
{
auto* rocketLaunchComponent = self->GetComponent<RocketLaunchpadControlComponent>();
if (rocketLaunchComponent == nullptr)
{
return;
}
const auto& teleportZone = self->GetVar<std::u16string>(u"transferZoneID");
rocketLaunchComponent->Launch(player, LWOOBJID_EMPTY, std::stoi(GeneralUtils::UTF16ToWTF8(teleportZone)));
return;
}
GameMessages::SendSetStunned(player->GetObjectID(), PUSH, player->GetSystemAddress(), player->GetObjectID(),
true, true, true, true, true, true, true