How to add amirs gsaim to your hack

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

How to add amirs gsaim to your hack

楼层直达
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看楼主 使用道具 楼主   发表于: 2007-07-25 0
aimbot.cpp
find this: Code:
void OriginAimbot::draw_player_vecs

somewhere in body add following: Code:

if (cvar.gsaim)
  {
      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:
        {
                pos = AimVecsR.begin();
                end = AimVecsR.end();
        }
        break;
      case 5:
        {
                pos = AimVecsDM.begin();
                end = AimVecsDM.end();
        }
        break;
      case 6:
        {
            pos = AimVecsJ.begin();
            end = AimVecsJ.end();
        }
        break;
    }     
}

next find this:
Code:
void OriginAimbot::CalcTargetSpot

somewhere in body add following: Code:

if (cvar.gsaim)
  {
      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)
        {
              f = AimVecsR[0].f;
              h = AimVecsR[0].h;
              r = AimVecsR[0].r;
            }
        }
        break;
      case 5:
        {
        if (AimVecsDM.size() > 0)
        {
              f = AimVecsDM[0].f;
              h = AimVecsDM[0].h;
              r = AimVecsDM[0].r;
            }
        }
        break;
      case 6:
        {
        if (AimVecsJ.size() > 0)
        {
              f = AimVecsJ[0].f;
              h = AimVecsJ[0].h;
              r = AimVecsJ[0].r;
            }
        }
        break;
      }
  }

next open your aimbot.h under Code:

class OriginAimbot

add following Code:

vector<aimvec> AimVecsS; // GaitSequence 1 = (Standing)
vector<aimvec> AimVecsW; //GaitSequence 3 = (Walking)
vector<aimvec> AimVecsD; // GaitSequence 2 = (Duck Idle)
vector<aimvec> AimVecsDM; // GaitSequence 5 = (Duck Moving)
vector<aimvec> AimVecsJ; // GaitSequence 6 = (Jumping)
vector<aimvec> AimVecsR; // GaitSequence 4 = (Running) 

next client.cpp anywhrere add following: Code:

//===================================================================================
void func_avlist(void)
{
   
  if(cvar.gsaim<=0){

      Con_Echo("Amir's Gaitsequence aiming is not active.");
      Con_Echo("To activate, type gsaim 1 inverse 0");
  }   
   
  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 == 4)
  {
      Con_Echo("Listing AimVecs(4) Duck-Walk\n");
      for (vector<aimvec>::iterator si = gAimbot.AimVecsDM.begin(); si != gAimbot.AimVecsDM.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 == 5)
  {
      Con_Echo("Listing AimVecs(5) 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);
      }
  }
  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);
      }
  }
}
//===================================================================================
void func_avclear(void)
{
  gAimbot.AimVecsS.clear();
  gAimbot.AimVecsD.clear();
  gAimbot.AimVecsDM.clear();
  gAimbot.AimVecsJ.clear();
  gAimbot.AimVecsR.clear();
  gAimbot.AimVecsW.clear();
}
//===================================================================================
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.AimVecsDM.push_back(av);
      }
      if (duck == 5)
      {
        gAimbot.AimVecsJ.push_back(av);
      }
  } 

next find Code:
REGISTER_COMMAND

add following: Code:

REGISTER_COMMAND(avadd      )
REGISTER_COMMAND(avlist    )
REGISTER_COMMAND(avclear    )

Register cvar gsaim as int!
密码被盗,请联系cscheat取回
10727465

ZxID:1237036

等级: 新兵
举报 只看该作者 沙发   发表于: 2007-08-02 0
杜绝0回复。。。
cmjx_h

ZxID:1246171

等级: 新兵
举报 只看该作者 板凳   发表于: 2007-08-16 0
什么东西,看不懂!
« 返回列表
发帖 回复