Skip to content

Commit

Permalink
Working menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Spelchure committed Jun 4, 2020
1 parent bf30a52 commit e858847
Show file tree
Hide file tree
Showing 205 changed files with 9,798 additions and 2,206 deletions.
152 changes: 152 additions & 0 deletions CSGO Internal.vcxproj

Large diffs are not rendered by default.

164 changes: 164 additions & 0 deletions CSGO Internal.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,152 @@
<None Include="Docs\html\search\functions_3.js" />
<None Include="Docs\html\search\functions_2.js" />
<None Include="CSGOInternal\Settings\SimpleSettings.cfg" />
<None Include="Docs\Documentation.html" />
<None Include="Docs\html\search\all_10.html" />
<None Include="Docs\html\search\all_11.html" />
<None Include="Docs\html\search\all_b.html" />
<None Include="Docs\html\search\all_c.html" />
<None Include="Docs\html\search\all_d.html" />
<None Include="Docs\html\search\all_e.html" />
<None Include="Docs\html\search\all_f.html" />
<None Include="Docs\html\search\classes_5.html" />
<None Include="Docs\html\search\classes_6.html" />
<None Include="Docs\html\search\classes_7.html" />
<None Include="Docs\html\search\classes_8.html" />
<None Include="Docs\html\search\files_6.html" />
<None Include="Docs\html\search\files_7.html" />
<None Include="Docs\html\search\files_8.html" />
<None Include="Docs\html\search\files_9.html" />
<None Include="Docs\html\search\files_a.html" />
<None Include="Docs\html\search\functions_6.html" />
<None Include="Docs\html\search\functions_7.html" />
<None Include="Docs\html\search\functions_8.html" />
<None Include="Docs\html\search\functions_9.html" />
<None Include="Docs\html\search\functions_a.html" />
<None Include="Docs\html\search\variables_0.html" />
<None Include="Docs\html\_entity_player_8hpp.html" />
<None Include="Docs\html\_entity_player_8hpp_source.html" />
<None Include="Docs\html\_interfaces_8cpp.html" />
<None Include="Docs\html\_interfaces_8hpp.html" />
<None Include="Docs\html\_interfaces_8hpp_source.html" />
<None Include="Docs\html\_main_loop_8cc.html" />
<None Include="Docs\html\_main_menu_8cc.html" />
<None Include="Docs\html\_main_menu_8hpp.html" />
<None Include="Docs\html\_main_menu_8hpp_source.html" />
<None Include="Docs\html\_netvars_8cc.html" />
<None Include="Docs\html\_netvars_8hpp.html" />
<None Include="Docs\html\_netvars_8hpp_source.html" />
<None Include="Docs\html\_settings_8cc.html" />
<None Include="Docs\html\_settings_8hpp.html" />
<None Include="Docs\html\_settings_8hpp_source.html" />
<None Include="Docs\html\_signatures_8hpp.html" />
<None Include="Docs\html\_signatures_8hpp_source.html" />
<None Include="Docs\html\_trace_ray_8hpp.html" />
<None Include="Docs\html\_trace_ray_8hpp_source.html" />
<None Include="Docs\html\_vectors_8cc.html" />
<None Include="Docs\html\_vectors_8hpp.html" />
<None Include="Docs\html\_vectors_8hpp_source.html" />
<None Include="Docs\html\class_app_settings.html" />
<None Include="Docs\html\class_app_settings-members.html" />
<None Include="Docs\html\class_c_base_trace.html" />
<None Include="Docs\html\class_c_base_trace-members.html" />
<None Include="Docs\html\class_c_entity_player.html" />
<None Include="Docs\html\class_c_entity_player-members.html" />
<None Include="Docs\html\class_c_game_trace.html" />
<None Include="Docs\html\class_c_game_trace-members.html" />
<None Include="Docs\html\class_c_trace_filter.html" />
<None Include="Docs\html\class_c_trace_filter-members.html" />
<None Include="Docs\html\class_client_class.html" />
<None Include="Docs\html\class_client_class-members.html" />
<None Include="Docs\html\class_i_base_client_d_l_l.html" />
<None Include="Docs\html\class_i_base_client_d_l_l-members.html" />
<None Include="Docs\html\class_i_client_entity_list.html" />
<None Include="Docs\html\class_i_client_entity_list-members.html" />
<None Include="Docs\html\class_i_engine_trace.html" />
<None Include="Docs\html\class_i_engine_trace-members.html" />
<None Include="Docs\html\class_i_trace_filter.html" />
<None Include="Docs\html\class_i_trace_filter-members.html" />
<None Include="Docs\html\class_i_v_engine_client013.html" />
<None Include="Docs\html\class_i_v_engine_client013-members.html" />
<None Include="Docs\html\class_main_menu.html" />
<None Include="Docs\html\class_main_menu-members.html" />
<None Include="Docs\html\class_recv_prop.html" />
<None Include="Docs\html\class_recv_prop-members.html" />
<None Include="Docs\html\class_recv_table.html" />
<None Include="Docs\html\class_recv_table-members.html" />
<None Include="Docs\html\class_vector_aligned.html" />
<None Include="Docs\html\class_vector_aligned-members.html" />
<None Include="Docs\html\dir_edcc182c5cf7b1ffa67adc89a7b2f593.html" />
<None Include="Docs\html\globals_vars.html" />
<None Include="Docs\html\hierarchy.html" />
<None Include="Docs\html\struct___vector.html" />
<None Include="Docs\html\struct___vector2.html" />
<None Include="Docs\html\struct___vector2-members.html" />
<None Include="Docs\html\struct___vector-members.html" />
<None Include="Docs\html\struct_ray__t.html" />
<None Include="Docs\html\struct_ray__t-members.html" />
<None Include="Docs\html\structcplane__t.html" />
<None Include="Docs\html\structcplane__t-members.html" />
<None Include="Docs\html\structsurface__t.html" />
<None Include="Docs\html\structsurface__t-members.html" />
<None Include="Docs\html\_entity_player_8hpp.js" />
<None Include="Docs\html\_interfaces_8cpp.js" />
<None Include="Docs\html\_interfaces_8hpp.js" />
<None Include="Docs\html\_main_loop_8cc.js" />
<None Include="Docs\html\_main_menu_8cc.js" />
<None Include="Docs\html\_netvars_8cc.js" />
<None Include="Docs\html\_netvars_8hpp.js" />
<None Include="Docs\html\_settings_8hpp.js" />
<None Include="Docs\html\_signatures_8hpp.js" />
<None Include="Docs\html\_trace_ray_8hpp.js" />
<None Include="Docs\html\_vectors_8cc.js" />
<None Include="Docs\html\_vectors_8hpp.js" />
<None Include="Docs\html\class_app_settings.js" />
<None Include="Docs\html\class_c_base_trace.js" />
<None Include="Docs\html\class_c_game_trace.js" />
<None Include="Docs\html\class_c_entity_player.js" />
<None Include="Docs\html\class_c_trace_filter.js" />
<None Include="Docs\html\class_client_class.js" />
<None Include="Docs\html\class_i_base_client_d_l_l.js" />
<None Include="Docs\html\class_i_client_entity_list.js" />
<None Include="Docs\html\class_i_engine_trace.js" />
<None Include="Docs\html\class_i_trace_filter.js" />
<None Include="Docs\html\class_i_v_engine_client013.js" />
<None Include="Docs\html\class_main_menu.js" />
<None Include="Docs\html\class_recv_prop.js" />
<None Include="Docs\html\class_recv_table.js" />
<None Include="Docs\html\class_vector_aligned.js" />
<None Include="Docs\html\dir_edcc182c5cf7b1ffa67adc89a7b2f593.js" />
<None Include="Docs\html\hierarchy.js" />
<None Include="Docs\html\navtreeindex7.js" />
<None Include="Docs\html\navtreeindex6.js" />
<None Include="Docs\html\struct___vector2.js" />
<None Include="Docs\html\struct___vector.js" />
<None Include="Docs\html\structcplane__t.js" />
<None Include="Docs\html\structsurface__t.js" />
<None Include="Docs\html\search\all_10.js" />
<None Include="Docs\html\search\all_11.js" />
<None Include="Docs\html\search\all_b.js" />
<None Include="Docs\html\search\all_c.js" />
<None Include="Docs\html\search\all_d.js" />
<None Include="Docs\html\search\all_e.js" />
<None Include="Docs\html\search\all_f.js" />
<None Include="Docs\html\search\classes_5.js" />
<None Include="Docs\html\search\classes_6.js" />
<None Include="Docs\html\search\classes_8.js" />
<None Include="Docs\html\search\classes_7.js" />
<None Include="Docs\html\search\files_3.js" />
<None Include="Docs\html\search\files_6.js" />
<None Include="Docs\html\search\files_7.js" />
<None Include="Docs\html\search\files_8.js" />
<None Include="Docs\html\search\files_9.js" />
<None Include="Docs\html\search\files_a.js" />
<None Include="Docs\html\search\functions_7.js" />
<None Include="Docs\html\search\functions_6.js" />
<None Include="Docs\html\search\functions_8.js" />
<None Include="Docs\html\search\functions_9.js" />
<None Include="Docs\html\search\functions_a.js" />
<None Include="Docs\html\search\variables_0.js" />
</ItemGroup>
<ItemGroup>
<Text Include="LICENSE" />
Expand Down Expand Up @@ -915,6 +1061,24 @@
<Image Include="Docs\html\search\close.png">
<Filter>Resource Files</Filter>
</Image>
<Image Include="Docs\html\class_c_base_trace.png">
<Filter>Resource Files</Filter>
</Image>
<Image Include="Docs\html\class_c_game_trace.png">
<Filter>Resource Files</Filter>
</Image>
<Image Include="Docs\html\class_c_trace_filter.png">
<Filter>Resource Files</Filter>
</Image>
<Image Include="Docs\html\class_i_trace_filter.png">
<Filter>Resource Files</Filter>
</Image>
<Image Include="Docs\html\class_vector_aligned.png">
<Filter>Resource Files</Filter>
</Image>
<Image Include="Docs\html\struct___vector.png">
<Filter>Resource Files</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<Library Include="Dependencies\DirectX9SDK\Lib\d3d9.lib" />
Expand Down
16 changes: 12 additions & 4 deletions CSGOInternal/DllMain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ AppSettings* pSettings;
MainMenu* pMenu;
void* vTable[119];

extern uintptr_t sig_dwppDirect3DDevice9;

/**
* \brief Application main thread
*
Expand Down Expand Up @@ -131,17 +133,23 @@ MainThread(HMODULE hDll)
FreeLibraryAndExitThread(hDll, 1);
return FALSE;
}
/*
LPDIRECT3DDEVICE9 pDev =
reinterpret_cast<LPDIRECT3DDEVICE9>((uintptr_t*)*vTable);

LPDIRECT3DDEVICE9 pDev = reinterpret_cast<LPDIRECT3DDEVICE9>(*(uintptr_t*)sig_dwppDirect3DDevice9);
if(nullptr == pDev) {
delete pMenu;
delete pMidHook;
delete pSettings;
FreeLibraryAndExitThread(hDll, 1);
return FALSE;
}
if (!pMenu->InitMenu(pDev, hValveWindow)) {
delete pMenu;
delete pMidHook;
delete pSettings;
FreeLibraryAndExitThread(hDll, 1);
return FALSE;
}
*/
// HOOK! GatewayFunction:Gateway.cc
pMidHook->BeginHook((reinterpret_cast<uintptr_t>(vTable[42])+0xF), (uintptr_t)GatewayFunction, 5);

Expand Down
7 changes: 7 additions & 0 deletions CSGOInternal/Source SDK/Netvars.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@

uintptr_t _netvarOffsets[netvarOffsetsLength] = { 0 };
uintptr_t sig_dwClientState = 0;
uintptr_t sig_dwppDirect3DDevice9 = 0;
uint16_t sig_dwClientState_MaxPlayers = 0;
uint16_t sig_dwClientState_ViewAngles = 0;
uint16_t sig_bDormant = 0;


/**
* \brief Returns network variable offset
*
Expand Down Expand Up @@ -158,5 +160,10 @@ ReadySignatures(void)
sig_bDormant = read_protected_memory<uint16_t>(mem);
sig_bDormant += 8;

mem = (byte_t*)memFindPattern(DLL_SHADERAPI, PATTERN_PTRD3DDEV[0], PATTERN_PTRD3DDEV[1]);
if (!mem)
return false;
sig_dwppDirect3DDevice9 = read_protected_memory<uintptr_t>(++mem);

return true;
}
7 changes: 6 additions & 1 deletion CSGOInternal/Source SDK/Strings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@

constexpr auto VALVE_WINDOW_CLASS = "Valve001";

constexpr auto DLL_CLIENT = "client.dll"; // Old client_panorama.dll
constexpr auto DLL_CLIENT = "client.dll"; // new game update
constexpr auto DLL_ENGINE = "engine.dll";
constexpr auto DLL_SHADERAPI = "shaderapidx9.dll";

constexpr auto VCLIENTENTITYLIST_INTERFACE_VERSION = "VClientEntityList003";
constexpr auto CLIENT_DLL_INTERFACE_VERSION = "VClient018";
Expand All @@ -51,4 +52,8 @@ constexpr const char* PATTERN_CLIENTSTATE_VIEWANGLES[] = {
constexpr const char* PATTERN_BDORMANT[] = {
"\x8A\x81\x90\x90\x90\x90\xC3\x32\xC0",
"xx????xxx"
};
constexpr const char* PATTERN_PTRD3DDEV[] = {
"\xA1\x90\x90\x90\x90\x50\x8B\x08\xFF\x51\x0C",
"x????xxxxxx"
};
3 changes: 3 additions & 0 deletions Docs/Documentation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>CS:GO Internal v1.0</h1>
<br>
<a href="html/index.html"><h2>Go Documentation<h3></a>
7 changes: 7 additions & 0 deletions Docs/html/_dll_main_8cc.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &quot;<a class="el" href="_keys_8hpp_source.html">Keys.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_main_menu_8hpp_source.html">MainMenu.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_settings_8hpp_source.html">Settings/Settings.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_hooks_8hpp_source.html">Hooks/Hooks.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_dummy_device_8hpp_source.html">D3D9/DummyDevice.hpp</a>&quot;</code><br />
Expand Down Expand Up @@ -135,9 +136,15 @@
<tr class="memitem:affb21de73b1ed38e9f8d796196218b90"><td class="memItemLeft" align="right" valign="top"><a id="affb21de73b1ed38e9f8d796196218b90"></a>
<a class="el" href="class_app_settings.html">AppSettings</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pSettings</b></td></tr>
<tr class="separator:affb21de73b1ed38e9f8d796196218b90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a814e7949c25e4d8e1daf7d21dc23e00f"><td class="memItemLeft" align="right" valign="top"><a id="a814e7949c25e4d8e1daf7d21dc23e00f"></a>
<a class="el" href="class_main_menu.html">MainMenu</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pMenu</b></td></tr>
<tr class="separator:a814e7949c25e4d8e1daf7d21dc23e00f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add22de488065e9690c20674b136766d1"><td class="memItemLeft" align="right" valign="top"><a id="add22de488065e9690c20674b136766d1"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><b>vTable</b> [119]</td></tr>
<tr class="separator:add22de488065e9690c20674b136766d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2834904801d2973b4d74ae4f79f6dbf6"><td class="memItemLeft" align="right" valign="top"><a id="a2834904801d2973b4d74ae4f79f6dbf6"></a>
uintptr_t&#160;</td><td class="memItemRight" valign="bottom"><b>sig_dwppDirect3DDevice9</b></td></tr>
<tr class="separator:a2834904801d2973b4d74ae4f79f6dbf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><br />
Expand Down
2 changes: 2 additions & 0 deletions Docs/html/_dll_main_8cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ var _dll_main_8cc =
[ "DllMain", "_dll_main_8cc.html#ae57465f54f783f35d7738032864a9926", null ],
[ "GatewayFunction", "_dll_main_8cc.html#af0aecb24730dcfcc8c8dba031ec4d090", null ],
[ "MainThread", "_dll_main_8cc.html#a61bf3b4c8ca971214709dfa5346b78f0", null ],
[ "pMenu", "_dll_main_8cc.html#a814e7949c25e4d8e1daf7d21dc23e00f", null ],
[ "pMidHook", "_dll_main_8cc.html#a92ea3b36ac03fac3a151282e9aa2c9e8", null ],
[ "pSettings", "_dll_main_8cc.html#affb21de73b1ed38e9f8d796196218b90", null ],
[ "SETTINGS_FILE_NAME", "_dll_main_8cc.html#a0556300864824f6acef9f3fbcddb62d8", null ],
[ "sig_dwppDirect3DDevice9", "_dll_main_8cc.html#a2834904801d2973b4d74ae4f79f6dbf6", null ],
[ "vTable", "_dll_main_8cc.html#add22de488065e9690c20674b136766d1", null ]
];
17 changes: 10 additions & 7 deletions Docs/html/_entity_player_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,21 @@
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; bonePos.z = *(<span class="keywordtype">float</span>*)(boneMatrix + 0x30 * boneID + 0x2C);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> &amp;bonePos;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">void</span> GetViewAngles(<a class="code" href="struct___vector.html">Vector</a> &amp;ang) {</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="struct___vector.html">Vector</a> vecOrigin = *this-&gt;GetVecOrigin();</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; ang = vecOrigin + *this-&gt;GetViewOffset();</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; }</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;};</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="struct___vector2.html">Vector2</a> * GetAimPunchAngles()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">return</span> (<a class="code" href="struct___vector2.html">Vector2</a>*)((uintptr_t)<span class="keyword">this</span> + netvar(m_aimPunchAngle));</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordtype">void</span> GetViewAngles(<a class="code" href="struct___vector.html">Vector</a> &amp;ang) {</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="code" href="struct___vector.html">Vector</a> vecOrigin = *this-&gt;GetVecOrigin();</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; ang = vecOrigin + *this-&gt;GetViewOffset();</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;};</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="a_netvars_8hpp_html"><div class="ttname"><a href="_netvars_8hpp.html">Netvars.hpp</a></div></div>
<div class="ttc" id="a_vectors_8hpp_html"><div class="ttname"><a href="_vectors_8hpp.html">Vectors.hpp</a></div></div>
<div class="ttc" id="aclass_c_entity_player_html"><div class="ttname"><a href="class_c_entity_player.html">CEntityPlayer</a></div><div class="ttdef"><b>Definition:</b> EntityPlayer.hpp:42</div></div>
<div class="ttc" id="astruct___vector_html"><div class="ttname"><a href="struct___vector.html">_Vector</a></div><div class="ttdef"><b>Definition:</b> Vectors.hpp:25</div></div>
<div class="ttc" id="astruct___vector_html"><div class="ttname"><a href="struct___vector.html">_Vector</a></div><div class="ttdef"><b>Definition:</b> Vectors.hpp:29</div></div>
<div class="ttc" id="astruct___vector2_html"><div class="ttname"><a href="struct___vector2.html">_Vector2</a></div><div class="ttdef"><b>Definition:</b> Vectors.hpp:87</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
Expand Down
Loading

0 comments on commit e858847

Please sign in to comment.