Files
DarkflameServer/dScripts/02_server/Map/General/SpinnersVol.h
Aaron Kimbrell 6ad3168659 feat(scripts): L_KILL_COUNTER_UTIL and the Fire Temple spinner volumes
The kill counter counts its spawn networks' deaths (or the events its config names) to max and back to min and fires
the limit events at their groups. L_BSPINNERS_VOL and L_DSPINNERS_VOL extend it: at max each player in the volume sees
the room's cinematic and 2 s later the rail quick build's network is activated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:32:10 -06:00

31 lines
1.2 KiB
C++

#pragma once
#include "KillCounterUtil.h"
// L_BSPINNERS_VOL.lua and L_DSPINNERS_VOL.lua: the Fire Temple's Blade Spinners and Dart Spinners room volumes, kill
// counters that, once all the room's enemies are dead, play a cinematic for each player in the volume and 2 s later
// activate the spawner network of the rail quick build out of the room
class SpinnersVol : public KillCounterUtil {
public:
SpinnersVol(const std::string& targetNetwork, const std::u16string& targetCine, const std::string& timerName)
: m_TargetNetwork(targetNetwork), m_TargetCine(targetCine), m_TimerName(timerName) {}
void OnTimerDone(Entity* self, std::string timerName) override;
protected:
void ProcessEvent(Entity* self, bool upperLimitReached) override;
private:
std::string m_TargetNetwork;
std::u16string m_TargetCine;
std::string m_TimerName;
};
// L_BSPINNERS_VOL.lua
class BSpinnersVol : public SpinnersVol {
public:
BSpinnersVol() : SpinnersVol("BladeSpinners_IRail", u"PopUpBlades_IRail_QBSpawn", "SpawnIceRail") {}
};
// L_DSPINNERS_VOL.lua
class DSpinnersVol : public SpinnersVol {
public:
DSpinnersVol() : SpinnersVol("DartSpinEarthRail", u"3Tier_EarthRailSpawn", "SpawnEarthRail") {}
};