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:
David Markowitz
2022-11-03 10:57:54 -07:00
committed by GitHub
parent b974eed8f5
commit 8d37d9b681
567 changed files with 886 additions and 252 deletions

View 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;
}

View File

@@ -0,0 +1,7 @@
#pragma once
#include "BaseWavesGenericEnemy.h"
class AgSurvivalMech : public BaseWavesGenericEnemy {
void OnStartup(Entity* self) override;
uint32_t GetPoints() override;
};

View 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;
}

View File

@@ -0,0 +1,7 @@
#pragma once
#include "BaseWavesGenericEnemy.h"
class AgSurvivalSpiderling : public BaseWavesGenericEnemy {
void OnStartup(Entity* self) override;
uint32_t GetPoints() override;
};

View File

@@ -0,0 +1,5 @@
#include "AgSurvivalStromling.h"
uint32_t AgSurvivalStromling::GetPoints() {
return 100;
}

View File

@@ -0,0 +1,6 @@
#pragma once
#include "BaseWavesGenericEnemy.h"
class AgSurvivalStromling : public BaseWavesGenericEnemy {
uint32_t GetPoints() override;
};

View File

@@ -0,0 +1,5 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_SURVIVAL
"AgSurvivalStromling.cpp"
"AgSurvivalMech.cpp"
"AgSurvivalSpiderling.cpp"
PARENT_SCOPE)