D3D zoom code

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

D3D zoom code

楼层直达
cheetahcs

ZxID:1226181

等级: 中校
Amazing......
举报 只看楼主 使用道具 楼主   发表于: 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]
WE COME HARDER,YOU GO PRO.
« 返回列表
发帖 回复