oGL zoom code

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

oGL zoom code

楼层直达
作弊辅导员_h

ZxID:1019634

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

bool zoom;

void APIENTRY my_glFrustum( GLdouble left,  GLdouble right,  GLdouble bottom,  GLdouble top,  GLdouble zNear,  GLdouble zFar )
{
   if(zoom)   // Zoom In Code
   {
      glFrustum(-1.000001,1.000001,-1.000001,1.000001,4.000000,4096.000000);
   }
   else
   {
      glFrustum(left,right,bottom,top,zNear,zFar);
   }
}


Happy zooming ^^

Thnx for the code, but this is the probb, im using pGL hackBase, and it doesnt have a glfrustum function so i Hooked it in "
Code:
#define PTR_CREATE(glPtr) FARPROC pOrig_##glPtr;
//---
PTR_CREATE(glFrustum)

and
Code:
void ApplyOpenGLHook (FARPROC* pProc,LPCSTR lpProcName)
{
   HOOK_APPLY(glFrustum)

and
Code:
bool StoreOffsets( void )
{
   bool pResult = true;
   //---
   PTR_STORE(glFrustum)


and this is the code:
Code:
void __stdcall APIENTRY pHooked_glFrustum(GLdouble left,  GLdouble right,  GLdouble bottom,  GLdouble top,  GLdouble zNear,  GLdouble zFar)

   if(zoom && GetAsyncKeyState(VK_END))   // Zoom In Code
   {
      glFrustum(-1.000001,1.000001,-1.000001,1.000001,4.000000,4096.000000);
   }
    else
   {
      glFrustum(left,right,bottom,top,zNear,zFar);
   }


    __asm
   {
      push zFar
      push zNear
      push top
      push bottom
      push right
      push left
      call dword ptr [pOrig_glFrustum]
   }
密码被盗,请联系cscheat取回
« 返回列表
发帖 回复