mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-20 03:30:18 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
15
dScripts/AgSurvivalMech.cpp
Normal file
15
dScripts/AgSurvivalMech.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "AgSurvivalMech.h"
|
||||
#include "DestroyableComponent.h"
|
||||
|
||||
void AgSurvivalMech::OnStartup(Entity *self) {
|
||||
BaseWavesGenericEnemy::OnStartup(self);
|
||||
|
||||
auto* destroyable = self->GetComponent<DestroyableComponent>();
|
||||
if (destroyable != nullptr) {
|
||||
destroyable->SetFaction(4);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t AgSurvivalMech::GetPoints() {
|
||||
return 200;
|
||||
}
|
||||
Reference in New Issue
Block a user