-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
39,134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.31727.386 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Call Of Duty 4 ImGui", "Call Of Duty 4 ImGui\Call Of Duty 4 ImGui.vcxproj", "{09126785-586B-4B21-962F-EFD7C6F00C66}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Debug|x64.ActiveCfg = Debug|x64 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Debug|x64.Build.0 = Debug|x64 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Debug|x86.Build.0 = Debug|Win32 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Release|x64.ActiveCfg = Release|x64 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Release|x64.Build.0 = Release|x64 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Release|x86.ActiveCfg = Release|Win32 | ||
{09126785-586B-4B21-962F-EFD7C6F00C66}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {653B2F67-3B44-404E-B5F4-CCD6F73755ED} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|Win32"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|Win32"> | ||
<Configuration>Release</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>16.0</VCProjectVersion> | ||
<Keyword>Win32Proj</Keyword> | ||
<ProjectGuid>{09126785-586b-4b21-962f-efd7c6f00c66}</ProjectGuid> | ||
<RootNamespace>CallOfDuty4ImGui</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v142</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
<IncludePath>$(DXSDK_DIR)Include;$(IncludePath)</IncludePath> | ||
<LibraryPath>$(DXSDK_DIR)Lib\x86;$(LibraryPath)</LibraryPath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<LinkIncremental>false</LinkIncremental> | ||
<IncludePath>$(DXSDK_DIR)Include;$(IncludePath)</IncludePath> | ||
<LibraryPath>$(DXSDK_DIR)Lib\x86;$(LibraryPath)</LibraryPath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<LinkIncremental>false</LinkIncremental> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;_DEBUG;CALLOFDUTY4IMGUI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<EnableUAC>false</EnableUAC> | ||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;NDEBUG;CALLOFDUTY4IMGUI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<EnableUAC>false</EnableUAC> | ||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>_DEBUG;CALLOFDUTY4IMGUI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<EnableUAC>false</EnableUAC> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>NDEBUG;CALLOFDUTY4IMGUI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<EnableUAC>false</EnableUAC> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="dllmain.cpp" /> | ||
<ClCompile Include="Draw.cpp" /> | ||
<ClCompile Include="ImGui\imgui.cpp" /> | ||
<ClCompile Include="ImGui\imgui_demo.cpp" /> | ||
<ClCompile Include="ImGui\imgui_draw.cpp" /> | ||
<ClCompile Include="ImGui\imgui_impl_dx9.cpp" /> | ||
<ClCompile Include="ImGui\imgui_impl_win32.cpp" /> | ||
<ClCompile Include="ImGui\imgui_widgets.cpp" /> | ||
<ClCompile Include="WorldToScreen.cpp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="CodStruct.h" /> | ||
<ClInclude Include="Draw.h" /> | ||
<ClInclude Include="ImGui\imconfig.h" /> | ||
<ClInclude Include="ImGui\imgui.h" /> | ||
<ClInclude Include="ImGui\imgui_impl_dx9.h" /> | ||
<ClInclude Include="ImGui\imgui_impl_win32.h" /> | ||
<ClInclude Include="ImGui\imgui_internal.h" /> | ||
<ClInclude Include="ImGui\imstb_rectpack.h" /> | ||
<ClInclude Include="ImGui\imstb_textedit.h" /> | ||
<ClInclude Include="ImGui\imstb_truetype.h" /> | ||
<ClInclude Include="Vector.h" /> | ||
<ClInclude Include="WorldToScreen.h" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="Source Files"> | ||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | ||
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | ||
</Filter> | ||
<Filter Include="Header Files"> | ||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | ||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> | ||
</Filter> | ||
<Filter Include="Resource Files"> | ||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> | ||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> | ||
</Filter> | ||
<Filter Include="Imgui"> | ||
<UniqueIdentifier>{1d945b89-b25b-40f2-b5ba-0b89e378d4d0}</UniqueIdentifier> | ||
</Filter> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="dllmain.cpp"> | ||
<Filter>Source Files</Filter> | ||
</ClCompile> | ||
<ClCompile Include="WorldToScreen.cpp"> | ||
<Filter>Header Files</Filter> | ||
</ClCompile> | ||
<ClCompile Include="ImGui\imgui.cpp"> | ||
<Filter>Imgui</Filter> | ||
</ClCompile> | ||
<ClCompile Include="ImGui\imgui_demo.cpp"> | ||
<Filter>Imgui</Filter> | ||
</ClCompile> | ||
<ClCompile Include="ImGui\imgui_draw.cpp"> | ||
<Filter>Imgui</Filter> | ||
</ClCompile> | ||
<ClCompile Include="ImGui\imgui_impl_dx9.cpp"> | ||
<Filter>Imgui</Filter> | ||
</ClCompile> | ||
<ClCompile Include="ImGui\imgui_impl_win32.cpp"> | ||
<Filter>Imgui</Filter> | ||
</ClCompile> | ||
<ClCompile Include="ImGui\imgui_widgets.cpp"> | ||
<Filter>Imgui</Filter> | ||
</ClCompile> | ||
<ClCompile Include="Draw.cpp"> | ||
<Filter>Header Files</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="WorldToScreen.h"> | ||
<Filter>Header Files</Filter> | ||
</ClInclude> | ||
<ClInclude Include="Vector.h"> | ||
<Filter>Header Files</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imconfig.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imgui.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imgui_impl_dx9.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imgui_impl_win32.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imgui_internal.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imstb_rectpack.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imstb_textedit.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="ImGui\imstb_truetype.h"> | ||
<Filter>Imgui</Filter> | ||
</ClInclude> | ||
<ClInclude Include="Draw.h"> | ||
<Filter>Header Files</Filter> | ||
</ClInclude> | ||
<ClInclude Include="CodStruct.h"> | ||
<Filter>Header Files</Filter> | ||
</ClInclude> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#pragma once | ||
#include "Vector.h" | ||
#include <cstdint> | ||
|
||
//0x793698 | ||
class LocalPlayerInfo | ||
{ | ||
public: | ||
Vec3 ViewAngles; //0x0000 | ||
Vec3 HeadPos; //0x000C | ||
}; | ||
|
||
//0x74634C | ||
class ClientGameInfo | ||
{ | ||
public: | ||
int32_t ClientNum; //0x0000 | ||
char pad_0004[20]; //0x0004 | ||
int32_t MaxEntities; //0x0018 | ||
char pad_001C[32]; //0x001C | ||
Vec3 Position; //0x003C | ||
char pad_0048[288]; //0x0048 | ||
int32_t Health; //0x0168 | ||
}; | ||
|
||
//0x831270 increment-> 0x4CC | ||
class Ent | ||
{ | ||
public: | ||
int32_t Valid; //0x0000 | ||
char pad_0004[8]; //0x0004 | ||
char Name[16]; //0x000C | ||
int32_t Team; //0x001C | ||
char pad_0020[888]; //0x0020 | ||
Vec3 Position; //0x0398 | ||
}; | ||
|
||
//0x78F608 | ||
class Refdef_t | ||
{ | ||
public: | ||
int32_t ScreenX; //0x0098 | ||
int32_t ScreenY; //0x009C | ||
Vec2 Fov; //0x00A0 | ||
Vec3 ViewOrig; //0x00A8 | ||
}; | ||
|
||
static LocalPlayerInfo* LocalPlayer = (LocalPlayerInfo*)0x793698; | ||
static ClientGameInfo* CgInfo = (ClientGameInfo*)0x74634C; | ||
static Refdef_t* RefDef = (Refdef_t*)0x78F608; |
Oops, something went wrong.