mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-27 00:56:30 +00:00
fix: avery npc not having animations anymore (#1751)
* for avery * remove label
This commit is contained in:
parent
b702843011
commit
d104559cc4
@ -16,6 +16,7 @@ void DLUVanityTeleportingObject::OnStartup(Entity* self) {
|
|||||||
|
|
||||||
void DLUVanityTeleportingObject::OnTimerDone(Entity* self, std::string timerName) {
|
void DLUVanityTeleportingObject::OnTimerDone(Entity* self, std::string timerName) {
|
||||||
if (timerName == "setupTeleport") {
|
if (timerName == "setupTeleport") {
|
||||||
|
RenderComponent::PlayAnimation(self, u"interact");
|
||||||
GameMessages::SendPlayFXEffect(self->GetObjectID(), 6478, u"teleportBeam", "teleportBeam");
|
GameMessages::SendPlayFXEffect(self->GetObjectID(), 6478, u"teleportBeam", "teleportBeam");
|
||||||
GameMessages::SendPlayFXEffect(self->GetObjectID(), 6478, u"teleportRings", "teleportRings");
|
GameMessages::SendPlayFXEffect(self->GetObjectID(), 6478, u"teleportRings", "teleportRings");
|
||||||
|
|
||||||
@ -27,7 +28,6 @@ void DLUVanityTeleportingObject::OnTimerDone(Entity* self, std::string timerName
|
|||||||
} else if (timerName == "teleport") {
|
} else if (timerName == "teleport") {
|
||||||
std::vector<VanityObjectLocation>& locations = m_Object->m_Locations[Game::server->GetZoneID()];
|
std::vector<VanityObjectLocation>& locations = m_Object->m_Locations[Game::server->GetZoneID()];
|
||||||
|
|
||||||
selectLocation:
|
|
||||||
VanityObjectLocation& newLocation = locations[GeneralUtils::GenerateRandomNumber<size_t>(0, locations.size() - 1)];
|
VanityObjectLocation& newLocation = locations[GeneralUtils::GenerateRandomNumber<size_t>(0, locations.size() - 1)];
|
||||||
|
|
||||||
// try to get not the same position, but if we get the same one twice, it's fine
|
// try to get not the same position, but if we get the same one twice, it's fine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user