mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
fix copy past error
This commit is contained in:
parent
0e5a1c9721
commit
b3695c42b2
@ -1,8 +1,8 @@
|
|||||||
#include "AgFans.h"
|
#include "WhFans.h"
|
||||||
|
|
||||||
#include "RenderComponent.h"
|
#include "RenderComponent.h"
|
||||||
|
|
||||||
void AgFans::OnStartup(Entity* self) {
|
void WhFans::OnStartup(Entity* self) {
|
||||||
self->SetVar<bool>(u"alive", true);
|
self->SetVar<bool>(u"alive", true);
|
||||||
self->SetVar<bool>(u"on", false);
|
self->SetVar<bool>(u"on", false);
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ void AgFans::OnStartup(Entity* self) {
|
|||||||
renderComponent->PlayEffect(495, u"fanOn", "fanOn");
|
renderComponent->PlayEffect(495, u"fanOn", "fanOn");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AgFans::ToggleFX(Entity* self, bool hit) {
|
void WhFans::ToggleFX(Entity* self, bool hit) {
|
||||||
std::string fanGroup = self->GetGroups()[0];
|
std::string fanGroup = self->GetGroups()[0];
|
||||||
std::vector<Entity*> fanVolumes = EntityManager::Instance()->GetEntitiesInGroup(fanGroup);
|
std::vector<Entity*> fanVolumes = EntityManager::Instance()->GetEntitiesInGroup(fanGroup);
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ void AgFans::ToggleFX(Entity* self, bool hit) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AgFans::OnFireEventServerSide(Entity *self, Entity *sender, std::string args, int32_t param1, int32_t param2,
|
void WhFans::OnFireEventServerSide(Entity *self, Entity *sender, std::string args, int32_t param1, int32_t param2,
|
||||||
int32_t param3) {
|
int32_t param3) {
|
||||||
if (args.length() == 0 || !self->GetVar<bool>(u"alive")) return;
|
if (args.length() == 0 || !self->GetVar<bool>(u"alive")) return;
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ void AgFans::OnFireEventServerSide(Entity *self, Entity *sender, std::string arg
|
|||||||
ToggleFX(self, false);
|
ToggleFX(self, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AgFans::OnDie(Entity* self, Entity* killer) {
|
void WhFans::OnDie(Entity* self, Entity* killer) {
|
||||||
if (self->GetVar<bool>(u"on")) {
|
if (self->GetVar<bool>(u"on")) {
|
||||||
ToggleFX(self, true);
|
ToggleFX(self, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user