mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 23:43:34 +00:00
8d37d9b681
* Organize dScripts whitespace Remove parent scope Remove parent scope from initial setter Remove debug Remove helper programs * Fix NtImagimeterVisibility script Co-authored-by: aronwk-aaron <aronwk.aaron@gmail.com>
19 lines
600 B
C++
19 lines
600 B
C++
#include "FvMaelstromGeyser.h"
|
|
#include "SkillComponent.h"
|
|
|
|
void FvMaelstromGeyser::OnStartup(Entity* self) {
|
|
self->AddTimer(m_StartSkillTimerName, m_StartSkillTimerTime);
|
|
self->AddTimer(m_KillSelfTimerName, m_KillSelfTimerTime);
|
|
}
|
|
|
|
void FvMaelstromGeyser::OnTimerDone(Entity* self, std::string timerName) {
|
|
if (timerName == m_StartSkillTimerName) {
|
|
auto* skillComponent = self->GetComponent<SkillComponent>();
|
|
skillComponent->CalculateBehavior(m_SkillID, m_BehaviorID, LWOOBJID_EMPTY, true);
|
|
}
|
|
if (timerName == m_KillSelfTimerName) {
|
|
self->Smash(LWOOBJID_EMPTY, eKillType::SILENT);
|
|
}
|
|
}
|
|
|