mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-16 04:58:32 +00:00
cleanup logs, fix overrides, define LOTs in header
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "EntityManager.h"
|
||||
#include "GameMessages.h"
|
||||
|
||||
void HydrantBroken::OnStartup(Entity* self)
|
||||
void HydrantBroken::OnStartup(Entity* self)
|
||||
{
|
||||
self->AddTimer("playEffect", 1);
|
||||
|
||||
@@ -10,8 +10,6 @@ void HydrantBroken::OnStartup(Entity* self)
|
||||
|
||||
const auto bouncers = EntityManager::Instance()->GetEntitiesInGroup(hydrant);
|
||||
|
||||
Game::logger->Log("HydrantBroken", "Broken Hydrant spawned (%s)\n", hydrant.c_str());
|
||||
|
||||
for (auto* bouncer : bouncers)
|
||||
{
|
||||
self->SetVar<LWOOBJID>(u"bouncer", bouncer->GetObjectID());
|
||||
@@ -20,11 +18,11 @@ void HydrantBroken::OnStartup(Entity* self)
|
||||
|
||||
GameMessages::SendNotifyObject(bouncer->GetObjectID(), self->GetObjectID(), u"enableCollision", UNASSIGNED_SYSTEM_ADDRESS);
|
||||
}
|
||||
|
||||
|
||||
self->AddTimer("KillBroken", 25);
|
||||
}
|
||||
|
||||
void HydrantBroken::OnTimerDone(Entity* self, std::string timerName)
|
||||
void HydrantBroken::OnTimerDone(Entity* self, std::string timerName)
|
||||
{
|
||||
if (timerName == "KillBroken")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user