mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
only get mast name once
This commit is contained in:
parent
ea745951a6
commit
86e3c5c946
@ -43,11 +43,12 @@ void MastTeleport::OnTimerDone(Entity* self, std::string timerName) {
|
||||
GameMessages::SendTeleport(playerId, position, rotation, player->GetSystemAddress(), true);
|
||||
|
||||
// Hacky fix for odd rotations
|
||||
if (self->GetVar<std::u16string>(u"MastName") == u"Elephant") {
|
||||
auto mastName = self->GetVar<std::u16string>(u"MastName");
|
||||
if (mastName == u"Elephant") {
|
||||
GameMessages::SendOrientToAngle(playerId, true, (M_PI / 180) * 140.0f, player->GetSystemAddress());
|
||||
} else if (self->GetVar<std::u16string>(u"MastName") == u"Jail") {
|
||||
} else if (mastName == u"Jail") {
|
||||
GameMessages::SendOrientToAngle(playerId, true, (M_PI / 180) * 100.0f, player->GetSystemAddress());
|
||||
} else if (self->GetVar<std::u16string>(u"MastName") == u""){
|
||||
} else if (mastName == u""){
|
||||
GameMessages::SendOrientToAngle(playerId, true, (M_PI / 180) * 203.0f, player->GetSystemAddress());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user