gsaim 2

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论gsaim 2
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
3个回复

gsaim 2

楼层直达
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看楼主 使用道具 楼主   发表于: 2007-07-03 0

http://www.forum.game-deception.com/showthread.php?s=&threadid=2983

This is a slight mod on the tut at http://own4g3cheats.com/forum
Its Amirs's gsaim. The tutorial that was posted uses the standing vec for walking players. I made it so you can have a seperate vec for walking players and the avadd numbers 0-5 are the same as they are in XC from Rage-X.

in aimbot.h look for

PHP:--------------------------------------------------------------------------------
vector<aimvec> AimVecsS;
   vector<aimvec> AimVecsD;

--------------------------------------------------------------------------------


and make it look like this


PHP:--------------------------------------------------------------------------------
vector<aimvec> AimVecsS;
    vector<aimvec> AimVecsD;
    vector<aimvec> AimVecsW;
    vector<aimvec> AimVecsR;
    vector<aimvec> AimVecsX;
    vector<aimvec> AimVecsJ;

--------------------------------------------------------------------------------


now goto aimbot.cpp and look for

PHP:--------------------------------------------------------------------------------
void OriginAimbot::Draw_Player_Vecs(int ax)

--------------------------------------------------------------------------------

i dunno if it would be the same for all hacks (im using liquid fx)
but it should look like this

PHP:--------------------------------------------------------------------------------
void OriginAimbot::Draw_Player_Vecs(int ax)
{
   vec3_t aim_location, target_origin;
   vec3_t up, right, forward, playerAngles;
   vector<aimvec>::iterator pos, end;
   
   // GaitSequence Aiming
   // Legendary Amir (c) 2003
   switch (vPlayers[ax].getEnt()->curstate.gaitsequence)
   {
   case 1:
      {
         pos = AimVecsS.begin();
         end = AimVecsS.end();
      }
      break;
   case 2:
      {
         pos = AimVecsD.begin();
         end = AimVecsD.end();
      }
      break;
   case 3:
      {
         pos = AimVecsW.begin();
         end = AimVecsW.end();
      }
      break;
   case 4:
      {
         if (cvar.gsaim)
         {
                pos = AimVecsR.begin();
                end = AimVecsR.end();
         }
         else
         {
            pos = AimVecsS.begin();
            end = AimVecsS.end();
         }
      }
      break;
   case 5:
      {
         if (cvar.gsaim)
         {
                pos = AimVecsX.begin();
                end = AimVecsX.end();
         }
         else
         {
            pos = AimVecsS.begin();
            end = AimVecsS.end();
         }
      }
      break;
   case 6:
      {
         pos = AimVecsJ.begin();
         end = AimVecsJ.end();
      }
      break;
   default:                  
      {
         pos = AimVecsS.begin();
         end = AimVecsS.end();
      }
      break;
   }
   PredictTarget(ax,target_origin);
   playerAngles[0]=0;
   playerAngles[1]=vPlayers[ax].getEnt()->angles[1];
   playerAngles[2]=0;
   gEngfuncs.pfnAngleVectors (playerAngles, forward, right, up);
   forward[2] = -forward[2];
   register DWORD color = 0xFF1111FF;
   for (;pos!=end;++pos)
   {
      VectorCopy(target_origin,aim_location);
      aim_location = aim_location + forward * pos->f;
      aim_location = aim_location + up * pos->h;
      aim_location = aim_location + right * pos->r;
      gDrawFilledBoxAtLocation(aim_location,color,1);
      color = 0xFFFFFFFF;
   }
}

--------------------------------------------------------------------------------

now look for

PHP:--------------------------------------------------------------------------------
aimvec* OriginAimbot::TargetRegion(int ax, bool onlyvis)

--------------------------------------------------------------------------------

change it to this

PHP:--------------------------------------------------------------------------------
aimvec* OriginAimbot::TargetRegion(int ax, bool onlyvis)
{
   vec3_t vecEnd, up, right, forward, EntViewOrg,PredOrg, playerAngles;
   static struct aimvec temp = {0,0,0};

   PredictTarget(ax,PredOrg);
   vector<aimvec>::iterator si, end;
   // GaitSequence Aiming
   // Legendary Amir (c) 2003
   switch (vPlayers[ax].getEnt()->curstate.gaitsequence)
   {
   case 1:
      {
         if (AimVecsS.size() > 0)
         {
            si = AimVecsS.begin();
            end = AimVecsS.end();
         }
      }
      break;
   case 2:
      {
         if (AimVecsD.size() > 0)
         {
            si = AimVecsD.begin();
            end = AimVecsD.end();
         }
      }
      break;
   case 3:
      {
         if (AimVecsS.size() > 0)
         {
            si = AimVecsW.begin();
            end = AimVecsW.end();
         }
      }
      break;
   case 4:
      {
         if (AimVecsR.size() > 0 && cvar.gsaim)
         {
            si = AimVecsR.begin();
            end = AimVecsR.end();
         }
         else
         {
            si = AimVecsS.begin();
            end = AimVecsS.end();
         }
      }
      break;
   case 5:
      {
         if (AimVecsX.size() > 0 && cvar.gsaim)
         {
            si = AimVecsX.begin();
            end = AimVecsX.end();
         }
         else
         {
            si = AimVecsS.begin();
            end = AimVecsS.end();
         }
      }
      break;
   case 6:
      {
         if (AimVecsJ.size() > 0)
         {
            si = AimVecsJ.begin();
            end = AimVecsJ.end();
         }
      }
      break;
   default:
      {
         if (AimVecsS.size() > 0)
         {
            si = AimVecsS.begin();
            end = AimVecsS.end();
         }
      }
      break;
   }
   
   playerAngles[0]=0;
   playerAngles[1]=vPlayers[ax].getEnt()->angles[1];
   playerAngles[2]=0;
    gEngfuncs.pfnAngleVectors (playerAngles, forward, right, up);
   forward[2] = -forward[2];
   for (;si!=end;++si)
   {
      VectorCopy(PredOrg,EntViewOrg);
      EntViewOrg = EntViewOrg + forward * si->f;
      EntViewOrg = EntViewOrg + up * si->h;
        EntViewOrg = EntViewOrg + right * si->r;
      if(PathFree(me.pmEyePos, EntViewOrg)) return &(*si);
   }
   return NULL;
}

--------------------------------------------------------------------------------

密码被盗,请联系cscheat取回
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看该作者 沙发   发表于: 2007-07-03 0


look for

PHP:--------------------------------------------------------------------------------
void OriginAimbot::CalcTargetSpot(float *out)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void OriginAimbot::CalcTargetSpot(float *out)
{
   vec3_t vecEnd, up, right, forward, EntViewOrg, playerAngles;
   cl_entity_s* ent = vPlayers[target].getEnt();
   
   // get predicted origin
   PredictTarget(target,out);

   // calculate angle vectors
   playerAngles[0]=0;
   playerAngles[1]=ent->angles[1];
   playerAngles[2]=0;
   gEngfuncs.pfnAngleVectors (playerAngles, forward, right, up);
   
   aimvec* si = TargetRegion(target, false);

   // calculate h, r, f
   float h=0,r=0,f=0;
   if (si)
   {
      f = si->f;
      h = si->h;
      r = si->r;
   }
   else
   {
   // GaitSequence Aiming
      // Legendary Amir (c) 2003
      switch (ent->curstate.gaitsequence)
      {
      case 1:
         {
            if (AimVecsS.size() > 0)
            {
               f = AimVecsS[0].f;
               h = AimVecsS[0].h;
               r = AimVecsS[0].r;
            }
         }
         break;
      case 2:
         {
            if (AimVecsD.size() > 0)
            {
               f = AimVecsD[0].f;
               h = AimVecsD[0].h;
               r = AimVecsD[0].r;
            }
         }
         break;
      case 3:
         {
            if (AimVecsW.size() > 0)
            {
               f = AimVecsS[0].f;
               h = AimVecsS[0].h;
               r = AimVecsS[0].r;
            }
         }
         break;
      case 4:
         {
            if (AimVecsR.size() > 0 && cvar.gsaim)
            {
               f = AimVecsR[0].f;
               h = AimVecsR[0].h;
               r = AimVecsR[0].r;
            }
            else
            {
               f = AimVecsS[0].f;
               h = AimVecsS[0].h;
               r = AimVecsS[0].r;
            }
         }
         break;
      case 5:
         {
            if (AimVecsX.size() > 0 && cvar.gsaim)
            {
               f = AimVecsX[0].f;
               h = AimVecsX[0].h;
               r = AimVecsX[0].r;
            }
            else
            {
               f = AimVecsS[0].f;
               h = AimVecsS[0].h;
               r = AimVecsS[0].r;
            }
         }
         break;
      case 6:
         {
            if (AimVecsJ.size() > 0)
            {
               f = AimVecsJ[0].f;
               h = AimVecsJ[0].h;
               r = AimVecsJ[0].r;
            }
         }
         break;
      default:
         {
            if (AimVecsS.size() > 0)
            {
               f = AimVecsS[0].f;
               h = AimVecsS[0].h;
               r = AimVecsS[0].r;
            }
         }
         break;
      }
      
   }
   out[0] = out[0] + forward[0]*f + up[0]*h + right[0]*r;
   out[1] = out[1] + forward[1]*f + up[1]*h + right[1]*r;
   out[2] = out[2] + forward[2]*f + up[2]*h + right[2]*r;
}

--------------------------------------------------------------------------------


register the gsaim cvar in cvar.cpp and cvar.h
then open client .cpp

作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看该作者 板凳   发表于: 2007-07-03 0

in client.cpp look for

PHP:--------------------------------------------------------------------------------
void func_avadd(void)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void func_avadd(void)
{
   aimvec av;
   int duck = cmd.argI(1);
   int arg = 2;
   while(*cmd.argC(arg))
   {
      av.h = cmd.argF(arg++);
      av.f = cmd.argF(arg++);
      av.r = cmd.argF(arg++);
      if (duck == 1) 
      {
          gAimbot.AimVecsD.push_back(av);
      }
      if (duck == 0)
      {
        gAimbot.AimVecsS.push_back(av);
      }
      if (duck == 2)
     {
          gAimbot.AimVecsW.push_back(av);
     }
     if (duck == 3)
     {
        gAimbot.AimVecsR.push_back(av);
     }
     if (duck == 4)
     {
        gAimbot.AimVecsX.push_back(av);
     }
     if (duck == 5)
     {
        gAimbot.AimVecsJ.push_back(av);
     }
   }
}

--------------------------------------------------------------------------------

look for

PHP:--------------------------------------------------------------------------------
void func_avclear(void)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void func_avclear(void)
{
   gAimbot.AimVecsS.clear();
   gAimbot.AimVecsJ.clear();
   gAimbot.AimVecsD.clear();
   gAimbot.AimVecsR.clear();
   gAimbot.AimVecsW.clear();
   gAimbot.AimVecsX.clear();
}

--------------------------------------------------------------------------------

look for

PHP:--------------------------------------------------------------------------------
void func_avlist(void)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void func_avlist(void)
{
   int dmmy = cmd.argI(1);
   if (dmmy == 1)
   {
       Con_Echo("Listing AimVecs(1) Ducking\n");
       for (vector<aimvec>::iterator si = gAimbot.AimVecsD.begin(); si != gAimbot.AimVecsD.end();++si)
       {
           Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
   if (dmmy == 0)
   {
       Con_Echo("Listing AimVecs(0) Standing\n");
       for (vector<aimvec>::iterator si = gAimbot.AimVecsS.begin(); si != gAimbot.AimVecsS.end();++si)
       {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
       }
   }
   if (dmmy == 2)
   {
       Con_Echo("Listing AimVecs(2) Walking\n");
       for (vector<aimvec>::iterator si = gAimbot.AimVecsW.begin(); si != gAimbot.AimVecsW.end();++si)
       {
           Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
       }
   }
   if (dmmy == 3)
   {
      Con_Echo("Listing AimVecs(3) Running\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsR.begin(); si != gAimbot.AimVecsR.end();++si)
      {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
   if (dmmy == 4)
   {
      Con_Echo("Listing AimVecs(4) Duck-Walk\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsX.begin(); si != gAimbot.AimVecsX.end();++si)
      {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
   if (dmmy == 5)
   {
      Con_Echo("Listing AimVecs(3) Jumping\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsJ.begin(); si != gAimbot.AimVecsJ.end();++si)
      {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
}

--------------------------------------------------------------------------------


That should be everything. I dunno how much i can help if it doesnt work for you but ask anyway 

Avadd 0 = Standing
Avadd 1 = Ducking
Avadd 2 = Walking
Avadd 3 = Running
Avadd 4 = Duck-Walk/jump
Avadd 5 = Jumping

Credits: Amir for the code and ZOZ from the own4g3cheats for posting the tut

i saw it compiling...thought yeah it workss...yeah!
but then:


code:--------------------------------------------------------------------------------
Linking...
aimbot.obj : error LNK2001: unresolved external symbol "bool __cdecl PathFree(float *,float *)" (?PathFree@@YA_NPAM0@Z)
Debug/advanced.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

advanced.dll - 2 error(s), 0 warning(s)
--------------------------------------------------------------------------------


can u help me?
i had an *obj. error jsut for 2times now, and it were always wenn i added own coded functions..but here :/

/e:in aimbot.cpp this code:

code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to, bool onlyvis)
{
 pmtrace_t tr;

 if (!onlyvis && cvar.autowall && CurPenetration())
  return CanPenetrate(from, to);

 gEngfuncs.pEventAPI->EV_SetTraceHull( 2 );
 gEngfuncs.pEventAPI->EV_PlayerTrace( from, to, PM_GLASS_IGNORE, me.ent->index, &tr );

 return (tr.fraction == 1.0);
}
--------------------------------------------------------------------------------

aimbot.h:

code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to);


so like this?


code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to, bool onlyvis);

作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看该作者 地板   发表于: 2007-07-03 0

in client.cpp look for

PHP:--------------------------------------------------------------------------------
void func_avadd(void)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void func_avadd(void)
{
   aimvec av;
   int duck = cmd.argI(1);
   int arg = 2;
   while(*cmd.argC(arg))
   {
      av.h = cmd.argF(arg++);
      av.f = cmd.argF(arg++);
      av.r = cmd.argF(arg++);
      if (duck == 1) 
      {
          gAimbot.AimVecsD.push_back(av);
      }
      if (duck == 0)
      {
        gAimbot.AimVecsS.push_back(av);
      }
      if (duck == 2)
     {
          gAimbot.AimVecsW.push_back(av);
     }
     if (duck == 3)
     {
        gAimbot.AimVecsR.push_back(av);
     }
     if (duck == 4)
     {
        gAimbot.AimVecsX.push_back(av);
     }
     if (duck == 5)
     {
        gAimbot.AimVecsJ.push_back(av);
     }
   }
}

--------------------------------------------------------------------------------

look for

PHP:--------------------------------------------------------------------------------
void func_avclear(void)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void func_avclear(void)
{
   gAimbot.AimVecsS.clear();
   gAimbot.AimVecsJ.clear();
   gAimbot.AimVecsD.clear();
   gAimbot.AimVecsR.clear();
   gAimbot.AimVecsW.clear();
   gAimbot.AimVecsX.clear();
}

--------------------------------------------------------------------------------

look for

PHP:--------------------------------------------------------------------------------
void func_avlist(void)

--------------------------------------------------------------------------------

change to

PHP:--------------------------------------------------------------------------------
void func_avlist(void)
{
   int dmmy = cmd.argI(1);
   if (dmmy == 1)
   {
       Con_Echo("Listing AimVecs(1) Ducking\n");
       for (vector<aimvec>::iterator si = gAimbot.AimVecsD.begin(); si != gAimbot.AimVecsD.end();++si)
       {
           Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
   if (dmmy == 0)
   {
       Con_Echo("Listing AimVecs(0) Standing\n");
       for (vector<aimvec>::iterator si = gAimbot.AimVecsS.begin(); si != gAimbot.AimVecsS.end();++si)
       {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
       }
   }
   if (dmmy == 2)
   {
       Con_Echo("Listing AimVecs(2) Walking\n");
       for (vector<aimvec>::iterator si = gAimbot.AimVecsW.begin(); si != gAimbot.AimVecsW.end();++si)
       {
           Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
       }
   }
   if (dmmy == 3)
   {
      Con_Echo("Listing AimVecs(3) Running\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsR.begin(); si != gAimbot.AimVecsR.end();++si)
      {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
   if (dmmy == 4)
   {
      Con_Echo("Listing AimVecs(4) Duck-Walk\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsX.begin(); si != gAimbot.AimVecsX.end();++si)
      {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
   if (dmmy == 5)
   {
      Con_Echo("Listing AimVecs(3) Jumping\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsJ.begin(); si != gAimbot.AimVecsJ.end();++si)
      {
         Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
      }
   }
}

--------------------------------------------------------------------------------


That should be everything. I dunno how much i can help if it doesnt work for you but ask anyway 

Avadd 0 = Standing
Avadd 1 = Ducking
Avadd 2 = Walking
Avadd 3 = Running
Avadd 4 = Duck-Walk/jump
Avadd 5 = Jumping

Credits: Amir for the code and ZOZ from the own4g3cheats for posting the tut

i saw it compiling...thought yeah it workss...yeah!
but then:


code:--------------------------------------------------------------------------------
Linking...
aimbot.obj : error LNK2001: unresolved external symbol "bool __cdecl PathFree(float *,float *)" (?PathFree@@YA_NPAM0@Z)
Debug/advanced.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

advanced.dll - 2 error(s), 0 warning(s)
--------------------------------------------------------------------------------


can u help me?
i had an *obj. error jsut for 2times now, and it were always wenn i added own coded functions..but here :/

/e:in aimbot.cpp this code:

code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to, bool onlyvis)
{
 pmtrace_t tr;

 if (!onlyvis && cvar.autowall && CurPenetration())
  return CanPenetrate(from, to);

 gEngfuncs.pEventAPI->EV_SetTraceHull( 2 );
 gEngfuncs.pEventAPI->EV_PlayerTrace( from, to, PM_GLASS_IGNORE, me.ent->index, &tr );

 return (tr.fraction == 1.0);
}
--------------------------------------------------------------------------------

aimbot.h:

code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to);


so like this?


code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to, bool onlyvis);

« 返回列表
发帖 回复