Added script for Avant Gardens Survival buff station

This commit is contained in:
EmosewaMC 2022-01-20 03:20:24 -08:00
parent 3bb1491f09
commit 2a5f3b8072
2 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,7 @@ void BaseSurvivalServer::StartWaves(Entity *self) {
self->SetVar<bool>(FirstTimeDoneVariable, true); self->SetVar<bool>(FirstTimeDoneVariable, true);
self->SetVar<std::string>(MissionTypeVariable, state.players.size() == 1 ? "survival_time_solo" : "survival_time_team"); self->SetVar<std::string>(MissionTypeVariable, state.players.size() == 1 ? "survival_time_solo" : "survival_time_team");
ActivateSpawnerNetwork(spawnerNetworks.rewardNetworks);
ActivateSpawnerNetwork(spawnerNetworks.smashNetworks); ActivateSpawnerNetwork(spawnerNetworks.smashNetworks);
self->SetNetworkVar<bool>(WavesStartedVariable, true); self->SetNetworkVar<bool>(WavesStartedVariable, true);
self->SetNetworkVar<std::string>(StartWaveMessageVariable, "Start!"); self->SetNetworkVar<std::string>(StartWaveMessageVariable, "Start!");

View File

@ -62,6 +62,7 @@
#include "VeMech.h" #include "VeMech.h"
#include "VeMissionConsole.h" #include "VeMissionConsole.h"
#include "VeEpsilonServer.h" #include "VeEpsilonServer.h"
#include "AgSurvivalBuffStation.h"
// NS Scripts // NS Scripts
#include "NsModularBuild.h" #include "NsModularBuild.h"
@ -319,6 +320,8 @@ CppScripts::Script* CppScripts::GetScript(Entity* parent, const std::string& scr
script = new BaseEnemyMech(); script = new BaseEnemyMech();
else if (scriptName == "scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua") else if (scriptName == "scripts\\zone\\AG\\L_ZONE_AG_SURVIVAL.lua")
script = new ZoneAgSurvival(); script = new ZoneAgSurvival();
else if (scriptName == "scripts\\02_server\\Objects\\L_BUFF_STATION_SERVER.lua")
script = new AgSurvivalBuffStation();
else if (scriptName == "scripts\\ai\\AG\\L_AG_BUS_DOOR.lua") else if (scriptName == "scripts\\ai\\AG\\L_AG_BUS_DOOR.lua")
script = new AgBusDoor(); script = new AgBusDoor();
else if (scriptName == "scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua") else if (scriptName == "scripts\\02_server\\Equipment\\L_MAESTROM_EXTRACTICATOR_SERVER.lua")