Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. //nigger/byrias/nigger
  2. #include "Interfaces.h"
  3. #include "Menu.h"
  4. #include "Resolve.h"
  5. #include "MiscDefinitions.h"
  6. #include "Hooks.h"
  7. #include "RageBot.h"
  8. #pragma once
  9.  
  10.  
  11. struct CTickRecord;
  12.  
  13. struct CValidTick {
  14. explicit operator CTickRecord() const;
  15.  
  16. explicit operator bool() const noexcept {
  17. return m_flSimulationTime > 0.f;
  18. }
  19.  
  20. float m_flPitch = 0.f;
  21. float m_flYaw = 0.f;
  22. float m_flSimulationTime = 0.f;
  23. CBaseEntity* m_pEntity = nullptr;
  24. };
  25.  
  26. struct CTickRecord {
  27. CTickRecord() {}
  28. CTickRecord(CBaseEntity* ent) {
  29. m_flLowerBodyYawTarget = ent->GetLowerBodyYawTarget();
  30. m_angEyeAngles = ent->GetEyeAngles();
  31. m_flCycle = ent->GetCycle();
  32. m_flSimulationTime = ent->GetSimulationTime();
  33. m_nSequence = ent->GetSequence();
  34. m_vecOrigin = ent->GetOrigin();
  35. m_vecVelocity = ent->GetVelocity();
  36. m_flPoseParameter = ent->GetPoseParameters();
  37. m_angAbsAngles = ent->GetAbsAngles();
  38. m_vecAbsOrigin = ent->GetAbsOrigin();
  39. tickcount = 0;
  40. }
  41.  
  42. explicit operator bool() const noexcept {
  43. return m_flSimulationTime > 0.f;
  44. }
  45.  
  46. bool operator>(const CTickRecord& others) {
  47. return (m_flSimulationTime > others.m_flSimulationTime);
  48. }
  49. bool operator>=(const CTickRecord& others) {
  50. return (m_flSimulationTime >= others.m_flSimulationTime);
  51. }
  52. bool operator<(const CTickRecord& others) {
  53. return (m_flSimulationTime < others.m_flSimulationTime);
  54. }
  55. bool operator<=(const CTickRecord& others) {
  56. return (m_flSimulationTime <= others.m_flSimulationTime);
  57. }
  58. bool operator==(const CTickRecord& others) {
  59. return (m_flSimulationTime == others.m_flSimulationTime);
  60. }
  61.  
  62. float m_flLowerBodyYawTarget = 0.f;
  63. QAngle m_angEyeAngles = QAngle(0, 0, 0);
  64. float m_flCycle = 0.f;
  65. float m_flSimulationTime = 0.f;
  66. int m_nSequence = 0;
  67. Vector m_vecOrigin = Vector(0, 0, 0);
  68. Vector m_vecAbsOrigin = Vector(0, 0, 0);
  69. Vector m_vecVelocity = Vector(0, 0, 0);
  70. std::array<float, 24> m_flPoseParameter = {};
  71. QAngle m_angAbsAngles = QAngle(0, 0, 0);
  72. CValidTick validtick;
  73. int tickcount = 0;
  74. };
  75.  
  76. inline CValidTick::operator CTickRecord() const {
  77. CTickRecord rec(m_pEntity);
  78. rec.m_angEyeAngles.x = this->m_flPitch;
  79. rec.m_angEyeAngles.y = this->m_flYaw;
  80. rec.m_flSimulationTime = this->m_flSimulationTime;
  81. return rec;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement