mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-04 17:54:01 +00:00
Organize dScripts (#814)
* 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>
This commit is contained in:
15
dScripts/02_server/Enemy/Survival/AgSurvivalMech.cpp
Normal file
15
dScripts/02_server/Enemy/Survival/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;
|
||||
}
|
7
dScripts/02_server/Enemy/Survival/AgSurvivalMech.h
Normal file
7
dScripts/02_server/Enemy/Survival/AgSurvivalMech.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
#include "BaseWavesGenericEnemy.h"
|
||||
|
||||
class AgSurvivalMech : public BaseWavesGenericEnemy {
|
||||
void OnStartup(Entity* self) override;
|
||||
uint32_t GetPoints() override;
|
||||
};
|
15
dScripts/02_server/Enemy/Survival/AgSurvivalSpiderling.cpp
Normal file
15
dScripts/02_server/Enemy/Survival/AgSurvivalSpiderling.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "AgSurvivalSpiderling.h"
|
||||
#include "BaseCombatAIComponent.h"
|
||||
|
||||
void AgSurvivalSpiderling::OnStartup(Entity* self) {
|
||||
BaseWavesGenericEnemy::OnStartup(self);
|
||||
|
||||
auto* combatAI = self->GetComponent<BaseCombatAIComponent>();
|
||||
if (combatAI != nullptr) {
|
||||
combatAI->SetStunImmune(true);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t AgSurvivalSpiderling::GetPoints() {
|
||||
return 300;
|
||||
}
|
7
dScripts/02_server/Enemy/Survival/AgSurvivalSpiderling.h
Normal file
7
dScripts/02_server/Enemy/Survival/AgSurvivalSpiderling.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
#include "BaseWavesGenericEnemy.h"
|
||||
|
||||
class AgSurvivalSpiderling : public BaseWavesGenericEnemy {
|
||||
void OnStartup(Entity* self) override;
|
||||
uint32_t GetPoints() override;
|
||||
};
|
@@ -0,0 +1,5 @@
|
||||
#include "AgSurvivalStromling.h"
|
||||
|
||||
uint32_t AgSurvivalStromling::GetPoints() {
|
||||
return 100;
|
||||
}
|
6
dScripts/02_server/Enemy/Survival/AgSurvivalStromling.h
Normal file
6
dScripts/02_server/Enemy/Survival/AgSurvivalStromling.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
#include "BaseWavesGenericEnemy.h"
|
||||
|
||||
class AgSurvivalStromling : public BaseWavesGenericEnemy {
|
||||
uint32_t GetPoints() override;
|
||||
};
|
5
dScripts/02_server/Enemy/Survival/CMakeLists.txt
Normal file
5
dScripts/02_server/Enemy/Survival/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_SURVIVAL
|
||||
"AgSurvivalStromling.cpp"
|
||||
"AgSurvivalMech.cpp"
|
||||
"AgSurvivalSpiderling.cpp"
|
||||
PARENT_SCOPE)
|
Reference in New Issue
Block a user