Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. #include "Cheat.h"
  2.  
  3. CreateMoveFn oCreateMove;
  4. bool __stdcall Hooks::CreateMove(float flInputSampleTime, CUserCmd* cmd)
  5. {
  6. G::LocalPlayer = U::GetLocalPlayer();
  7. G::UserCmd = cmd;
  8.  
  9.  
  10.  
  11.  
  12.  
  13. if (Vars.Ragebot.Enabled) Vars.Legitbot.Aimbot.Enabled = false;
  14. else if (Vars.Legitbot.Aimbot.Enabled) Vars.Ragebot.Enabled = false;
  15.  
  16.  
  17. if (cmd->command_number == 0 || !I::Engine->IsInGame())
  18. return false;
  19.  
  20.  
  21. if (!G::LocalPlayer || !G::LocalPlayer->GetAlive())
  22. return G::Return;
  23.  
  24. DWORD* framePointer;
  25. __asm mov framePointer, ebp;
  26. *(bool*)(*framePointer - 0x1C) = G::SendPacket;
  27.  
  28.  
  29.  
  30. if (!G::Aimbotting)
  31. G::LastAngle = cmd->viewangles;
  32.  
  33.  
  34. if (Vars.Misc.FakeLag && !G::UserCmd->buttons & IN_ATTACK)
  35. E::Misc->FakeLag();
  36.  
  37. E::LegitBot->Run();
  38.  
  39. //if (Vars.Misc.Test)
  40. // E::Misc->FakeLag();
  41.  
  42.  
  43.  
  44.  
  45. //if (Vars.Misc.Test)
  46. //E::Misc->FakeLag();
  47.  
  48. /*if (Vars.Misc.Test)
  49. E::Misc->RageAutoStrafe(cmd);*/
  50.  
  51. //if (Vars.Misc.Test)
  52. // E::Misc->Dank360(cmd);
  53.  
  54. E::Misc->AirStuck();
  55.  
  56.  
  57. if (Vars.Ragebot.Enabled)
  58. E::RageBot->Run();
  59.  
  60. if (Vars.Misc.MemeWalk)
  61. E::Misc->MemeWalk(cmd);
  62.  
  63. if (G::Test)
  64. {
  65. I::Engine->ExecuteClientCmd("bind w +forward; bind s +back; bind a +moveleft; bind d +moveright");
  66. G::Test = false;
  67. }
  68.  
  69. if (Vars.Misc.Bhop)
  70. E::Misc->Bunnyhop();
  71.  
  72.  
  73.  
  74. if (Vars.Misc.NameSpam)
  75. E::Misc->NameSpam();
  76.  
  77. if (Vars.Misc.AutoFire)
  78. E::Misc->AutoFire();
  79.  
  80. if (Vars.Misc.AutoStrafe && !G::PressedKeys[Vars.Misc.StrafeKey] && !Vars.Ragebot.SpinBot)
  81. E::Misc->AutoStrafe();
  82. if(Vars.Ragebot.Enabled && Vars.Misc.AutoStrafe)
  83. E::Misc->RageAutoStrafe(cmd);
  84.  
  85.  
  86. //TestListen->on_fire_event()
  87.  
  88.  
  89. if (Vars.Misc.LocationSpam)
  90. E::Misc->LocationSpam();
  91.  
  92. if (Vars.Ragebot.UntrustedCheck)
  93. cmd->viewangles.Clamp();
  94.  
  95. if (Vars.Misc.Blocker && G::PressedKeys[Vars.Misc.BlockKey])
  96. E::Misc->AutoBlocker(cmd);
  97.  
  98.  
  99.  
  100.  
  101. if (Vars.Misc.ClanTagEnabled)
  102. {
  103. static int counter = 0;
  104. if (Vars.Misc.ClanTag == 0)
  105. {
  106. E::Misc->SetClanTag("[VALV\xE1\xB4\xB1]", "Valve");
  107. }
  108.  
  109. if (Vars.Misc.ClanTag == 1)
  110. {
  111. E::Misc->SetClanTag("\n\n\n\n\n\n\n\n", "\n\n\n\n\n\n\n\n");
  112. }
  113. if (Vars.Misc.ClanTag == 2)
  114. {
  115. E::Misc->SetClanTag("", "");
  116. }
  117. if (Vars.Misc.ClanTag == 3)
  118. {
  119. E::Misc->SetClanTag("NiP", "Ninjas");
  120. }
  121. if (Vars.Misc.ClanTag == 4)
  122. {
  123. E::Misc->SetClanTag("ENVYUS", "EnVyUs");
  124. }
  125. if (Vars.Misc.ClanTag == 5)
  126. {
  127. E::Misc->SetClanTag("fnatic", "fnatic");
  128. }
  129. if (Vars.Misc.ClanTag == 6)
  130. {
  131. E::Misc->SetClanTag("Na'Vi", "NAVI");
  132. }
  133. if (Vars.Misc.ClanTag == 7)
  134. {
  135. //E::Misc->SetClanTag("EzFrags.dll", "ezfrags");
  136. E::Misc->Dank360();
  137. }
  138. }
  139.  
  140.  
  141.  
  142. if (G::PressedKeys[Vars.Misc.StrafeKey])
  143. E::Misc->ReverseAutoStrafe();
  144.  
  145. if (Vars.Misc.ReverseAimbot)
  146. E::Misc->ReverseAimbot();
  147.  
  148.  
  149. if ((Vars.Visuals.Removals.VisualRecoil && Vars.Legitbot.Aimbot.RCS && Vars.Legitbot.Aimbot.Enabled) || (Vars.Ragebot.Silent && Vars.Ragebot.Enabled) || (Vars.Legitbot.Aimbot.Enabled && Vars.Legitbot.Aimbot.Silent))
  150. return false;
  151.  
  152. I::Engine->SetViewAngles(G::UserCmd->viewangles);
  153.  
  154. CBaseEntity* pLocal = I::ClientEntList->GetClientEntity(I::Engine->GetLocalPlayer());
  155.  
  156. QAngle m_oldangle;
  157.  
  158.  
  159.  
  160. static QAngle OldAimPunch = QAngle(0, 0, 0);
  161.  
  162. if (Vars.Misc.NoRecoil && !Vars.Ragebot.Enabled)
  163. {
  164. int activewep = G::LocalPlayer->GetWeapon()->GetWeaponID();
  165. if (Vars.Misc.NoRecoil && !activewep == WEAPON_NEGEV || !activewep == WEAPON_M249 || !activewep == WEAPON_CZ75A || !activewep == WEAPON_SCAR20 || !activewep == WEAPON_G3SG1);
  166. {
  167.  
  168. if (G::UserCmd->buttons & IN_ATTACK && pLocal->GetShotsFired() > 1)
  169. {
  170. CBaseEntity* pLocal = I::ClientEntList->GetClientEntity(I::Engine->GetLocalPlayer());
  171. // Get the current aim punch angles and multiply the recoil scale.
  172. auto AimPunch = G::LocalPlayer->GetPunch() *2.0f;
  173.  
  174. QAngle Delta = OldAimPunch - AimPunch;
  175.  
  176. // Set compensated view angles.
  177. cmd->viewangles += Delta;
  178. cmd->viewangles.Clamp();
  179.  
  180. // Save old aim punch for next tick.
  181. OldAimPunch = AimPunch;
  182.  
  183. return true;
  184. }
  185. else
  186. {
  187. // Reset when not firing.
  188. OldAimPunch.x = OldAimPunch.y = OldAimPunch.z = 0;
  189. }
  190. }
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197. if (Vars.Ragebot.UntrustedCheck)
  198. cmd->viewangles.Clamp();
  199.  
  200.  
  201. return false;
  202. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement