dynamic walls

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

dynamic walls

楼层直达
作弊辅导员_h

ZxID:1019634

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

Well for instance this is wallhack code (flautz):


code:--------------------------------------------------------------------------------
if (Wh_tw)
{
 if(mode != GL_TRIANGLES && mode != GL_TRIANGLE_STRIP && mode != GL_TRIANGLE_FAN && mode != GL_QUADS ) // If HL is drawing a wall
 {
 float curcolor[4];
 glGetFloatv(GL_CURRENT_COLOR, curcolor);
 glDisable(GL_DEPTH_TEST);
 glEnable (GL_BLEND);     
        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

  glColor4f(curcolor[0], curcolor[1], curcolor[2], 0.5f); // Blend the current colors and make the walls 50% transparent
 }
}--------------------------------------------------------------------------------


Notice the glColor4f function. It takes the parameters for red green and blue and the last value is alpha. If you wanted to do a more red wallhack you could add some random value to curcolor[0] like 35 or something. The alpha value will basically remain constant so you can make it a variable.

Just make the glColor4f function look something like

code:--------------------------------------------------------------------------------glColor4f(curcolor[0]+rvalue, curcolor[1]+gvalue, curcolor[2]+bvalue, myalphavariable);--------------------------------------------------------------------------------


Now in your menu or whatever, just make an option that increments or decrements the values: rvalue, gvalue, bvalue, and myalphavariable.

When you want to save the strings, just save the values to an output file however you want. Next time you load them it will work the way it did.

密码被盗,请联系cscheat取回
« 返回列表
发帖 回复