摘要: Hook ISurface function. 1 #include 2 #include 3 4 using namespace vgui; 5 6 ISurface *g_pSurface = 0; 7 8 void (__fastcall *g_pfnCSurface... 阅读全文
posted @ 2015-08-19 11:37 Akatsuki- 阅读(748) 评论(0) 推荐(0)
摘要: CFMOD.h 1 #ifndef CFMOD_H 2 #define CFMOD_H 3 4 #include "qfmod.h" 5 6 struct Sound_t 7 { 8 char *pszName; 9 FMOD_SOUND *pSound;10 FMOD_... 阅读全文
posted @ 2015-08-06 21:09 Akatsuki- 阅读(403) 评论(0) 推荐(0)
摘要: QFMOD.h 1 #ifndef QFMOD_H 2 #define QFMOD_H 3 4 #include "fmod.h" 5 6 extern FMOD_RESULT (F_API *qFMOD_Memory_Initialize)(void *poolmem, int p... 阅读全文
posted @ 2015-08-06 16:30 Akatsuki- 阅读(483) 评论(0) 推荐(0)
摘要: This function load a *.tga texture file and convert to OpenGL pixel format, uncompress only. 1 #pragma pack(1) 2 3 struct TgaHeader 4 { 5 unsigne... 阅读全文
posted @ 2015-08-06 00:52 Akatsuki- 阅读(507) 评论(0) 推荐(0)
摘要: By hzqst 1 void R_RicochetSprite(float *pos, model_t *pmodel, float duration, float scale) 2 { 3 TEMPENTITY *tent; 4 5 tent = efx.CL_TempEntA... 阅读全文
posted @ 2015-08-04 20:53 Akatsuki- 阅读(239) 评论(0) 推荐(0)
摘要: By hzqst 1 void R_SparkStreaks(vec_t *pos, int count, int velocityMin, int velocityMax) 2 { 3 int i; 4 particle_t *p, *p2; 5 6 i = 0; 7 ... 阅读全文
posted @ 2015-08-04 20:47 Akatsuki- 阅读(212) 评论(0) 推荐(0)
摘要: By hzqst1 void R_SparkEffect(float *pos, int count, int velocityMin, int velocityMax)2 {3 efx.R_SparkStreaks(pos, count, velocityMin, velocityMax)... 阅读全文
posted @ 2015-08-04 20:39 Akatsuki- 阅读(171) 评论(0) 推荐(0)
摘要: By hzqst 1 void R_SparkShower(float *pos) 2 { 3 TEMPENTITY *tent; 4 5 tent = efx.CL_TempEntAllocNoModel(pos); 6 if ( tent ) 7 { 8 ... 阅读全文
posted @ 2015-08-04 20:33 Akatsuki- 阅读(273) 评论(0) 推荐(0)
摘要: We need hook "GL_LoadTexture"engine function.GL_LOADTEXTURE_SIG from hw.dll(3266) engine, can not use for other engine version. 1 #include 2 #include... 阅读全文
posted @ 2015-08-04 20:18 Akatsuki- 阅读(375) 评论(0) 推荐(0)
摘要: If you want to play Bink video in game, maybe you need this code.QBink.h 1 #ifndef QBINK_H 2 #define QBINK_H 3 4 #include "bink.h" 5 6 extern void P... 阅读全文
posted @ 2015-08-04 19:51 Akatsuki- 阅读(313) 评论(0) 推荐(0)