mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
2ca61c3e57
* rigid as heck * abstract physics creation to separate function * loading Update FvRacePillarDServer.cpp consolidate abcd pillar logic modularization Update SimplePhysicsComponent.cpp Update EntityManager.cpp Update MovingPlatformComponent.cpp still need another pass * geiser works * columns working finally * consolidate logic * constiness * Update PhantomPhysicsComponent.cpp * Update PhysicsComponent.cpp * revert testing code * add versions info --------- Co-authored-by: Aaron Kimbre <aronwk.aaron@gmail.com>
16 lines
490 B
C++
16 lines
490 B
C++
#include "RaceFireballs.h"
|
|
#include "SkillComponent.h"
|
|
|
|
void RaceFireballs::OnStartup(Entity* self) {
|
|
self->AddTimer("fire", GeneralUtils::GenerateRandomNumber<float>(3.0f, 10.0f));
|
|
}
|
|
|
|
void RaceFireballs::OnTimerDone(Entity* self, std::string timerName) {
|
|
if (timerName == "fire") {
|
|
auto* skillComponent = self->GetComponent<SkillComponent>();
|
|
if (skillComponent) skillComponent->CastSkill(894);
|
|
self->AddTimer("fire", GeneralUtils::GenerateRandomNumber<float>(3.0f, 10.0f));
|
|
|
|
}
|
|
}
|