Guest User

aimbot.h

a guest
Jun 10th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "../../Engine/Engine.h"
  4.  
  5. #define MAXBACKTRACKTICKS ((int)Settings::Aimbot::aim_Backtracktickrate)
  6. #define TICK_INTERVAL (Interfaces::GlobalVars()->interval_per_tick)
  7. #define TIME_TO_TICKS( dt ) ( (int)( 0.5f + (float)(dt) / TICK_INTERVAL ) )
  8.  
  9. class CTimer;
  10.  
  11. namespace Engine
  12. {
  13. class CMe;
  14. class CPlayer;
  15. }
  16.  
  17. using namespace Engine;
  18.  
  19. enum AIM_ATTACK_TYPE
  20. {
  21. AA_SHOTGUN,
  22. AA_SNIPER_PISTOL
  23. };
  24.  
  25. class CAimbot
  26. {
  27. public:
  28.  
  29. CAimbot();
  30. //[swap_lines]
  31. bool IsEnable();
  32.  
  33. int GetPlayerFov(CPlayer* pPlayer);
  34.  
  35. int GetBestTarget();
  36. int GetBestHitBox();
  37.  
  38. void OnRender();
  39.  
  40. void Aimbot();
  41. void AimbotSet();
  42.  
  43. void AutoPistol();
  44. void OnCreateMove(CUserCmd* pCmd, CMe* pLocal);
  45. //[/swap_lines]
  46. private:
  47.  
  48. CMe * m_pLocal;
  49. CUserCmd* m_pCmd;
  50.  
  51. int m_iBestPreTarget;
  52.  
  53. int m_iBestTarget;
  54. int m_iBestHitbox;
  55.  
  56. bool m_bClamp;
  57. bool m_bAttack;
  58. bool m_bAimShot;
  59. bool m_bTargetFov;
  60. bool m_bTargetChange;
  61. bool m_bAutoPistolEn;
  62.  
  63. CTimer* m_pShotDelay;
  64.  
  65. Vector m_vAimBestHitbox;
  66. Vector m_vAimBestHitboxScreen;
  67. };
Add Comment
Please, Sign In to add comment