在作弊器里给作弊站队加上队标的代码

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论在作弊器里给作弊站队加上队标的代码
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
22个回复

在作弊器里给作弊站队加上队标的代码

楼层直达
莎仕芘亞

ZxID:1171401

等级: 元老
猴岛国防部部长

举报 只看楼主 使用道具 楼主   发表于: 2007-09-02 0
abc制作
  1. if(ent != NULL && isValidEnt(ent))
  2. {
  3.   if(CalcScreen(ent->origin, drawhere))
  4.   {
  5.     pEngfuncs->pfnFillRGBA(drawhere[0] - 10, drawhere[1] - 10, 20,2,espr,espg,espb,200);
  6.     pEngfuncs->pfnFillRGBA(drawhere[0] - 10, drawhere[1] - 10, 2,20,espr,espg,espb,200);
  7.     pEngfuncs->pfnFillRGBA(drawhere[0] - 10, drawhere[1] + 10, 20,2,espr,espg,espb,200);
  8.     pEngfuncs->pfnFillRGBA(drawhere[0] + 10, drawhere[1] - 10, 2,20,espr,espg,espb,200);
  9.     DrawHudStringCenter(drawhere[0], drawhere[1] - 14, espr, espg, espb, nbuf);
  10.     DrawHudStringCenter(drawhere[0], drawhere[1], espr, espg, espb, " C.C.A | %s ",gGetWeaponName(ent->curstate.weaponmodel));
  11.   }
  12. }
  13. OR
  14. if(ent != NULL && isValidEnt(ent))
  15. {
  16.   if(CalcScreen(ent->origin, drawhere))
  17.   {
  18.     pEngfuncs->pfnFillRGBA(drawhere[0] - 10, drawhere[1] - 10, 20,2,espr,espg,espb,200);
  19.     pEngfuncs->pfnFillRGBA(drawhere[0] - 10, drawhere[1] - 10, 2,20,espr,espg,espb,200);
  20.     pEngfuncs->pfnFillRGBA(drawhere[0] - 10, drawhere[1] + 10, 20,2,espr,espg,espb,200);
  21.     pEngfuncs->pfnFillRGBA(drawhere[0] + 10, drawhere[1] - 10, 2,20,espr,espg,espb,200);
  22.     if((drawhere[0] < centerX + 10 && drawhere[0] > centerX - 10) && (drawhere[1] < centerY + 10 && drawhere[1] > centerY - 10))
  23.     {
  24.         DrawHudStringCenter(drawhere[0], drawhere[1] - 14, espr, espg, espb, nbuf);
  25.         DrawHudStringCenter(drawhere[0], drawhere[1], espr, espg, espb, " C.C.A | %s ",gGetWeaponName(ent->curstate.weaponmodel));
  26.     }
  27.   }
  28. }
  29. <++++++++++++++++++Overhead View Radar+++++++++++++++++
  30. void CalcAngle(const float *src, const float *dst, float *angles)
  31. {
  32.   float delta[3] = { (src[0]-dst[0]), (src[1]-dst[1]), (src[2]-dst[2]) };
  33.   float hyp = (float)sqrt(delta[0]*delta[0] + delta[1]*delta[1]);
  34.  
  35.   angles[0] = (float)(atan(delta[2] / hyp) * (180 / M_PI));
  36.   angles[1] = (float)(atan(delta[1] / delta[0]) * (180 / M_PI));
  37.   angles[2] = 0.0f;
  38.   if(delta[0] >= 0.0f) { angles[1] += 180.0f; }
  39. }
  40. void MakeVector(float *angle, float *vector)
  41. {
  42.   float pitch;
  43.   float yaw;
  44.   float tmp;       
  45.  
  46.   pitch = (float)(angle[0] * M_PI/180);
  47.   yaw =    (float)(angle[1] * M_PI/180);
  48.   tmp =    (float)cos(pitch);
  49.  
  50.   vector[0] = (float) (-tmp * -cos(yaw));
  51.   vector[1] = (float) (sin(yaw)*tmp);
  52.   vector[2] = (float) -sin(pitch);
  53. }
  54. float GetFOVDistPlus(float *angle, float *src, float *dst)
  55. {
  56.   float fov = 0.0f;
  57.   float ang[3];
  58.   float aim[3];
  59.   float cross = 0.0f;
  60.  
  61. // we get direction from the cross product...
  62. // cross.x = (A.y) * (B.z) - (B.y) * (A.z)
  63. // cross.y = (A.z) * (B.x) - (B.z) * (A.x)
  64. // cross.z = (A.x) * (B.y) - (B.x) * (A.y)
  65.   CalcAngle(src, dst, ang);
  66.   MakeVector(angle, aim);
  67.   MakeVector(ang, ang);   
  68. //    cross[0] = (aim[1] * ang[2]) - (ang[1] * aim[2]);
  69. //    cross[1] = (aim[2] * ang[0]) - (ang[2] * aim[0]);
  70. //    cross[2] = (aim[0] * ang[1]) - (ang[0] * aim[1]);
  71.   cross = (aim[0] * ang[1]) - (ang[0] * aim[1]);
  72.   float mag_s = sqrt(SQUARE(aim[0]) + SQUARE(aim[1]));
  73.   float mag_d = sqrt(SQUARE(ang[0]) + SQUARE(ang[1]));
  74.   float u_dot_v = aim[0]*ang[0] + aim[1]*ang[1];
  75.   fov = acos(u_dot_v / (mag_s*mag_d)) * (180 / M_PI);
  76.   if(cross >= 0.0f) { fov *= -1.0f; }
  77.  
  78.   return fov;
  79. }
  80. void DrawRadar()
  81. {
  82.   int x = Local.viewport[2];
  83.   int y = Local.viewport[3];
  84.   int w = Local.viewport[2] / 100;
  85.   float ang[3];
  86.   Aimbot.GetViewAngles(ang);
  87.   glDisable(GL_TEXTURE_2D);
  88.   glEnable(GL_BLEND);
  89.   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  90.   glColor4ub(0, 0, 0, 128);
  91.   glBegin(GL_QUADS);
  92.       glVertex2i(0, 0);    //top
  93.       glVertex2i(x, 0);
  94.       glVertex2i(x, w);
  95.       glVertex2i(0, w);
  96.       glVertex2i(0, w);    //left
  97.       glVertex2i(w, w);
  98.       glVertex2i(w, y-w);
  99.       glVertex2i(0, y-w);
  100.       glVertex2i(x-w, w); //right
  101.       glVertex2i(x, w);
  102.       glVertex2i(x, y-w);
  103.       glVertex2i(x-w, y-w);
  104.       glVertex2i(0, y-w); //bottom
  105.       glVertex2i(x, y-w);
  106.       glVertex2i(x, y);
  107.       glVertex2i(0, y);
  108.   glEnd();
  109.   for(int ax=0; ax < Player.size(); ax++)
  110.   {
  111.       if(!Player[ax].valid)    { continue; }
  112.      
  113.       int r,g,b;
  114.       Player[ax].team->GetColours(r, g, b);
  115.       float dist = GetFOVDistPlus(ang, Local.origin, Player[ax].ent->origin);
  116.      
  117.       float rx = 0.0f;
  118.       float ry = 0.0f;
  119.       int ix = 0;
  120.       int iy = 0;
  121.       if(dist >= -45.0f && dist <= +45.0f)        //on top
  122.       {
  123.           ry = (float)w / 2.0f;
  124.           rx = (dist+45.0f) / 90.0f * (float)x;
  125.       }
  126.       else if(dist < -45.0f && dist > -135.0f)    //on left
  127.       {
  128.           rx = (float)w / 2.0f;
  129.           ry = (float)y - ((dist + 135.0f) / 90.0f * (float)y);
  130.       }
  131.       else if(dist > +45.0f && dist < +135.0f)    //on right
  132.       {
  133.           rx = (float)x - ((float)w / 2.0f);
  134.           ry = (dist-45.0f)/90.0f * (float)y;
  135.       }
  136.       else                                        //on bottom
  137.       {
  138.           ry = (float)y - ( (float)w / 2.0f);
  139.           float part = (fabs(dist)-135.0f) / 45.0f;
  140.           if(dist < 0.0f) { rx = (part*((float)x / 2.0f));            }
  141.           else            { rx = (float)x - (part*((float)x / 2.0f));    }
  142.       }
  143.       ix = (int)rx;
  144.       iy = (int)ry;
  145.       int icon = (w/2) - 2;
  146.      
  147.       glColor4ub(r, g, b, 200);
  148.       glBegin(GL_QUADS);
  149.           glVertex2i(ix-icon, iy-icon);
  150.           glVertex2i(ix+icon, iy-icon);
  151.           glVertex2i(ix+icon, iy+icon);
  152.           glVertex2i(ix-icon, iy+icon);
  153.       glEnd();
  154.       glColor4ub(255, 255, 255, 160);
  155.       glBegin(GL_LINE_STRIP);
  156.           glVertex2i(ix-icon, iy+icon);
  157.           glVertex2i(ix-icon, iy-icon);
  158.           glVertex2i(ix+icon, iy-icon);
  159.       glEnd();
  160.       glColor4ub(0, 0, 0, 160);
  161.       glBegin(GL_LINE_STRIP);
  162.           glVertex2i(ix+icon, iy-icon);
  163.           glVertex2i(ix+icon, iy+icon);
  164.           glVertex2i(ix-icon, iy+icon);
  165.       glEnd();
  166.   }
  167.  
  168.   glEnable(GL_TEXTURE_2D);
  169. }__________________
  170. <++++++++++++++++++Player FOV On radar+++++++++++++++
  171. Vector CalcPViewAngles(int index){
  172.   cl_entity_s *ent = gEngfuncs.GetEntityByIndex(index);
  173.   Vector forward,right,up,newfwd;
  174.   VectorCopy(ent->origin, newfwd);
  175.   gEngfuncs.pfnAngleVectors(ent->angles, forward, right, up);
  176.   // Thanks tetsuo :P im a tard
  177.   newfwd = newfwd + forward * cvar.radar_fovdist; // radar_fovdist is an int, I use 300. change to suit your own taste
  178.   return newfwd;
  179. }
  180. void drawRadarFOV(float* origin, int playerindex, int width, int r,int g,int b, int size)
  181. {
  182.   int startX, startY, endX, endY;
  183.   calcRadarPoint(origin, startX, startY);
  184.   calcRadarPoint(CalcPViewAngles(playerindex), endX, endY);
  185.   DrawLine(startX, startY, endX, endY, width, r, g, b, 255);
  186. }
  187. <++++++++++++++++++改变射击时烟雾的颜色+++++++++++++++
  188. if(cvar.weaponsmoke && me.alive)
  189. {
  190.     cl_entity_t *curent;
  191.     curent = pstudio->GetCurrentEntity();
  192.     curent->curstate.rendercolor.r = 0;
  193.     curent->curstate.rendercolor.g = 255;
  194.     curent->curstate.rendercolor.b = 0;
  195.     glBlendFunc(GL_FRONT_AND_BACK, GL_FILL);
  196. }


fefe_h

ZxID:1199917

等级: 上等兵
举报 只看该作者 沙发   发表于: 2007-09-02 0
滴滴答答滴滴答答得到
本帖de评分: 1 条评分 DB -5
威望-5

恶意灌水

wankxj600

ZxID:1107368

等级: 元老
自命清高,其实脸皮比城墙厚

举报 只看该作者 板凳   发表于: 2007-09-02 0
好全 顶死你
longfan

ZxID:1237390

等级: 新兵
举报 只看该作者 地板   发表于: 2007-09-03 0
看不懂
kakizzz

ZxID:1248229

等级: 上校
空军上校
举报 只看该作者 4楼  发表于: 2007-09-04 0
支持楼主!
 
  谢谢分享!






                   
kakizzz

ZxID:1248229

等级: 上校
空军上校
举报 只看该作者 5楼  发表于: 2007-09-04 0
支持楼主!
 
  谢谢分享!






                   
gudulanlei

ZxID:1155680

等级: 下士
举报 只看该作者 6楼  发表于: 2007-09-04 0
看不明白
ddjjde16

ZxID:1242075

等级: 准尉
举报 只看该作者 7楼  发表于: 2007-09-05 0
好贴就要顶!!
es11

ZxID:1258960

等级: 新兵
举报 只看该作者 8楼  发表于: 2007-09-12 0
谢谢楼主分享
血族_h

ZxID:1234307

等级: 中尉
指着太阳说日!

举报 只看该作者 9楼  发表于: 2007-10-28 0
牛B的一帖啊,收下了,UP
指着太阳说日!
wangchen2188

ZxID:1266168

等级: 新兵
举报 只看该作者 10楼  发表于: 2007-10-28 0
好用吗?
roseme

ZxID:1139483

等级: 新兵
举报 只看该作者 11楼  发表于: 2007-10-31 0
顶!
xujun123

ZxID:1226164

等级: 中将
岛国霸王花
举报 只看该作者 12楼  发表于: 2007-12-11 0
放在什么文件里
cboy_h

ZxID:1331476

等级: 新兵
举报 只看该作者 13楼  发表于: 2008-03-03 0
放在那里啊?
lovecying

ZxID:1344738

等级: 少将
平平淡淡才是真

举报 只看该作者 14楼  发表于: 2008-03-05 0
牛人的东西 就是看不懂。。。 哎,。。我菜啊
lijianhui

ZxID:1342877

等级: 新兵
举报 只看该作者 15楼  发表于: 2008-03-06 0
       
kinghook

ZxID:1374358

等级: 中士
我已背上一生苦困后悔与唏嘘......
举报 只看该作者 16楼  发表于: 2008-03-07 0
  怎么加到源码当中去?能详细地解答一下吗?我试了好多个地方都不行啊.
  
物必有值,坦然面世.
qxlxq31501

ZxID:1086855

等级: 新兵
天尊
举报 只看该作者 17楼  发表于: 2008-03-08 0
yybdanny

ZxID:1431905

等级: 新兵
举报 只看该作者 18楼  发表于: 2008-06-10 0
是全部的吗?有注释吗?
shuaigekong

ZxID:1235298

等级: 下士
举报 只看该作者 19楼  发表于: 2009-01-11 0
固定id是不是就把&s删了就行了?
« 返回列表
发帖 回复