By hzqst void R_SparkStreaks(vec_t *pos, int count, int velocityMin, int velocityMax) { int i; particle_t *p, *p2; i = ; p = free_particles; while ( free_particles ) { i ++; free_particles = p->next; p2 = gpActiveTracers; gpActiveTracers = p; p->nex…
We need hook "GL_LoadTexture" engine function. GL_LOADTEXTURE_SIG from hw.dll(3266) engine, can not use for other engine version. #include <metahook.h> #include "qgl.h" #include "surface.h" extern DWORD g_dwEngineBase,…
If you want to play Bink video in game, maybe you need this code. QBink.h #ifndef QBINK_H #define QBINK_H #include "bink.h" extern void PTR4* (RADEXPLINK *qBinkLogoAddress)(void); extern void (RADEXPLINK *qBinkSetError)(const char PTR4* err); ex…
MetaHook Plus 是一个GoldSrc引擎(就是的Half-Life.CS1.6的引擎)的客户端插件平台,它可以加载我们自己开发的DLL插件. 首先你需要安装一个 Visual Studio 2005 来编译 MetaHook Plus 本体,也可以用来开发我们自己的插件,这里提供一个镜像文件. 注意:MetaHook Plus 本体必须要用 2005 来编译! ed2k://|file|cs_vs_2005_pro_dvd.iso|2733268992|9DA1C378BAC22E…
Find a non-public function signature, we need a tool "IDA Pro" ( You can open picture in a new window :D ) Step 1 Load your PE file in IDA Step 2 Find your function, you can use F5 to decompile a function You can refer to the string and function…
This function load a *.tga texture file and convert to OpenGL pixel format, uncompress only. #pragma pack(1) struct TgaHeader { unsigned char m_IDLength; unsigned char m_ColorMapType; unsigned char m_ImageType; unsigned short m_CMapStart; unsigned sh…
This function load a LithTech *.dtx texture file and convert to OpenGL pixel format, compressed support. Use FileSystem interface. :D #pragma pack(1) struct DtxHeader { unsigned int iResType; int iVersion; unsigned short usWidth; unsigned short usHei…