fork(14) download
  1. -- your code goes hereMisc Xorbase
  2. #define Valve001 /*Valve001*/XorStr<0xE0, 9, 0xAC8FE543>("\xB6\x80\x8E\x95\x81\xD5\xD6\xD6" + 0xAC8FE543).s
  3. // Factory Xorbase
  4. #define VClientPrediction /*VClientPrediction*/XorStr<0xB6,18,0xB9FE4AA4>("\xE0\xF4\xD4\xD0\xDF\xD5\xC8\xED\xCC\xDA\xA4\xA8\xA1\xB7\xAD\xAA\xA8"+0xB9FE4AA4).s
  5. #define GameMovement /*GameMovement*/XorStr<0x0D,13,0x9718CA9D>("\x4A\x6F\x62\x75\x5C\x7D\x65\x71\x78\x73\x79\x6C"+0x9718CA9D).s
  6. #define VClientEntityList /*VClientEntityList*/XorStr<0x1D,18,0xA581C4C4>("\x4B\x5D\x73\x49\x44\x4C\x57\x61\x4B\x52\x4E\x5C\x50\x66\x42\x5F\x59"+0xA581C4C4).s
  7. #define VEngineClient /*VEngineClient*/XorStr<0x36,14,0xB3A44271>("\x60\x72\x56\x5E\x53\x55\x59\x7E\x52\x56\x25\x2F\x36"+0xB3A44271).s
  8. #define VModelInfoClient /*VModelInfoClient*/XorStr<0x86,17,0x85D55DC3>("\xD0\xCA\xE7\xED\xEF\xE7\xC5\xE3\xE8\xE0\xD3\xFD\xFB\xF6\xFA\xE1"+0x85D55DC3).s
  9. #define EngineTraceClient /*EngineTraceClient*/XorStr<0x29,18,0x95BF0A98>("\x6C\x44\x4C\x45\x43\x4B\x7B\x42\x50\x51\x56\x77\x59\x5F\x52\x56\x4D"+0x95BF0A98).s
  10. #define VEngineEffects /*VEngineEffects*/XorStr<0x4F,15,0x7CF80FBB>("\x19\x15\x3F\x35\x3A\x3A\x30\x13\x31\x3E\x3C\x39\x2F\x2F"+0x7CF80FBB).s
  11. #define VGUI_Surface /*VGUI_Surface*/XorStr<0x8D,13,0x69A96E81>("\xDB\xC9\xDA\xD9\xCE\xC1\xE6\xE6\xF3\xF7\xF4\xFD"+0x69A96E81).s
  12. #define VDebugOverlay /*VDebugOverlay*/XorStr<0x1E,14,0x211EDC00>("\x48\x5B\x45\x43\x57\x44\x6B\x53\x43\x55\x44\x48\x53"+0x211EDC00).s
  13. #define VEngineRenderView /*VEngineRenderView*/XorStr<0xA4,18,0xF157A3FE>("\xF2\xE0\xC8\xC0\xC1\xC7\xCF\xF9\xC9\xC3\xCA\xCA\xC2\xE7\xDB\xD6\xC3"+0xF157A3FE).s
  14. #define SteamClient007 /*SteamClient007*/XorStr<0x0E,15,0x5D0AF176>("\x5D\x7B\x75\x70\x7F\x50\x78\x7C\x73\x79\x6C\x29\x2A\x2C"+0x5D0AF176).s
  15. #define SteamFriends003 /*SteamFriends003*/XorStr<0x59,16,0x844692F4>("\x0A\x2E\x3E\x3D\x30\x18\x2D\x09\x04\x0C\x07\x17\x55\x56\x54"+0x844692F4).s
  16. #define VClient /*VClient*/XorStr<0x65,8,0xB2D7AEC7>("\x33\x25\x0B\x01\x0C\x04\x1F"+0xB2D7AEC7).s
  17. #define VMaterialSystem /*VMaterialSystem*/XorStr<0x29,16,0x1AC4CD03>("\x7F\x67\x4A\x58\x48\x5C\x46\x51\x5D\x61\x4A\x47\x41\x53\x5A"+0x1AC4CD03).s
  18. #define VGUI_Panel /*VGUI_Panel*/XorStr<0x51,11,0xD210EF44>("\x07\x15\x06\x1D\x0A\x06\x36\x36\x3C\x36"+0xD210EF44).s
  19. #define GAMEEVENTSMANAGER002 /*GAMEEVENTSMANAGER002*/XorStr<0xC7,21,0xB69E4B99>("\x80\x89\x84\x8F\x8E\x9A\x88\x80\x9B\x83\x9C\x93\x9D\x95\x92\x93\x85\xE8\xE9\xE8"+0xB69E4B99).s
  20. #define VEngineModel /*VEngineModel*/XorStr<0x42,13,0x6F6F01C3>("\x14\x06\x2A\x22\x2F\x29\x2D\x04\x25\x2F\x29\x21"+0x6F6F01C3).s
  21. #define IEngineSoundClient /*IEngineSoundClient*/XorStr<0x20,19,0x10EB2B30>("\x69\x64\x4C\x44\x4D\x4B\x43\x74\x47\x5C\x44\x4F\x6F\x41\x47\x4A\x5E\x45"+0x10EB2B30).s
  22. #define VPhysicsDebugOverlay /*VPhysicsDebugOverlay*/XorStr<0xCD,21,0x737BA0A7>("\x9B\x9E\xA7\xA9\xA2\xBB\xB0\xA7\x91\xB3\xB5\xAD\xBE\x95\xAD\xB9\xAF\xB2\xBE\x99"+0x737BA0A7).s
  23. #define VEngineShadowMgr /*VEngineShadowMgr*/XorStr<0x97,17,0x6A9B763D>("\xC1\xDD\xF7\xFD\xF2\xF2\xF8\xCD\xF7\xC1\xC5\xCD\xD4\xE9\xC2\xD4"+0x6A9B763D).s
  24. #define BlackBoxVersion /*BlackBoxVersion*/XorStr<0x6D,16,0xC88752E2>("\x2F\x02\x0E\x13\x1A\x30\x1C\x0C\x23\x13\x05\x0B\x10\x15\x15"+0xC88752E2).s
  25. #define VCLIENTENGINETOOLS /*VCLIENTENGINETOOLS*/XorStr<0xB2,19,0x50325170>("\xE4\xF0\xF8\xFC\xF3\xF9\xEC\xFC\xF4\xFC\xF5\xF3\xFB\xEB\x8F\x8E\x8E\x90"+0x50325170).s
  26. #define VEngineVGui /*VEngineVGui*/XorStr<0xEA,12,0x5FE3AD1A>("\xBC\xAE\x82\x8A\x87\x81\x95\xA7\xB5\x86\x9D"+0x5FE3AD1A).s
  27. #define InputSystemVersion /*InputSystemVersion*/XorStr<0x30,19,0xF07789F8>("\x79\x5F\x42\x46\x40\x66\x4F\x44\x4C\x5C\x57\x6D\x59\x4F\x4D\x56\x2F\x2F"+0xF07789F8).s
  28. #define VPhysicsSurfaceProps /*VPhysicsSurfaceProps*/XorStr<0x28,21,0x3E7076FB>("\x7E\x79\x42\x52\x5F\x44\x4D\x5C\x63\x44\x40\x55\x55\x56\x53\x67\x4A\x56\x4A\x48"+0x3E7076FB).s
  29. #define VPhysicsCollision /*VPhysicsCollision*/XorStr<0xD0,18,0x6420ED31>("\x86\x81\xBA\xAA\xA7\xBC\xB5\xA4\x9B\xB6\xB6\xB7\xB5\xAE\xB7\xB0\x8E"+0x6420ED31).s
  30. #define VPhysics /*VPhysics*/XorStr<0x96,9,0x61DF4039>("\xC0\xC7\xF0\xE0\xE9\xF2\xFF\xEE"+0x61DF4039).s
  31. #define ShaderDLL /*ShaderDLL*/XorStr<0xE6,10,0x8B14681A>("\xB5\x8F\x89\x8D\x8F\x99\xA8\xA1\xA2"+0x8B14681A).s
  32. #define ShaderSystem /*ShaderSystem*/XorStr<0x7F,13,0xE636CCF5>("\x2C\xE8\xE0\xE6\xE6\xF6\xD6\xFF\xF4\xFC\xEC\xE7"+0xE636CCF5).s
  33. #define VMaterialSystemStub /*VMaterialSystemStub*/XorStr<0xEB,20,0x8451F450>("\xBD\xA1\x8C\x9A\x8A\x82\x98\x93\x9F\xA7\x8C\x85\x83\x9D\x94\xA9\x8F\x89\x9F"+0x8451F450).s
  34. #define VEngineCvar /*VEngineCvar*/XorStr<0x8D,12,0x8C803C90>("\xDB\xCB\xE1\xF7\xF8\xFC\xF6\xD7\xE3\xF7\xE5"+0x8C803C90).s
  35. #define VStudioRender /*VStudioRender*/XorStr<0x67,14,0x7315D5E0>("\x31\x3B\x1D\x1F\x0F\x05\x02\x3C\x0A\x1E\x15\x17\x01"+0x7315D5E0).s
  36. #define VSoundEmitter /*VSoundEmitter*/XorStr<0xD9,14,0x67922792>("\x8F\x89\xB4\xA9\xB3\xBA\x9A\x8D\x88\x96\x97\x81\x97"+0x67922792).s
  37. #define MATCHFRAMEWORK_ /*MATCHFRAMEWORK_*/XorStr<0x9B,16,0x5DC7A952>("\xD6\xDD\xC9\xDD\xD7\xE6\xF3\xE3\xEE\xE1\xF2\xE9\xF5\xE3\xF6"+0x5DC7A952).s
  38. #define VCLIENTTOOLS /*VCLIENTTOOLS*/XorStr<0x85,13,0xF85E6295>("\xD3\xC5\xCB\xC1\xCC\xC4\xDF\xD8\xC2\xC1\xC3\xC3"+0xF85E6295).s
  39. #define RunGameEngine /*RunGameEngine*/XorStr<0xCF,14,0xBCA6FA95>("\x9D\xA5\xBF\x95\xB2\xB9\xB0\x93\xB9\xBF\xB0\xB4\xBE"+0xBCA6FA95).s
  40. #define GameUI /*GameUI*/XorStr<0x36,7,0xE02033D8>("\x71\x56\x55\x5C\x6F\x72"+0xE02033D8).s
  41. #define GameConsole /*GameConsole*/XorStr<0x84,12,0xDB992D74>("\xC3\xE4\xEB\xE2\xCB\xE6\xE4\xF8\xE3\xE1\xEB"+0xDB992D74).s
  42. #define ClientLeafSystem /*ClientLeafSystem*/XorStr<0xBC,17,0xF73B131B>("\xFF\xD1\xD7\xDA\xAE\xB5\x8E\xA6\xA5\xA3\x95\xBE\xBB\xBD\xAF\xA6"+0xF73B131B).s
  43. #define VENGINE_GAMETYPES_VERSION /*VENGINE_GAMETYPES_VERSION*/XorStr<0x70,26,0x93131703>("\x26\x34\x3C\x34\x3D\x3B\x33\x28\x3F\x38\x37\x3E\x28\x24\x2E\x3A\xD3\xDE\xD4\xC6\xD6\xD6\xCF\xC8\xC6"+0x93131703).s
  44. #define ShaderShadow /*ShaderShadow*/XorStr<0x57,13,0x43E913EB>("\x04\x30\x38\x3E\x3E\x2E\x0E\x36\x3E\x04\x0E\x15"+0x43E913EB).s
  45. #define ShaderDeviceMgr /*ShaderDeviceMgr*/XorStr<0xD3,16,0x8CEA10C6>("\x80\xBC\xB4\xB2\xB2\xAA\x9D\xBF\xAD\xB5\xBE\xBB\x92\x87\x93"+0x8CEA10C6).s
  46. #define ShaderDevice /*ShaderDevice*/XorStr<0x2F,13,0xC548EC9E>("\x7C\x58\x50\x56\x56\x46\x71\x53\x41\x51\x5A\x5F"+0xC548EC9E).s
  47. #define ShaderApi /*ShaderApi*/XorStr<0x1F,10,0xA07AD0F0>("\x4C\x48\x40\x46\x46\x56\x64\x56\x4E"+0xA07AD0F0).s
  48. // Things
  49. #define MODEL_TEXTURES /*Model textures*/XorStr<0x83,15,0xFF037887>("\xCE\xEB\xE1\xE3\xEB\xA8\xFD\xEF\xF3\xF8\xF8\xFC\xEA\xE3"+0xFF037887).s
  50. #define MODEL_CLIENTEFFECT /*ClientEffect textures*/XorStr<0x86,22,0xADF4834D>("\xC5\xEB\xE1\xEC\xE4\xFF\xC9\xEB\xE8\xEA\xF3\xE5\xB2\xE7\xF1\xED\xE2\xE2\xEA\xFC\xE9"+0xADF4834D).s
  51. #define WORLD_TEXTURES /*World*/XorStr<0xF1,6,0xF1733D58>("\xA6\x9D\x81\x98\x91"+0xF1733D58).s
  52. #define SKYBOX_TEXTURES /*SkyBox textures*/XorStr<0x3B,16,0x7E6DE8D3>("\x68\x57\x44\x7C\x50\x38\x61\x36\x26\x3C\x31\x33\x35\x2D\x3A"+0x7E6DE8D3).s
  53.  
  54.  
  55. #define clientmodeoffset 0x4AAE330
  56.  
  57. #include "sdk.h"
  58. #include "xor.h"
  59. #include "Cvars.h"
  60. #include "Toolbox.h"
  61. #include "Drawing.h"
  62. #include "ESP.h"
  63. #include "Aimbot.h"
  64. #include "Keyp.h"
  65. #include "delta.h"
  66. #include "Misc.h"
  67. #include "Math.h"
  68. #include "Netvar.h"
  69.  
  70. IBaseClientDLL* g_pBaseClientDLL = NULL;
  71. IVEngineClient* g_pEngineClient = NULL;
  72. IClientEntityList* g_pClientEntityList = NULL;
  73. ISurface* g_pSurface = NULL;
  74. CGlobalVarsBase* g_pGlobals = NULL;
  75. CInput* g_pInput = NULL;
  76. IVModelInfoClient* g_pModelInfoClient = NULL;
  77. IPanel* g_pPanel = NULL;
  78. IMaterialSystem* g_pMaterialSystem = NULL;
  79. IGameEventManager2* g_pGameEventManager = NULL;
  80. IVModelRender* g_pModelRender = NULL;
  81. IEngineTrace* g_pEngineTrace = NULL;
  82. ICvar* g_pCvar = NULL;
  83. IGameMovement* g_pGameMovement = NULL;
  84. IPrediction* g_pPrediction = NULL;
  85. IVEffects* g_pVEffects = NULL;
  86. IVDebugOverlay* g_pDebugOverlay = NULL;
  87. IVRenderView* g_pRenderView = NULL;
  88. IEngineSound* g_pEngineSound = NULL;
  89. IVPhysicsDebugOverlay* g_pPhysicsDebugOverlay = NULL;
  90. IShadowMgr* g_pShadowManager = NULL;
  91. IBlackBox* g_pBlackBox = NULL;
  92. IClientEngineTools* g_pClientEngineTools = NULL;
  93. IEngineVGui* g_pEngineVGui = NULL;
  94. IInputSystem* g_pInputSystem = NULL;
  95. IMatchFramework* g_pMatchFramework = NULL;
  96. IPhysicsSurfaceProps* g_pPhysicsSurfaceProps = NULL;
  97. IPhysicsCollision* g_pPhysicsCollision = NULL;
  98. IPhysics* g_pPhysics = NULL;
  99. IShaderSystem* g_pShaderSystem = NULL;
  100. IShaderDLLInternal* g_pShaderDLL = NULL;
  101. IMaterialSystemStub* g_pMaterialSystemStub = NULL;
  102. IStudioRender* g_pStudioRender = NULL;
  103. ISoundEmitterSystemBase* g_pSoundEmitterBase = NULL;
  104. IShaderShadow* g_pShaderShadow = NULL;
  105. IShaderDeviceMgr* g_pShaderDeviceMgr = NULL;
  106. IShaderDevice* g_pShaderDevice = NULL;
  107. IShaderAPI* g_pShaderApi = NULL;
  108. ISteamClient* g_pSteamClient = NULL;
  109. ISteamFriends* g_pSteamFriends = NULL;
  110. INetChannelInfo* g_pChannel = NULL;
  111. void* g_pClientMode = NULL;
  112.  
  113. tCreateMove oCreateMove;
  114. tPaintTraverse oPaintTraverse;
  115. tFrameStageNotify oFrameStageNotify;
  116. tSetCursorPos oSetCursorPos;
  117. tGetCursorPos oGetCursorPos;
  118. tFindMaterial oFindMaterial;
  119. tKeyEvent oKeyEvent;
  120. tclCreateMove oclCreateMove;
  121. tclOverrideView oclOverrideView;
  122. tclShouldDrawParticles oclShouldDrawParticles;
  123. //======================================================================
  124. #if defined(HACK_GMOD)
  125. CUserCmd *WINAPI hkGetUserCmd(int sequence_number)
  126. {
  127. static CUserCmd* pCmd = *(CUserCmd **)((DWORD)g_pInput + 0xC4);
  128. return &pCmd[sequence_number % MULTIPLAYER_BACKUP];
  129. }
  130. //======================================================================
  131.  
  132. //======================================================================
  133. bool WINAPI hkWriteUsercmdDeltaToBuffer(void* buf, int from, int to, bool isnew)
  134. {
  135. CUserCmd nullcmd, *F, *T;
  136.  
  137. typedef void(__cdecl* tWriteUserCmd)(void*, CUserCmd*, CUserCmd*);
  138. static tWriteUserCmd WriteUserCmd = (tWriteUserCmd)gToolBox.FindPattern(clientdll, "\x55\x8B\xEC\x8B\x45\x10\x8B\x48\x04");
  139. //util::FindPattern((DWORD)GetModuleHandle(clientdll), 0x640000, "\x55\x8B\xEC\x8B\x45\x10\x8B\x48\x04") NANO
  140.  
  141.  
  142. if (from == -1)
  143. F = &nullcmd;
  144. else if (!(F = hkGetUserCmd(from)))
  145. F = &nullcmd;
  146.  
  147. if (!(T = hkGetUserCmd(to)))
  148. T = &nullcmd;
  149.  
  150. WriteUserCmd(buf, T, F);
  151.  
  152. return !(*(bool*)((DWORD)buf + 0x10));
  153. }
  154. #endif
  155. //======================================================================
  156.  
  157. //======================================================================
  158. void WINAPI hkCreateMove(int sequence_number, float input_sample_frametime, bool active)
  159. {
  160. CBaseCombatWeapon* pBaseWeapon = NULL;
  161. IClientEntity* pLocal = NULL;
  162. byte* bSendPacket = NULL;
  163. void* __ebp = NULL;
  164.  
  165. pLocal = (IClientEntity*)g_pClientEntityList->GetClientEntity(g_pEngineClient->GetLocalPlayer());
  166.  
  167. if (pLocal)
  168. {
  169. pBaseWeapon = pLocal->m_hActiveWeapon(g_pClientEntityList);
  170. #if defined(HACK_TF2)
  171. if (pBaseWeapon && pLocal->IsAlive() && gVars.misc_bhop)
  172. {
  173. if (pLocal->m_iPlayerClass() == TFClass_Heavy && pBaseWeapon->GetClientClass()->GetName() && streql(pBaseWeapon->GetClientClass()->GetName(), /*Minigun*/XorStr<0x56, 8, 0x2F3249BE>("\x1B\x3E\x36\x30\x3D\x2E\x32" + 0x2F3249BE).s));
  174. *(int*)((DWORD)pBaseWeapon + gAddys.m_iWeaponState) = AC_STATE_IDLE;
  175. }
  176. #endif
  177. }
  178.  
  179. oCreateMove(sequence_number, input_sample_frametime, active);
  180.  
  181. CUserCmd* pCmd = GetMGUserCmd(sequence_number);
  182. if (!pCmd)
  183. return;
  184.  
  185. Vector vecOldView = pCmd->m_vecViewAngles;
  186. Vector vecOldMove = pCmd->m_vecMove;
  187. gVars.RadarView = vecOldView;
  188.  
  189. _asm
  190. {
  191. mov __ebp, ebp;
  192. };
  193.  
  194. #if !defined(HACK_CSGO)
  195. bSendPacket = (byte *)(*(char **)__ebp - 0x1);
  196. #endif
  197. // Move Modifiers #
  198. gMisc.AntiAim(pCmd, pLocal, bSendPacket, vecOldView); // AA
  199. gMisc.SpamMove(pCmd);
  200. gAimbot.DoAim(pCmd, pLocal, pBaseWeapon); // Aimer
  201. gAimbot.SimulateBulletFire(pCmd, pLocal, pBaseWeapon); // Spread, Recoil, Bullet drop
  202. gAimbot.DoTrigger(pCmd, pLocal, pBaseWeapon);
  203. gMisc.SpeedHack(__ebp, bSendPacket);
  204. gMisc.Airstuck(bSendPacket, pCmd);
  205. gMisc.Autostrafe(pCmd, pLocal, bSendPacket);
  206. gMisc.FakeLag(pCmd, bSendPacket);
  207. gMisc.SpamCommands();
  208. gMisc.NameSteal();
  209. gMisc.ForceSkin(pBaseWeapon, 38);
  210.  
  211. if (gVars.misc_ghostmode && gKeyInput.alt_holding)
  212. pCmd->m_vecMove = Vector(0, 0, 0);
  213.  
  214. if (gVars.aimbot_fixangles)
  215. {
  216. pCmd->m_vecMove.z = 0;
  217. pCmd->m_vecViewAngles.z = 0;
  218.  
  219. if (isinf(pCmd->m_vecMove.x)
  220. || isinf(pCmd->m_vecMove.y)
  221. || isinf(pCmd->m_vecMove.z)
  222. || pCmd->m_vecMove.z != 0.0f
  223. || pCmd->m_vecMove.x > 1000 || pCmd->m_vecMove.x < -1000
  224. || pCmd->m_vecMove.y > 1000 || pCmd->m_vecMove.y < -1000
  225. || pCmd->m_vecMove.z > 1000 || pCmd->m_vecMove.z < -1000)
  226. {
  227. gToolBox.ConsoleColor(ConCol::RED, /*[RIP MANAGER] Move(%f %f %f)*/XorStr<0x4E, 29, 0xEA3108FE>("\x15\x1D\x19\x01\x72\x1E\x15\x1B\x17\x10\x1D\x0B\x07\x7B\x11\x32\x28\x3A\x48\x44\x04\x43\x41\x03\x46\x42\x0E\x40" + 0xEA3108FE).s, pCmd->m_vecMove.x, pCmd->m_vecMove.y, pCmd->m_vecMove.z);
  228. pCmd->m_vecMove.x = vecOldMove.x;
  229. pCmd->m_vecMove.y = vecOldMove.y;
  230. }
  231.  
  232. pCmd->m_vecViewAngles.Fix();
  233.  
  234. if (pCmd->m_vecViewAngles.z != 0.0f
  235. || pCmd->m_vecViewAngles != pCmd->m_vecViewAngles
  236. || pCmd->m_vecViewAngles.x < -89 || pCmd->m_vecViewAngles.x > 89
  237. || pCmd->m_vecViewAngles.y < -180 || pCmd->m_vecViewAngles.y > 180
  238. || pCmd->m_vecViewAngles.y < -179.99 || pCmd->m_vecViewAngles.y > 179.99
  239. || isinf(pCmd->m_vecViewAngles.x)
  240. || isinf(pCmd->m_vecViewAngles.y)
  241. || isinf(pCmd->m_vecViewAngles.z))
  242. {
  243. gToolBox.ConsoleColor(ConCol::RED, /*[RIP MANAGER] Vector(%f %f %f)*/XorStr<0xDF, 31, 0x2499905D>("\x84\xB2\xA8\xB2\xC3\xA9\xA4\xA8\xA6\xAF\xAC\xB8\xB6\xCC\xBB\x8B\x8C\x84\x9E\x80\xDB\xD1\x93\xD6\xD2\x9E\xD9\xDF\x9D\xD5" + 0x2499905D).s, pCmd->m_vecViewAngles.x, pCmd->m_vecViewAngles.y, pCmd->m_vecViewAngles.z);
  244. pCmd->m_vecViewAngles.x = vecOldView.x;
  245. pCmd->m_vecViewAngles.y = vecOldView.y;
  246. }
  247. }
  248.  
  249. if (!gVars.aimbot_silent)
  250. g_pEngineClient->SetViewAngles(pCmd->m_vecViewAngles);
  251.  
  252. #if !defined(HACK_GMOD)
  253. CInput::CVerifiedUserCmd* pVerfiedCmd = *(CInput::CVerifiedUserCmd**)((DWORD)g_pInput + pVerifiedCommandOff);
  254. if (!pVerfiedCmd)
  255. return;
  256.  
  257. CInput::CVerifiedUserCmd* pVerfied = &pVerfiedCmd[sequence_number % MULTIPLAYER_BACKUP];
  258. if (!pVerfied)
  259. return;
  260.  
  261. pVerfied->m_cmd = *pCmd;
  262. pVerfied->m_crc = gToolBox.GetCRC(pCmd);
  263. #endif
  264. }
  265. //======================================================================
  266.  
  267. //======================================================================
  268. void WINAPI hkclCreateMove(float input_sample_frametime, CUserCmd* pCmd)
  269. {
  270. static bool sbDoneOnce = false;
  271. if (!sbDoneOnce)
  272. {
  273. prnQuick("*barks internally*");
  274. sbDoneOnce = true;
  275. }
  276.  
  277. Vector vecOldView = pCmd->m_vecViewAngles;
  278. Vector vecOldMove = pCmd->m_vecMove;
  279.  
  280. oclCreateMove(input_sample_frametime, pCmd);
  281. }
  282. //======================================================================
  283.  
  284. //======================================================================
  285. void WINAPI hkclOverrideView(CViewSetup* pSetup)
  286. {
  287. static Vector newOrigin;
  288.  
  289. if (g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  290. {
  291. IClientEntity* pLocal = (IClientEntity*)g_pClientEntityList->GetClientEntity(g_pEngineClient->GetLocalPlayer());
  292. if (!pLocal)
  293. return;
  294.  
  295. if (gVars.misc_fovhack && pSetup->fov != 120.0f)
  296. pSetup->fov = 120.0f;
  297.  
  298. if (!gKeyInput.alt_holding)
  299. newOrigin = pSetup->origin;
  300.  
  301. if (gVars.misc_ghostmode && gKeyInput.alt_holding)
  302. {
  303. float fSpeed = 5.f;
  304. if (GetAsyncKeyState(VK_CONTROL))
  305. fSpeed = fSpeed * 0.45;
  306.  
  307. if (GetAsyncKeyState(VK_SHIFT))
  308. fSpeed = fSpeed * 1.65;
  309.  
  310. if (GetAsyncKeyState(0x57)) // W
  311. newOrigin += pSetup->angles.Forward() * fSpeed;
  312.  
  313. if (GetAsyncKeyState(0x41)) // A
  314. newOrigin -= pSetup->angles.Right() * fSpeed;
  315.  
  316. if (GetAsyncKeyState(0x44)) // D
  317. newOrigin += pSetup->angles.Right() * fSpeed;
  318.  
  319. if (GetAsyncKeyState(0x53)) // S
  320. newOrigin -= pSetup->angles.Forward() * fSpeed;
  321.  
  322. if (GetAsyncKeyState(VK_SPACE)) // S
  323. newOrigin += pSetup->angles.Up() * fSpeed;
  324.  
  325. if (gKeyInput.e_holding)
  326. {
  327. Vector vecEnd;
  328. trace_t tr;
  329. Ray_t ray;
  330.  
  331. gMath._AngleVectors(pSetup->angles, &vecEnd);
  332.  
  333. vecEnd = vecEnd * 8192.0f + newOrigin;
  334.  
  335. ray.Init(newOrigin, vecEnd);
  336.  
  337. g_pEngineTrace->TraceRay(ray, CONTENTS_SOLID, NULL, &tr);
  338.  
  339. newOrigin = tr.endpos;
  340. }
  341.  
  342. pSetup->origin = newOrigin;
  343. }
  344. }
  345.  
  346. oclOverrideView(pSetup);
  347. }
  348. //======================================================================
  349.  
  350. //======================================================================
  351. bool WINAPI hkclShouldDrawParticles()
  352. {
  353. if (gVars.esp_noparticles)
  354. return false;
  355.  
  356. return oclShouldDrawParticles();
  357. }
  358. //======================================================================
  359.  
  360. //======================================================================
  361. void WINAPI hkPaintTraverse(VPANEL vguiPanel, bool forceRepaint, bool allowForce)
  362. {
  363. oPaintTraverse(vguiPanel, forceRepaint, allowForce);
  364.  
  365. static bool sbFoundPanel = false;
  366. static bool unlockonce = false;
  367. static bool lockonce = false;
  368. VPANEL uiPopupPanel = NULL;
  369.  
  370. if (!uiPopupPanel)
  371. {
  372. const char* panelName = g_pPanel->GetName(vguiPanel);
  373. if (!panelName)
  374. return;
  375.  
  376. if (gToolBox.IsGoodPanel(panelName))
  377. {
  378. if (!sbFoundPanel)
  379. prn(ConCol::DARKGRAY, /*[PaintTraverse] Panel Name: %s*/XorStr<0xFE, 31, 0x3DBD2073>("\xA5\xAF\x61\x68\x6C\x77\x50\x77\x67\x71\x6D\x7B\x79\x6E\x51\x2D\x5E\x6E\x7E\x74\x7E\x33\x5A\x74\x7B\x72\x22\x39\x3F\x68" + 0x3DBD2073).s, panelName);
  380. uiPopupPanel = vguiPanel;
  381. }
  382. }
  383.  
  384. if (uiPopupPanel == vguiPanel)
  385. {
  386. if (!sbFoundPanel)
  387. {
  388. pDrawing.Initialize();
  389. prn(ConCol::DARKGRAY, /*[PaintTraverse] Called pDrawing.Initialize()*/XorStr<0x7E, 45, 0x95A11AC2>("\x25\x2F\xE1\xE8\xEC\xF7\xD0\xF7\xE7\xF1\xED\xFB\xF9\xEE\xD1\xAD\xCD\xEE\xFC\xFD\xF7\xF7\xB4\xE5\xD2\xE5\xF9\xEE\xF3\xF5\xFB\xB3\xD7\xF1\xC9\xD5\xCB\xC2\xC8\xCC\xDC\xC2\x80\x80" + 0x95A11AC2).s);
  390. sbFoundPanel = true;
  391. }
  392.  
  393. while (pScreenSize.m_iHeight < 300 || pScreenSize.m_iWidth < 300)
  394. g_pEngineClient->GetScreenSize(pScreenSize.m_iWidth, pScreenSize.m_iHeight);
  395.  
  396. gMisc.StatsThink();
  397. gKeyInput.Think();
  398. gGUIInput.Think();
  399.  
  400. if ((gVars.misc_antiscreenshot && !gKeyInput.f12_holding) || !gVars.misc_antiscreenshot)
  401. {
  402. Radar->Think();
  403. Radar->Paint();
  404.  
  405. if (g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  406. {
  407. IClientEntity* pLocal = (IClientEntity*)g_pClientEntityList->GetClientEntity(g_pEngineClient->GetLocalPlayer());
  408. if (!pLocal)
  409. return;
  410.  
  411. CBaseCombatWeapon* pBaseWeapon = pLocal->m_hActiveWeapon(g_pClientEntityList);
  412. if (!pBaseWeapon)
  413. return;
  414.  
  415. gMisc.DrawESP(pLocal, pBaseWeapon);
  416. }
  417.  
  418. pDrawing.DrawString(FONT_MENU_OUTLINED, WinAlign::WIDTH, (pScreenSize.m_iWidth / 2), 100, MENU_BH, "Win200");
  419.  
  420. Clock->Think();
  421. Clock->Paint();
  422. InfoBox->Paint();
  423. InfoBox->Think();
  424. Game_Snake->Think();
  425. Game_Snake->Paint();
  426. #if defined(HACK_CSS)
  427. StatsBox->Think();
  428. StatsBox->Paint();
  429. #endif
  430. }
  431.  
  432. if (gVars.hotkey_menu)
  433. {
  434. if (!unlockonce && g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  435. {
  436. #ifdef HACK_CSGO
  437. g_pEngineClient->ClientCmd(/*cl_mouseenable 0*/XorStr<0xE2, 17, 0x4CC92237>("\x81\x8F\xBB\x88\x89\x92\x9B\x8C\x8F\x85\x8D\x8F\x82\x8A\xD0\xC1" + 0x4CC92237).s);
  438. #else
  439. g_pSurface->SetCursorAlwaysVisible(true);
  440. #endif
  441. unlockonce = true;
  442. lockonce = false;
  443. }
  444.  
  445. Menu->Paint();
  446. Menu->Think();
  447. gKeyInput.DrawCursor();
  448. }
  449. else
  450. {
  451. if (!lockonce && g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  452. {
  453. #ifdef HACK_CSGO
  454. g_pEngineClient->ClientCmd(/*cl_mouseenable 1*/XorStr<0x63, 17, 0x14FAA548>("\x00\x08\x3A\x0B\x08\x1D\x1A\x0F\x0E\x02\x0C\x0C\x03\x15\x51\x43" + 0x14FAA548).s);
  455. #else
  456. g_pSurface->SetCursorAlwaysVisible(false);
  457. #endif
  458. lockonce = true;
  459. unlockonce = false;
  460. }
  461. }
  462. }
  463. }
  464. //======================================================================
  465.  
  466. //======================================================================
  467. void WINAPI hkFrameStageNotify(ClientFrameStage_t curStage)
  468. {
  469. Vector* PunchAngle = NULL, *ViewPunch = NULL, OldPunch, OldViewPunch;
  470.  
  471. if (curStage == FRAME_RENDER_START)
  472. {
  473. if (gVars.aimbot_novisrecoil && g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  474. {
  475. IClientEntity* pLocal = (IClientEntity*)g_pClientEntityList->GetClientEntity(g_pEngineClient->GetLocalPlayer());
  476. if (pLocal && pLocal->IsAlive())
  477. {
  478. PunchAngle = (Vector*)((DWORD)pLocal + gAddys.m_vecPunchAngle);
  479. OldPunch = *PunchAngle;
  480. *PunchAngle = Vector(0.0f, 0.0f, 0.0f);
  481. #if defined(HACK_CSGO)
  482. ViewPunch = (Vector*)((DWORD)pLocal + gAddys.m_viewPunchAngle);
  483. OldViewPunch = *ViewPunch;
  484. *ViewPunch = Vector(0.0f, 0.0f, 0.0f);
  485. #endif
  486. }
  487. }
  488. }
  489.  
  490. oFrameStageNotify(curStage);
  491.  
  492. if (curStage == FRAME_RENDER_START)
  493. {
  494. if (gVars.aimbot_novisrecoil && g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  495. {
  496. IClientEntity* pLocal = (IClientEntity*)g_pClientEntityList->GetClientEntity(g_pEngineClient->GetLocalPlayer());
  497. if (pLocal && pLocal->IsAlive())
  498. {
  499. *PunchAngle = OldPunch;
  500. #if defined(HACK_CSGO)
  501. *ViewPunch = OldViewPunch;
  502. #endif
  503. }
  504. }
  505. }
  506. }
  507. //======================================================================
  508.  
  509. //======================================================================
  510. IMaterial* WINAPI hkFindMaterial(char const* pMaterialName, const char* pTextureGroupName, bool complain, const char* pComplainPrefix = NULL)
  511. {
  512. static bool bInGame = false;
  513. IMaterial* pMaterial = NULL;
  514. pMaterial = oFindMaterial(pMaterialName, pTextureGroupName, complain, pComplainPrefix);
  515.  
  516. if (pMaterialName && pTextureGroupName)
  517. {
  518. if (g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected())
  519. {
  520. if (!bInGame)
  521. {
  522. gMisc.SetAsusWalls(gVars.esp_asuswalls, 0.6f);
  523. gMisc.SetSkyChams(gVars.esp_nosky);
  524. gMisc.SetPlayerChams(gVars.esp_playerwallhack, gVars.esp_wireplayer);
  525. gMisc.SetWeaponChams(gVars.esp_nohands, gVars.esp_wireweapons);
  526. bInGame = true;
  527. }
  528. }
  529. else
  530. {
  531. if (bInGame)
  532. {
  533. gMisc.vecSkyTextures.clear(); //Clear Buffer
  534. gMisc.vecMapTextures.clear(); //Clear Buffer
  535. gMisc.SetSkyChams(false); //Fixing Server Error
  536. gMisc.SetPlayerChams(false, false); //Fixing Server Error
  537. gMisc.SetWeaponChams(false, false); //Fixing Server Error
  538. bInGame = false;
  539. }
  540.  
  541. if (strstr(pTextureGroupName, SKYBOX_TEXTURES))
  542. gMisc.vecSkyTextures.push_back(pMaterial);
  543.  
  544. if (strstr(pTextureGroupName, WORLD_TEXTURES) && !strstr(pMaterialName, /*models\\player*/XorStr<0xBC, 14, 0x4FAFEAA3>("\xD1\xD2\xDA\xDA\xAC\xB2\x9E\xB3\xA8\xA4\xBF\xA2\xBA" + 0x4FAFEAA3).s))
  545. gMisc.vecMapTextures.push_back(pMaterial);
  546.  
  547. if (strstr(pTextureGroupName, MODEL_TEXTURES) && strstr(pMaterialName, /*models\\player*/XorStr<0xBC, 14, 0x4FAFEAA3>("\xD1\xD2\xDA\xDA\xAC\xB2\x9E\xB3\xA8\xA4\xBF\xA2\xBA" + 0x4FAFEAA3).s))
  548. gMisc.vecPlayerTextures.push_back(pMaterial);
  549.  
  550. if (strstr(pTextureGroupName, MODEL_TEXTURES) && strstr(pMaterialName, /*models\\weapons*/XorStr<0xD8, 15, 0x6123BC7A>("\xB5\xB6\xBE\xBE\xB0\xAE\x82\xA8\x85\x80\x92\x8C\x8A\x96" + 0x6123BC7A).s))
  551. gMisc.vecWeaponTextures.push_back(pMaterial);
  552.  
  553. if (strstr(pMaterialName, /*wood*/XorStr<0x14, 5, 0x8FD732C2>("\x63\x7A\x79\x73" + 0x8FD732C2).s)
  554. || strstr(pMaterialName, /*WOOD*/XorStr<0xA6, 5, 0x0B5F5397>("\xF1\xE8\xE7\xED" + 0x0B5F5397).s)
  555. || strstr(pMaterialName, /*door*/XorStr<0xDE, 5, 0x871051D3>("\xBA\xB0\x8F\x93" + 0x871051D3).s)
  556. || strstr(pMaterialName, /*DOOR*/XorStr<0x3C, 5, 0xF9444CE6>("\x78\x72\x71\x6D" + 0xF9444CE6).s)
  557. || strstr(pMaterialName, /*gate*/XorStr<0xBA, 5, 0x5598E5A0>("\xDD\xDA\xC8\xD8" + 0x5598E5A0).s)
  558. || strstr(pMaterialName, /*GATE*/XorStr<0xC1, 5, 0xC5783BBB>("\x86\x83\x97\x81" + 0xC5783BBB).s)
  559. || strstr(pMaterialName, /*box*/XorStr<0xCB, 4, 0x3B0E547D>("\xA9\xA3\xB5" + 0x3B0E547D).s)
  560. || strstr(pMaterialName, /*BOX*/XorStr<0x89, 4, 0x18DEA303>("\xCB\xC5\xD3" + 0x18DEA303).s)
  561. || strstr(pMaterialName, /*decal*/XorStr<0xB5, 6, 0x4E9E81D9>("\xD1\xD3\xD4\xD9\xD5" + 0x4E9E81D9).s)
  562. || strstr(pMaterialName, /*DECAL*/XorStr<0x68, 6, 0xFC506747>("\x2C\x2C\x29\x2A\x20" + 0xFC506747).s))
  563. gMisc.vecMapTextures.push_back(pMaterial);
  564. }
  565. }
  566. return pMaterial;
  567. }
  568. //======================================================================
  569.  
  570. //======================================================================
  571. int WINAPI hkKeyEvent(int eventcode, ButtonCode_t keynum, const char *pszCurrentBinding)
  572. {
  573. if (eventcode == 1 && keynum != BUTTON_CODE_INVALID)
  574. {
  575. if (g_pEngineClient->IsInGame() && g_pEngineClient->IsConnected() && keynum == KEY_INSERT)
  576. {
  577. gVars.hotkey_menu = !gVars.hotkey_menu;
  578. return NULL;
  579. }
  580.  
  581. if (keynum == KEY_LALT)
  582. {
  583. gVars.misc_airstuck_active = !gVars.misc_airstuck_active;
  584. return NULL;
  585. }
  586. }
  587.  
  588. return oKeyEvent(eventcode, keynum, pszCurrentBinding);
  589. }
  590. //======================================================================
  591.  
  592. //======================================================================
  593. BOOL WINAPI hkSetCursorPos(int x, int y)
  594. {
  595. gVars.OldPos.x = x;
  596. gVars.OldPos.y = y;
  597.  
  598. if (gVars.hotkey_menu)
  599. return true;
  600.  
  601. return oSetCursorPos(x, y);
  602. }
  603. //======================================================================
  604.  
  605. //======================================================================
  606. BOOL WINAPI hkGetCursorPos(LPPOINT lpPoint)
  607. {
  608. BOOL old = oGetCursorPos(lpPoint);
  609. if (gVars.hotkey_menu)
  610. {
  611. ScreenToClient(GetForegroundWindow(), lpPoint);
  612. gVars.MousePos.x = lpPoint->x;
  613. gVars.MousePos.y = lpPoint->y;
  614.  
  615. if (g_pEngineClient->IsInGame())
  616. {
  617. lpPoint->x = gVars.OldPos.x;
  618. lpPoint->y = gVars.OldPos.y;
  619. }
  620. }
  621.  
  622. return old;
  623. }
  624. //======================================================================
  625.  
  626. //======================================================================
  627. void OnStart()
  628. {
  629. static bool bStartedOnce = false;
  630. if (bStartedOnce)
  631. return;
  632.  
  633. gToolBox.CreateDebugConsole();
  634.  
  635. const char* pszStrPath = gToolBox.GetDLLPath(gVars.hInst).c_str();
  636. sprintf(gVars.CurrentDir, "%s", pszStrPath);
  637. sprintf(gVars.LogPath, WIN200_LOGFILE, pszStrPath);
  638. sprintf(gVars.ScorePath, WIN200_HIGHSCOREFILE, pszStrPath);
  639. sprintf(gVars.ConfigPath, WIN200_SETTINGSFILE, pszStrPath);
  640.  
  641. while (!FindWindow(Valve001, NULL))
  642. Sleep(100); prn(ConCol::DARKRED, /*Found Valve001*/XorStr<0xD8, 15, 0xD21AA565>("\x9E\xB6\xAF\xB5\xB8\xFD\x88\xBE\x8C\x97\x87\xD3\xD4\xD4" + 0xD21AA565).s);
  643.  
  644. while (!GetModuleHandle(enginedll) || !GetModuleHandle(clientdll))
  645. Sleep(100); prn(ConCol::DARKRED, /*Found Handles*/XorStr<0x9C, 14, 0x72342165>("\xDA\xF2\xEB\xF1\xC4\x81\xEA\xC2\xCA\xC1\xCA\xC2\xDB" + 0x72342165).s);
  646.  
  647. prn(ConCol::BLUE, gVars.CurrentDir);
  648. gVars.FirstTime();
  649.  
  650. tCreateInterface SteamFactory = gToolBox.SetFactory(steamclientdll);
  651. tCreateInterface ClientFactory = gToolBox.SetFactory(clientdll);
  652. tCreateInterface EngineFactory = gToolBox.SetFactory(enginedll);
  653. tCreateInterface VguiFactory = gToolBox.SetFactory(vguimatsurfacedll);
  654. tCreateInterface Vgui2Factory = gToolBox.SetFactory(vgui2dll);
  655. tCreateInterface MaterialFactory = gToolBox.SetFactory(materialsystemdll);
  656. tCreateInterface CvarFactory = gToolBox.SetFactory(vstdlibdll);
  657. tCreateInterface InputFactory = gToolBox.SetFactory(inputsystemdll);
  658. tCreateInterface PhysicsFactory = gToolBox.SetFactory(vphysicsdll);
  659. tCreateInterface StudioFactory = gToolBox.SetFactory(studiorenderdll);
  660. tCreateInterface SoundFactory = gToolBox.SetFactory(soundemittersystemdll);
  661. tCreateInterface ShaderFactory = gToolBox.SetFactory(shaderapidx9dll);
  662. #if defined(HACK_CSGO)
  663. tCreateInterface MatchmakingFactory = gToolBox.SetFactory(matchmakingdll);
  664. #endif
  665.  
  666. g_pPrediction = (IPrediction*)gToolBox.BruteforceInterface(ClientFactory, VClientPrediction);
  667. g_pGameMovement = (IGameMovement*)gToolBox.BruteforceInterface(ClientFactory, GameMovement);
  668. g_pClientEntityList = (IClientEntityList*)gToolBox.BruteforceInterface(ClientFactory, VClientEntityList);
  669. g_pEngineClient = (IVEngineClient*)gToolBox.BruteforceInterface(EngineFactory, VEngineClient);
  670. g_pModelInfoClient = (IVModelInfoClient*)gToolBox.BruteforceInterface(EngineFactory, VModelInfoClient);
  671. g_pEngineTrace = (IEngineTrace*)gToolBox.BruteforceInterface(EngineFactory, EngineTraceClient);
  672. g_pVEffects = (IVEffects*)gToolBox.BruteforceInterface(EngineFactory, VEngineEffects);
  673. g_pSurface = (ISurface*)gToolBox.BruteforceInterface(VguiFactory, VGUI_Surface);
  674. g_pCvar = (ICvar*)gToolBox.BruteforceInterface(CvarFactory, VEngineCvar);
  675. g_pDebugOverlay = (IVDebugOverlay*)gToolBox.BruteforceInterface(EngineFactory, VDebugOverlay);
  676. g_pRenderView = (IVRenderView*)gToolBox.BruteforceInterface(EngineFactory, VEngineRenderView);
  677. g_pModelRender = (IVModelRender*)gToolBox.BruteforceInterface(EngineFactory, VEngineModel);
  678. g_pEngineSound = (IEngineSound*)gToolBox.BruteforceInterface(EngineFactory, IEngineSoundClient);
  679. g_pPhysicsDebugOverlay = (IVPhysicsDebugOverlay*)gToolBox.BruteforceInterface(EngineFactory, VPhysicsDebugOverlay);
  680. g_pShadowManager = (IShadowMgr*)gToolBox.BruteforceInterface(EngineFactory, VEngineShadowMgr);
  681. g_pBlackBox = (IBlackBox*)gToolBox.BruteforceInterface(EngineFactory, BlackBoxVersion);
  682. g_pClientEngineTools = (IClientEngineTools*)gToolBox.BruteforceInterface(EngineFactory, VCLIENTENGINETOOLS);
  683. g_pEngineVGui = (IEngineVGui*)gToolBox.BruteforceInterface(EngineFactory, VEngineVGui);
  684. g_pInputSystem = (IInputSystem*)gToolBox.BruteforceInterface(InputFactory, InputSystemVersion);
  685. g_pShaderShadow = (IShaderShadow*)gToolBox.BruteforceInterface(ShaderFactory, ShaderShadow);
  686. g_pShaderDeviceMgr = (IShaderDeviceMgr*)gToolBox.BruteforceInterface(ShaderFactory, ShaderDeviceMgr);
  687. g_pShaderDevice = (IShaderDevice*)gToolBox.BruteforceInterface(ShaderFactory, ShaderDevice);
  688. g_pShaderApi = (IShaderAPI*)gToolBox.BruteforceInterface(ShaderFactory, ShaderApi);
  689. g_pPhysicsSurfaceProps = (IPhysicsSurfaceProps*)gToolBox.BruteforceInterface(PhysicsFactory, VPhysicsSurfaceProps);
  690. g_pPhysicsCollision = (IPhysicsCollision*)gToolBox.BruteforceInterface(PhysicsFactory, VPhysicsCollision);
  691. g_pPhysics = (IPhysics*)gToolBox.BruteforceInterface(PhysicsFactory, VPhysics);
  692. g_pShaderDLL = (IShaderDLLInternal*)gToolBox.BruteforceInterface(MaterialFactory, ShaderDLL);
  693. g_pShaderSystem = (IShaderSystem*)gToolBox.BruteforceInterface(MaterialFactory, ShaderSystem);
  694. g_pMaterialSystemStub = (IMaterialSystemStub*)gToolBox.BruteforceInterface(MaterialFactory, VMaterialSystemStub);
  695. g_pStudioRender = (IStudioRender*)gToolBox.BruteforceInterface(StudioFactory, VStudioRender);
  696. g_pSoundEmitterBase = (ISoundEmitterSystemBase*)gToolBox.BruteforceInterface(SoundFactory, VSoundEmitter);
  697. g_pSteamClient = (ISteamClient*)gToolBox.SetInterface(SteamFactory, SteamClient007);
  698. g_pBaseClientDLL = (IBaseClientDLL*)gToolBox.BruteforceInterface(ClientFactory, VClient);
  699. g_pMaterialSystem = (IMaterialSystem*)gToolBox.BruteforceInterface(MaterialFactory, VMaterialSystem);
  700. g_pGameEventManager = (IGameEventManager2*)gToolBox.SetInterface(EngineFactory, GAMEEVENTSMANAGER002);
  701. g_pPanel = (IPanel*)gToolBox.BruteforceInterface(Vgui2Factory, VGUI_Panel);
  702. #if defined(HACK_CSGO)
  703. g_pMatchFramework = (IMatchFramework*)gToolBox.BruteforceInterface(MatchmakingFactory, MATCHFRAMEWORK_);
  704. #endif
  705.  
  706. if (!g_pSteamFriends)
  707. {
  708. HSteamPipe hNewPipe = g_pSteamClient->CreateSteamPipe();
  709. HSteamUser hNewUser = g_pSteamClient->ConnectToGlobalUser(hNewPipe);
  710.  
  711. g_pSteamFriends = g_pSteamClient->GetISteamFriends(hNewUser, hNewPipe, SteamFriends003);
  712. XASSERT(g_pSteamFriends);
  713.  
  714. /*if (g_pSteamFriends)
  715. {
  716. const char* pchOldName = g_pSteamFriends->GetPersonaName();
  717. if (pchOldName && !(pchOldName[0] == '[' && pchOldName[1] == 'A' && pchOldName[2] == 'B'))
  718. {
  719. char chNewName[64];
  720. sprintf(chNewName, "[ABN] %s", pchOldName);
  721. prnQuick("Sett Steam Name to %s", chNewName);
  722. g_pSteamFriends->SetPersonaName(chNewName);
  723. }
  724. }*/
  725. }
  726.  
  727. if (g_pBaseClientDLL)
  728. {
  729. g_pNetvarManager = new CNetvarManager();
  730. gAddys.FindNetvars(g_pNetvarManager);
  731. gAddys.FindClientMode(g_pBaseClientDLL);
  732. gAddys.FindInput(g_pBaseClientDLL);
  733. gAddys.FindGlobals(g_pBaseClientDLL);
  734.  
  735. DWORD* pdwClientMeme = *(DWORD**)g_pBaseClientDLL;
  736. DWORD* pdwInputMeme = *(DWORD**)g_pInput;
  737. DWORD* pdwClientMode = *(DWORD**)g_pClientMode;
  738.  
  739. #if defined(HACK_GMOD)
  740. gToolBox.HookVirtual(pdwInputMeme, (DWORD*)&hkGetUserCmd, ID_GetUserCmd);
  741. gToolBox.HookVirtual(pdwClientMeme, (DWORD*)&hkWriteUsercmdDeltaToBuffer, ID_WriteUsercmdDeltaToBuffer);
  742. #endif
  743.  
  744. #if defined(HACK_CSS) || defined(HACK_DODS) || defined(HACK_GMOD)//temp
  745. /*CL*/oclCreateMove = (tclCreateMove)gToolBox.HookVirtual(pdwClientMode, (DWORD*)&hkclCreateMove, ID_CreateMove);
  746. /*CL*/oclOverrideView = (tclOverrideView)gToolBox.HookVirtual(pdwClientMode, (DWORD*)&hkclOverrideView, ID_OverrideView);
  747. /*CL*/oclShouldDrawParticles = (tclShouldDrawParticles)gToolBox.HookVirtual(pdwClientMode, (DWORD*)&hkclShouldDrawParticles, ID_ShouldDrawParticles);
  748. #endif
  749.  
  750. #if !defined(HACK_HL2DM)
  751. oCreateMove = (tCreateMove)gToolBox.HookVirtual(pdwClientMeme, (DWORD*)&hkCreateMove, ID_CreateMove);
  752. oFrameStageNotify = (tFrameStageNotify)gToolBox.HookVirtual(pdwClientMeme, (DWORD*)&hkFrameStageNotify, ID_FrameStageNotify);
  753. #endif
  754. oKeyEvent = (tKeyEvent)gToolBox.HookVirtual(pdwClientMeme, (DWORD*)&hkKeyEvent, ID_KeyEvent);
  755. }
  756.  
  757. #if defined(HACK_CSS)//temp
  758. if (g_pMaterialSystem)
  759. {
  760. DWORD* pdwMatSystemMeme = *(DWORD**)g_pMaterialSystem;
  761. oFindMaterial = (tFindMaterial)gToolBox.HookVirtual(pdwMatSystemMeme, (DWORD*)&hkFindMaterial, ID_FindMaterial);
  762. }
  763. #endif
  764. if (g_pGameEventManager)
  765. gGameEvents.RegisterSelf();
  766.  
  767. if (g_pPanel)
  768. {
  769. DWORD* pdwPanelMeme = *(DWORD**)g_pPanel;
  770. oPaintTraverse = (tPaintTraverse)gToolBox.HookVirtual(pdwPanelMeme, (DWORD*)&hkPaintTraverse, ID_PaintTraverse);
  771. }
  772.  
  773. prn(ConCol::DARKGRAY, /*CUserCmd: Size %i*/XorStr<0x19, 18, 0x34D910DF>("\x5A\x4F\x68\x79\x6F\x5D\x72\x44\x1B\x02\x70\x4D\x5F\x43\x07\x0D\x40" + 0x34D910DF).s, sizeof(CUserCmd));
  774. bStartedOnce = true;
  775. }
  776. //======================================================================
  777.  
  778. //======================================================================
  779. void OnEnd()
  780. {
  781. FreeConsole();
  782. ExitProcess(NULL);
  783. }
  784. //======================================================================
  785.  
  786. //======================================================================
  787. DWORD WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
  788. {
  789. if (dwReason == DLL_PROCESS_ATTACH)
  790. {
  791. gVars.hInst = hDll;
  792. gToolBox.BaseUponModule((HMODULE)hDll);
  793. gToolBox.RemovePE((DWORD)hDll);
  794. DisableThreadLibraryCalls(hDll);
  795.  
  796. CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)OnStart, NULL, NULL, NULL);
  797. }
  798. else if (dwReason == DLL_PROCESS_DETACH)
  799. CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)OnEnd, NULL, NULL, NULL);
  800.  
  801. return TRUE;
  802. }
  803. //======================================================================
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:57:17: fatal error: sdk.h: No such file or directory
compilation terminated.
stdout
Standard output is empty