Advertisement
captmicro

SOURCESDK AIMBOT/ESP USAGE (put in CreateMove)

Dec 29th, 2011
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.37 KB | None | 0 0
  1. float fSelX_CAimbot = 0.02f;
  2. float fLast_CAimbot = 0.0f;
  3. GAimbot *g_aimbot = 0;
  4.  
  5. if (IsLocalPlayer() && !IsInVGuiInputMode() && debugoverlay)
  6. {
  7.     if (g_aimbot == 0) g_aimbot = new CAimbot();
  8.     debugoverlay->AddScreenTextOverlay(0.000f, fSelX_CAimbot, 0.1f,
  9.         (pCmd->buttons&IN_WALK)?255:0, 0, 0, 200, ">");
  10.     if (pCmd->buttons & IN_WALK)
  11.     {
  12.         if ((pCmd->buttons & IN_ZOOM) && (engine->Time() > fLast_CAimbot)) {
  13.             if (fSelX_CAimbot <= 0.04f) fSelX_CAimbot += 0.01f;
  14.             else fSelX_CAimbot = 0.02f;
  15.             fLast_CAimbot = engine->Time() + 0.1f;
  16.         } else if ((pCmd->buttons & IN_JUMP) && (engine->Time() > fLast_CAimbot)) {
  17.             if (fSelX_CAimbot == 0.02f) g_aimbot->bAimbot = !g_aimbot->bAimbot;
  18.             if (fSelX_CAimbot == 0.03f) g_aimbot->bEsp = !g_aimbot->bEsp;
  19.             if (fSelX_CAimbot == 0.04f) g_aimbot->bFindHits = !g_aimbot->bFindHits;
  20.             if (fSelX_CAimbot == 0.05f) { Msg("rays\n"); g_aimbot->bShowRays = !g_aimbot->bShowRays; }
  21.             fLast_CAimbot = engine->Time() + 0.1f;
  22.         }
  23.     }
  24.  
  25.     if (g_aimbot->local == 0) g_aimbot->local = this;
  26.     if (g_aimbot->debugoverlay == 0) g_aimbot->debugoverlay = debugoverlay;
  27.     if (g_aimbot->local == 0) Msg("[CAimbot/ESP] local is NULL\n");
  28.     if (g_aimbot->debugoverlay == 0) Msg("[CAimbot/ESP] debugoverlay is NULL\n");
  29.  
  30.     if (g_aimbot->ReadyForUse())
  31.     {
  32.         g_aimbot->DrawEspOverlay();
  33.         g_aimbot.AimbotGetTarget();
  34.         g_aimbot.ModifyUserCmd(pCmd);
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement