Aim service component. More...
#include <aim_service.hpp>
Public Member Functions | |
void | KeepRecoil () |
Keep the recoil. | |
void | Aim (Vec2 &target) |
Aim at a target. | |
void | Spin2D () |
Spin 2D. | |
void | Spin3D () |
Spin 3D. | |
void | Update () override |
Update the aim service. | |
![]() | |
virtual void | Init () |
Will be executed when the component is initialized. | |
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 |
Aim service component.
This component is responsible for aiming at a target.
void CAimService::Aim | ( | Vec2 & | target | ) |
Aim at a target.
target | Target to aim at. |
void CAimService::KeepRecoil | ( | ) |
Keep the recoil.
void CAimService::Spin2D | ( | ) |
Spin 2D.
void CAimService::Spin3D | ( | ) |
Spin 3D.
|
overridevirtual |
Update the aim service.
Reimplemented from CComponent.