[MetaHook] R_SparkStreaks】的更多相关文章

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…
#include <metahook.h> struct event_hook_t { event_hook_t *next; char *name; void (*pfnEvent)(event_args_s *args); }; #define HOOKEVENT_SIG "\x8D\x44\x24\x08\x56\x8D\x4C\x24\x08\x50\x51\xFF\x15\x2A\x2A\x2A\x2A\x8B\x44\x24\x10\x83\xC4\x08\x85\xC0…
Hook GameUI function. #include <metahook.h> #include <IGameUI.h> IGameUI *g_pGameUI = ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; class CGameUI : public IGameUI { public: void Initialize(CreateInterfaceFn *factories, int count); void Start(struct…
Hook IBaseUI function. #include <metahook.h> #include <IBaseUI.h> IBaseUI *g_pBaseUI = ; ; ; ; ; ; ; ; ; ; ; ; class CBaseUI : public IBaseUI { public: void Initialize(CreateInterfaceFn *factories, int count); void Start(struct cl_enginefuncs_…
Hook ISurface function. #include <metahook.h> #include <vgui/ISurface.h> using namespace vgui; ISurface *g_pSurface = ; ; ; VPANEL (__fastcall *g_pfnCSurface_GetEmbeddedPanel)(; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; IHTML* (__fastcall *g_pfnCSur…
CFMOD.h #ifndef CFMOD_H #define CFMOD_H #include "qfmod.h" struct Sound_t { char *pszName; FMOD_SOUND *pSound; FMOD_CHANNEL *pChannel; Sound_t *pNext; }; #ifdef PlaySound #undef PlaySound #endif class CFmod { public: CFmod(); ~CFmod(); public: v…
QFMOD.h #ifndef QFMOD_H #define QFMOD_H #include "fmod.h" extern FMOD_RESULT (F_API *qFMOD_Memory_Initialize)(void *poolmem, int poollen, FMOD_MEMORY_ALLOCCALLBACK useralloc, FMOD_MEMORY_REALLOCCALLBACK userrealloc, FMOD_MEMORY_FREECALLBACK user…
By hzqst void R_SparkEffect(float *pos, int count, int velocityMin, int velocityMax) { efx.R_SparkStreaks(pos, count, velocityMin, velocityMax); efx.R_RicochetSprite(pos, cl_sprite_ricochet, 0.1, RandomFloat(0.5, 1.0)); }…
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…
Quake OpenGL function for MetaHook plugin. Thank hzqst :D QGL.h #ifndef QGL_H #define QGL_H #include <gl/gl.h> #include <gl/glext.h> extern void (APIENTRY *qglAccum)(GLenum op, GLfloat value); extern void (APIENTRY *qglAlphaFunc)(GLenum func,…
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…
By Nagi void *SearchPattern(void *pStartSearch, DWORD dwSearchLen, char *pPattern, DWORD dwPatternLen) { DWORD dwStartAddr = (DWORD)pStartSearch; DWORD dwEndAddr = dwStartAddr + dwSearchLen - dwPatternLen; while (dwStartAddr < dwEndAddr) { bool found…
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…
By hzqst void R_RicochetSprite(float *pos, model_t *pmodel, float duration, float scale) { TEMPENTITY *tent; tent = efx.CL_TempEntAlloc(pos, pmodel); if( tent ) { tent->entity.curstate.rendermode = kRenderGlow; tent->entity.curstate.renderfx = kRend…
By hzqst void R_SparkShower(float *pos) { TEMPENTITY *tent; tent = efx.CL_TempEntAllocNoModel(pos); if ( tent ) { tent->entity.baseline.origin[] = RandomFloat(-300.0, 300.0); tent->entity.baseline.origin[] = RandomFloat(-300.0, 300.0); tent->flag…
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…
以下是我在2017 ES 广州 meetup的分享 ppt:https://elasticsearch.cn/slides/11#page=22 摘要 ES最多使用的场景是搜索和日志分析,然而ES强大的实时索引查询.全文检索和聚合能力也能成为数据仓库与OLAP场景的强力支持.本次分享将为大家带来数说故事如何借助ES和Hadoop生态在不同的数据场景下构建起数据仓库能力. 背景 数说故事主要业务为数据商业智能分析,涉及业务包括数字营销.数据分析洞察.消费者连接,同时我们还拥有自己的数据源. 目前我…