mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-08 15:54:22 +00:00
ai feedback
This commit is contained in:
@@ -62,11 +62,12 @@ PhantomPhysicsComponent::PhantomPhysicsComponent(Entity* parent, const int32_t c
|
|||||||
m_RespawnPos = GeneralUtils::TryParse(respawnPos, NiPoint3Constant::ZERO);
|
m_RespawnPos = GeneralUtils::TryParse(respawnPos, NiPoint3Constant::ZERO);
|
||||||
|
|
||||||
const auto respawnRot = GeneralUtils::SplitString(m_Parent->GetVarAsString(u"rspRot"), '\x1f');
|
const auto respawnRot = GeneralUtils::SplitString(m_Parent->GetVarAsString(u"rspRot"), '\x1f');
|
||||||
m_RespawnRot = NiQuaternion(
|
m_RespawnRot = respawnRot.size() >= 4 ? NiQuaternion(
|
||||||
GeneralUtils::TryParse(respawnRot[0], 1.0f),
|
GeneralUtils::TryParse(respawnRot[0], 1.0f),
|
||||||
GeneralUtils::TryParse(respawnRot[1], 0.0f),
|
GeneralUtils::TryParse(respawnRot[1], 0.0f),
|
||||||
GeneralUtils::TryParse(respawnRot[2], 0.0f),
|
GeneralUtils::TryParse(respawnRot[2], 0.0f),
|
||||||
GeneralUtils::TryParse(respawnRot[3], 0.0f));
|
GeneralUtils::TryParse(respawnRot[3], 0.0f))
|
||||||
|
: QuatUtils::IDENTITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// HF - RespawnPoints. Legacy respawn entity.
|
// HF - RespawnPoints. Legacy respawn entity.
|
||||||
|
|||||||
@@ -404,7 +404,7 @@ void TriggerComponent::HandleSetPhysicsVolumeEffect(Entity* targetEntity, std::v
|
|||||||
|
|
||||||
phantomPhysicsComponent->SetDirection(direction);
|
phantomPhysicsComponent->SetDirection(direction);
|
||||||
}
|
}
|
||||||
if (argArray.size() > 5) {
|
if (argArray.size() > 6) {
|
||||||
const uint32_t min = GeneralUtils::TryParse(argArray.at(6), 0);
|
const uint32_t min = GeneralUtils::TryParse(argArray.at(6), 0);
|
||||||
phantomPhysicsComponent->SetMin(min);
|
phantomPhysicsComponent->SetMin(min);
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System
|
|||||||
User* usr = UserManager::Instance()->GetUser(sysAddr);
|
User* usr = UserManager::Instance()->GetUser(sysAddr);
|
||||||
|
|
||||||
if (!usr) {
|
if (!usr) {
|
||||||
LOG("Failed to find a logged in user for (%llu), aborting GM: %4i, %s!", sysAddr.ToString(), messageID, StringifiedEnum::ToString(messageID).data());
|
LOG("Failed to find a logged in user for (%llu), aborting GM: %4i, %s!", objectID, messageID, StringifiedEnum::ToString(messageID).data());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ void StoryBoxInteractServer::OnUse(Entity* self, Entity* user) {
|
|||||||
flagMsg.Send();
|
flagMsg.Send();
|
||||||
if (!flagMsg.flag) {
|
if (!flagMsg.flag) {
|
||||||
auto* const character = user->GetCharacter();
|
auto* const character = user->GetCharacter();
|
||||||
if (character) user->GetCharacter()->SetPlayerFlag(boxFlag, true);
|
if (character) character->SetPlayerFlag(boxFlag, true);
|
||||||
GameMessages::SendFireEventClientSide(self->GetObjectID(), user->GetSystemAddress(), u"achieve", LWOOBJID_EMPTY, 0, -1, LWOOBJID_EMPTY);
|
GameMessages::SendFireEventClientSide(self->GetObjectID(), user->GetSystemAddress(), u"achieve", LWOOBJID_EMPTY, 0, -1, LWOOBJID_EMPTY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user