How to add crosshair to your hack

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

How to add crosshair to your hack

楼层直达
作弊辅导员_h

ZxID:1019634

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

Code:
HSPRITE ch_sniper=-1, sniper_scope=-1
        void drawCrosshair();


replace it all with following:

Code:
HSPRITE ch_sniper=-1, sniper_scope=-1;
void drawCrosshair()
{
  if( me.inZoomMode ) { return; }
  int centerX = displayCenterX;
  int centerY = displayCenterY;
  ColorEntry* clr = colorList.get(0);
  int r=clr->r, g=clr->g, b=clr->b, a=clr->a;

    switch(cvar.cross)
  {
  case 1:
      gEngfuncs.pfnFillRGBA(centerX - 14, centerY, 9, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX +5,  centerY, 9, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX, centerY - 14, 1, 9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX, centerY +  5, 1, 9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX, centerY    , 1, 1,r,g,b,a);
      break;
  case 2:
      gEngfuncs.pfnFillRGBA(centerX - 14, centerY, 9,2,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX +6,  centerY, 9,2,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX, centerY - 14, 2,9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX, centerY +  7, 2,9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX, centerY    , 2,2,r,g,b,a);
      break;
  case 3:
      gEngfuncs.pfnFillRGBA(centerX-25,centerY,50,1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,centerY-25,1,50,r,g,b,a);
      break;
  case 4:
      gEngfuncs.pfnFillRGBA(centerX-25,centerY,50,2,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,centerY-25,2,50,r,g,b,a);
      break;
  case 5:
      gEngfuncs.pfnFillRGBA(centerX, centerY    , 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 1, centerY + 1, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 2, centerY + 2, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 3, centerY + 3, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 5, centerY + 5, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 6, centerY + 6, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 7, centerY + 7, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 8, centerY + 8, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 9, centerY + 9, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 10, centerY + 10, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 11, centerY + 11, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 12, centerY + 12, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 13, centerY + 13, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 14, centerY + 14, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 15, centerY + 15, 1, 1,r,g,b,a);

      gEngfuncs.pfnFillRGBA(centerX - 1, centerY - 1, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 2, centerY - 2, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 3, centerY - 3, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX - 5, centerY - 5, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 6, centerY - 6, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 7, centerY - 7, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 8, centerY - 8, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 9, centerY - 9, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 10, centerY - 10, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 11, centerY - 11, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 12, centerY - 12, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 13, centerY - 13, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 14, centerY - 14, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 15, centerY - 15, 1, 1,r,g,b,a);

      gEngfuncs.pfnFillRGBA(centerX + 1, centerY + 1, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX + 2, centerY + 2, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX + 3, centerY + 3, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX + 5, centerY + 5, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 6, centerY + 6, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 7, centerY + 7, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 8, centerY + 8, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 9, centerY + 9, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 10, centerY + 10, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 11, centerY + 11, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 12, centerY + 12, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 13, centerY + 13, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 14, centerY + 14, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 15, centerY + 15, 1, 1,r,g,b,a);

      gEngfuncs.pfnFillRGBA(centerX + 1, centerY - 1, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX + 2, centerY - 2, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX + 3, centerY - 3, 1, 1,255,0,0,255);
      gEngfuncs.pfnFillRGBA(centerX + 5, centerY - 5, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 6, centerY - 6, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 7, centerY - 7, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 8, centerY - 8, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 9, centerY - 9, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 10, centerY - 10, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 11, centerY - 11, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 12, centerY - 12, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 13, centerY - 13, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 14, centerY - 14, 1, 1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 15, centerY - 15, 1, 1,r,g,b,a);
      break;
  case 6:
      if(ch_sniper!=-1){
        gEngfuncs.pfnSPR_Set(ch_sniper,255,255,255);
        gEngfuncs.pfnSPR_DrawHoles(0,displayCenterX-128,displayCenterY-128,NULL);
      }   
      break;
  case 7:
      if(sniper_scope!=-1){
        gEngfuncs.pfnSPR_Set(sniper_scope,255,255,255);
        gEngfuncs.pfnSPR_DrawHoles(0,displayCenterX-128,displayCenterY-128,NULL);
      }   
      break;
  case 8:
      gEngfuncs.pfnFillRGBA(0,centerY,2*centerX,1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,0,1,2*centerY,r,g,b,a);
      break;
  case 9:
      gEngfuncs.pfnFillRGBA(centerX - 14,centerY,9,2,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 5 ,centerY,9,2,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX - 14,centerY,9,-1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 5 ,centerY,9,-1,r,g,b,a);

      gEngfuncs.pfnFillRGBA(centerX,centerY - 14,2,9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,centerY + 6 ,2,9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,centerY - 14,-1,9,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,centerY + 6 ,-1,9,r,g,b,a);

      gEngfuncs.pfnFillRGBA(centerX - 3,centerY,1,1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX + 3,centerY,1,1,r,g,b,a);

      gEngfuncs.pfnFillRGBA(centerX,centerY - 3,1,1,r,g,b,a);
      gEngfuncs.pfnFillRGBA(centerX,centerY + 3,1,1,r,g,b,a);
      break;
  }
}


next in your Code:
HUD_Redraw
under line hudDrawInfoTexts();
add this
Code:
if (cvar.cross)      { drawCrosshair      (); }

then register your cvars
cvar.cpp
Code:
REGISTER_CVAR_INT( cross ,1)

cvar.h Code:
int cross;
密码被盗,请联系cscheat取回
10727465

ZxID:1237036

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

ZxID:1233846

等级: 新兵
举报 只看该作者 板凳   发表于: 2007-08-13 0
叫晶晶的女孩,前几天,我晚自习回家,被一辆大卡车撞死了,司机将我的尸体抛入了路径边的小河里,然后逃走了,你看见了这条消息后,请将她发给4个论坛,如果没有发,你的妈妈会在1个月被车撞死,你的爸爸会得绝症,如果你照着上面做了,在5天后,你喜欢的人也会喜欢你,这条消息太毒了,我不得不发
leejiaxian

ZxID:2320441

等级: 列兵
举报 只看该作者 地板   发表于: 2008-11-22 0
thank..
23sK

ZxID:1970527

等级: 准尉
风吹过...好冷........
举报 只看该作者 4楼  发表于: 2009-01-21 0
什么啊,一大群外星文,发电白话文行不??
« 返回列表
发帖 回复