mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-09 14:27:10 +00:00
tabs and log
This commit is contained in:
parent
67615d5688
commit
1e85ae2035
@ -10,18 +10,19 @@ void RockHydrantBroken::OnStartup(Entity* self)
|
|||||||
|
|
||||||
const auto bouncers = EntityManager::Instance()->GetEntitiesInGroup(hydrant);
|
const auto bouncers = EntityManager::Instance()->GetEntitiesInGroup(hydrant);
|
||||||
|
|
||||||
Game::logger->Log("RockHydrantBroken", "Broken Hydrant spawned (%s)\n", hydrant.c_str());
|
Game::logger->Log("RockHydrantBroken", "Broken Rock Hydrant spawned (%s)\n", hydrant.c_str());
|
||||||
|
|
||||||
for (auto* bouncer : bouncers)
|
for (auto* bouncer : bouncers)
|
||||||
{
|
{
|
||||||
self->SetVar<LWOOBJID>(u"bouncer", bouncer->GetObjectID());
|
self->SetVar<LWOOBJID>(u"bouncer", bouncer->GetObjectID());
|
||||||
|
Game::logger->Log("RockHydrantBroken", "Activate Bouncer (%s)\n", bouncer.c_str());
|
||||||
|
|
||||||
GameMessages::SendBouncerActiveStatus(bouncer->GetObjectID(), true, UNASSIGNED_SYSTEM_ADDRESS);
|
GameMessages::SendBouncerActiveStatus(bouncer->GetObjectID(), true, UNASSIGNED_SYSTEM_ADDRESS);
|
||||||
|
|
||||||
GameMessages::SendNotifyObject(bouncer->GetObjectID(), self->GetObjectID(), u"enableCollision", UNASSIGNED_SYSTEM_ADDRESS);
|
GameMessages::SendNotifyObject(bouncer->GetObjectID(), self->GetObjectID(), u"enableCollision", UNASSIGNED_SYSTEM_ADDRESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
self->AddTimer("KillBroken", 25);
|
self->AddTimer("KillBroken", 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RockHydrantBroken::OnTimerDone(Entity* self, std::string timerName)
|
void RockHydrantBroken::OnTimerDone(Entity* self, std::string timerName)
|
||||||
|
@ -11,6 +11,8 @@ void WhFans::OnStartup(Entity* self) {
|
|||||||
|
|
||||||
void WhFans::ToggleFX(Entity* self, bool hit) {
|
void WhFans::ToggleFX(Entity* self, bool hit) {
|
||||||
std::string fanGroup = self->GetGroups()[0];
|
std::string fanGroup = self->GetGroups()[0];
|
||||||
|
|
||||||
|
Game::logger->Log("WhFans", "Toggling FX for Fan Group(%s)\n", fanGroup.c_str());
|
||||||
std::vector<Entity*> fanVolumes = EntityManager::Instance()->GetEntitiesInGroup(fanGroup);
|
std::vector<Entity*> fanVolumes = EntityManager::Instance()->GetEntitiesInGroup(fanGroup);
|
||||||
|
|
||||||
auto renderComponent = self->GetComponent<RenderComponent>();
|
auto renderComponent = self->GetComponent<RenderComponent>();
|
||||||
|
Loading…
Reference in New Issue
Block a user