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

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)); }…
#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…
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,…