Skip to content
This repository was archived by the owner on Dec 26, 2021. It is now read-only.

Commit 88bf415

Browse files
Added Decent Rotations (#4535)
* Added Decent Rotations * Add 0delay back in Co-authored-by: GodGamer029 <43895351+GodGamer029@users.noreply.github.com>
1 parent d051dab commit 88bf415

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Horion/Module/Modules/Killaura.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Killaura::Killaura() : IModule('P', Category::COMBAT, "Attacks entities around y
77
this->registerIntSetting("delay", &this->delay, this->delay, 0, 20);
88
this->registerBoolSetting("hurttime", &this->hurttime, this->hurttime);
99
this->registerBoolSetting("AutoWeapon", &this->autoweapon, this->autoweapon);
10+
this->registerBoolSetting("Rotations", &this->rotations, this->rotations);
1011
this->registerBoolSetting("Silent Rotations", &this->silent, this->silent);
1112
}
1213

@@ -112,6 +113,10 @@ void Killaura::onTick(C_GameMode* gm) {
112113
g_Data.getCGameMode()->attack(targetList[0]);
113114
}
114115
}
116+
if (rotations) {
117+
vec2_t angle = g_Data.getLocalPlayer()->getPos()->CalcAngle(*targetList[0]->getPos());
118+
gm->player->setRot(angle);
119+
}
115120
Odelay = 0;
116121
}
117122
}

Horion/Module/Modules/Killaura.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Killaura : public IModule
1212
bool autoweapon = false;
1313
void findWeapon();
1414
bool silent = true;
15+
bool rotations = false;
1516

1617
public:
1718
bool isMobAura = false;

0 commit comments

Comments
 (0)