2021-12-05 17:54:36 +00:00
|
|
|
#include "BaseWavesGenericEnemy.h"
|
|
|
|
#include "dZoneManager.h"
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void BaseWavesGenericEnemy::OnStartup(Entity* self) {
|
|
|
|
self->SetNetworkVar<uint32_t>(u"points", GetPoints());
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void BaseWavesGenericEnemy::OnDie(Entity* self, Entity* killer) {
|
2023-07-17 22:55:33 +00:00
|
|
|
auto* zoneControlObject = Game::zoneManager->GetZoneControlObject();
|
2022-07-28 13:39:57 +00:00
|
|
|
if (zoneControlObject != nullptr) {
|
|
|
|
zoneControlObject->OnFireEventServerSide(killer, "Survival_Update", GetPoints());
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|