Xenon
A framework for cheat development.
 
Loading...
Searching...
No Matches
CAimbot Class Reference

A class that represents the aimbot functionality in the Xenon cheat engine. More...

#include <aimbot.hpp>

Inheritance diagram for CAimbot:
Collaboration diagram for CAimbot:

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.
 
- Public Member Functions inherited from CComponent
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

- Public Attributes inherited from CComponent
std::shared_ptr< Xenong_pXenon
 
std::shared_ptr< XenonVariablesg_pXenonVariables
 
std::shared_ptr< XenonConfigg_pXenonConfigs
 

Detailed Description

A class that represents the aimbot functionality in the Xenon cheat engine.

Member Function Documentation

◆ AimTarget()

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.

◆ GetTarget()

Vec2 CAimbot::GetTarget ( ) const

Get the Target object.

Returns
Vec2

◆ Init()

void CAimbot::Init ( )
inlineoverridevirtual

Will be executed when the component is initialized.

Reimplemented from CComponent.

◆ IsTargetEmpty()

bool CAimbot::IsTargetEmpty ( ) const

Check if the target is empty. Is the target that the aimbot will take aim at.

Returns
true if the target is empty, meaning that the aimbot is not currently aiming at any target.
false if the target is not empty, meaning that the aimbot is currently aiming at a target.

◆ IsTargetReached()

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.

Returns
true if the target is reached, meaning that the aimbot has successfully aimed at the target.
false if the target is not reached, meaning that the aimbot is still aiming at the target.

◆ ResetTarget()

void CAimbot::ResetTarget ( )

Reset the target for the aimbot. This function clears the current target and sets it to an empty state.

◆ SetTarget()

void CAimbot::SetTarget ( Vec2 pos)

Set the target for the aimbot.

Parameters
posThe position of the target to set.

◆ Update()

void CAimbot::Update ( )
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.


The documentation for this class was generated from the following file: