A class that represents the aimbot functionality in the Xenon cheat engine. More...
#include <aimbot.hpp>
Public Member Functions | |
void | Init () override |
Will be executed when the component is initialized. | |
bool | IsTargetEmpty () const |
Check if the target is empty. Is the target that the aimbot will take aim at. | |
void | SetTarget (Vec2 &pos) |
Set the target for the aimbot. | |
bool | IsTargetReached () const |
Check if the target is reached. This function checks if the target is within a certain distance from the current position. | |
void | ResetTarget () |
Reset the target for the aimbot. This function clears the current target and sets it to an empty state. | |
void | AimTarget () |
Aim at the target (use SetTarget). This function calculates the aim direction based on the current target position and applies it to the aimbot. | |
void | Update () override |
Called every frame to update the aimbot functionality. This function checks if the aimbot is enabled and if so, it updates the target position and applies the aim direction. | |
Vec2 | GetTarget () const |
Get the Target object. | |
![]() | |
virtual void | UpdateCurrentTarget (TargetProfile *target) |
If Update loop enabled, this function will be executed every frame for each target. | |
virtual | ~CComponent ()=default |
Additional Inherited Members | |
![]() | |
std::shared_ptr< Xenon > | g_pXenon |
std::shared_ptr< XenonVariables > | g_pXenonVariables |
std::shared_ptr< XenonConfig > | g_pXenonConfigs |
A class that represents the aimbot functionality in the Xenon cheat engine.
void CAimbot::AimTarget | ( | ) |
Aim at the target (use SetTarget). This function calculates the aim direction based on the current target position and applies it to the aimbot.
|
inlineoverridevirtual |
Will be executed when the component is initialized.
Reimplemented from CComponent.
bool CAimbot::IsTargetEmpty | ( | ) | const |
Check if the target is empty. Is the target that the aimbot will take aim at.
bool CAimbot::IsTargetReached | ( | ) | const |
Check if the target is reached. This function checks if the target is within a certain distance from the current position.
void CAimbot::ResetTarget | ( | ) |
Reset the target for the aimbot. This function clears the current target and sets it to an empty state.
void CAimbot::SetTarget | ( | Vec2 & | pos | ) |
Set the target for the aimbot.
pos | The position of the target to set. |
|
overridevirtual |
Called every frame to update the aimbot functionality. This function checks if the aimbot is enabled and if so, it updates the target position and applies the aim direction.
Reimplemented from CComponent.