2022-05-18 00:12:43 +00:00
|
|
|
#pragma once
|
|
|
|
#include "CppScripts.h"
|
|
|
|
|
|
|
|
class ActMine : public CppScripts::Script {
|
|
|
|
public:
|
2022-05-31 05:24:55 +00:00
|
|
|
void OnStartup(Entity* self) override;
|
2022-05-18 00:12:43 +00:00
|
|
|
void OnRebuildNotifyState(Entity* self, eRebuildState state) override;
|
2022-05-31 05:24:55 +00:00
|
|
|
void OnProximityUpdate(Entity* self, Entity* entering, std::string name, std::string status) override;
|
|
|
|
void OnTimerDone(Entity* self, std::string timerName) override;
|
2022-05-18 00:12:43 +00:00
|
|
|
private:
|
|
|
|
int MAX_WARNINGS = 3;
|
|
|
|
float MINE_RADIUS = 10.0;
|
|
|
|
float TICK_TIME = 0.25;
|
|
|
|
float BLOWED_UP_TIME = 0.1;
|
|
|
|
uint32_t SKILL_ID = 317;
|
|
|
|
uint32_t BEHAVIOR_ID = 3719;
|
|
|
|
};
|
|
|
|
|