DarkflameServer/dScripts/AmSkullkinDrill.h

34 lines
886 B
C
Raw Normal View History

#pragma once
#include "CppScripts.h"
class AmSkullkinDrill : public CppScripts::Script
{
public:
2022-07-28 13:39:57 +00:00
void OnStartup(Entity* self) override;
2022-07-28 13:39:57 +00:00
Entity* GetStandObj(Entity* self);
2022-07-28 13:39:57 +00:00
void OnSkillEventFired(Entity* self, Entity* caster, const std::string& message) override;
2022-07-28 13:39:57 +00:00
void TriggerDrill(Entity* self);
2022-07-28 13:39:57 +00:00
void OnWaypointReached(Entity* self, uint32_t waypointIndex) override;
2022-07-28 13:39:57 +00:00
void OnUse(Entity* self, Entity* user) override;
2022-07-28 13:39:57 +00:00
void FreezePlayer(Entity* self, Entity* player, bool bFreeze);
2022-07-28 13:39:57 +00:00
void OnArrived(Entity* self, uint32_t waypointIndex);
2022-07-28 13:39:57 +00:00
void PlayCinematic(Entity* self);
2022-07-28 13:39:57 +00:00
void PlayAnim(Entity* self, Entity* player, const std::string& animName);
2022-07-28 13:39:57 +00:00
void OnHitOrHealResult(Entity* self, Entity* attacker, int32_t damage) override;
2022-07-28 13:39:57 +00:00
void OnTimerDone(Entity* self, std::string timerName) override;
private:
2022-07-28 13:39:57 +00:00
std::vector<int32_t> m_MissionsToUpdate = { 972, 1305, 1308 };
};