How to add dlights to your hack

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

How to add dlights to your hack

楼层直达
作弊辅导员_h

ZxID:1019634

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

void HUD_TempEntUpdate 

add somewhere in body: Code:

if(cvar.light)
  {
      dlight_t *dl = gEngfuncs.pEfxAPI->CL_AllocDlight (0);
      VectorCopy (me.pmEyePos, dl->origin);
      dl->radius = cvar.light;
      dl->color.r = 255;
      dl->color.g = 255;
      dl->color.b = 255;
      dl->die = client_time + 0.01;
  }

  if(cvar.tlight && gAimbot.target!=-1 )
  {
      ColorEntry* color = colorList.get(29);
      dlight_t *dl = gEngfuncs.pEfxAPI->CL_AllocDlight (0);
      VectorCopy ( vPlayers[gAimbot.target].origin(), dl->origin );
      dl->radius = cvar.tlight;
      dl->color.r = color->r;
      dl->color.g = color->g;
      dl->color.b = color->b;
      dl->die = client_time + 0.01;
  }

  // == provide time handler with timing info
  ClientTime::reportMapTime( client_time );

}

cvar.h: Code:

int tlight;
int light;

cvar.cpp Code:

REGISTER_CVAR_INT( light ,0)
REGISTER_CVAR_INT( tlight ,0)
密码被盗,请联系cscheat取回
« 返回列表
发帖 回复