mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
Implement Rocket Launch Lup Component
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user