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

Commit

Permalink
Added Decent Rotations (#4535)
Browse files Browse the repository at this point in the history
* Added Decent Rotations

* Add 0delay back in

Co-authored-by: GodGamer029 <[email protected]>
  • Loading branch information
Intoprelised and GodGamer029 authored Oct 22, 2021
1 parent d051dab commit 88bf415
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Horion/Module/Modules/Killaura.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
}
}
Expand Down
1 change: 1 addition & 0 deletions Horion/Module/Modules/Killaura.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Killaura : public IModule
bool autoweapon = false;
void findWeapon();
bool silent = true;
bool rotations = false;

public:
bool isMobAura = false;
Expand Down

1 comment on commit 88bf415

@Intoprelised
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Horion finnaly has non silent rotations

Please sign in to comment.