From 88bf4158096f6d5defbaf2687894c45f192d49dd Mon Sep 17 00:00:00 2001 From: Intop <78622918+Intoprelised@users.noreply.github.com> Date: Fri, 22 Oct 2021 08:11:29 -0400 Subject: [PATCH] Added Decent Rotations (#4535) * Added Decent Rotations * Add 0delay back in Co-authored-by: GodGamer029 <43895351+GodGamer029@users.noreply.github.com> --- Horion/Module/Modules/Killaura.cpp | 5 +++++ Horion/Module/Modules/Killaura.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Horion/Module/Modules/Killaura.cpp b/Horion/Module/Modules/Killaura.cpp index 17b6bdf09..3cf341d44 100644 --- a/Horion/Module/Modules/Killaura.cpp +++ b/Horion/Module/Modules/Killaura.cpp @@ -7,6 +7,7 @@ Killaura::Killaura() : IModule('P', Category::COMBAT, "Attacks entities around y this->registerIntSetting("delay", &this->delay, this->delay, 0, 20); this->registerBoolSetting("hurttime", &this->hurttime, this->hurttime); this->registerBoolSetting("AutoWeapon", &this->autoweapon, this->autoweapon); + this->registerBoolSetting("Rotations", &this->rotations, this->rotations); this->registerBoolSetting("Silent Rotations", &this->silent, this->silent); } @@ -112,6 +113,10 @@ void Killaura::onTick(C_GameMode* gm) { g_Data.getCGameMode()->attack(targetList[0]); } } + if (rotations) { + vec2_t angle = g_Data.getLocalPlayer()->getPos()->CalcAngle(*targetList[0]->getPos()); + gm->player->setRot(angle); + } Odelay = 0; } } diff --git a/Horion/Module/Modules/Killaura.h b/Horion/Module/Modules/Killaura.h index 2cf203ea1..c4d1a3983 100644 --- a/Horion/Module/Modules/Killaura.h +++ b/Horion/Module/Modules/Killaura.h @@ -12,6 +12,7 @@ class Killaura : public IModule bool autoweapon = false; void findWeapon(); bool silent = true; + bool rotations = false; public: bool isMobAura = false;