sku-111 edition
This commit is contained in:
parent
0e3352c444
commit
628db9203f
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
8486
hook_lib/csv.hpp
8486
hook_lib/csv.hpp
File diff suppressed because it is too large
Load Diff
@ -45,6 +45,18 @@ const char* Dvar_GetStringSafe(const char* dvar) {
|
||||
return func(dvar);
|
||||
}
|
||||
|
||||
bool Dvar_GetBoolSafe(const char* dvar)
|
||||
{
|
||||
auto func = reinterpret_cast<bool(*)(const char*)>(0x1413E6820_g);
|
||||
return func(dvar);
|
||||
}
|
||||
|
||||
int Dvar_GetIntSafe(const char* dvar)
|
||||
{
|
||||
auto func = reinterpret_cast<int(*)(const char* path)>(0x1413E6960_g);
|
||||
return func(dvar);
|
||||
}
|
||||
|
||||
unsigned int* GetRandSeed() {
|
||||
auto func = reinterpret_cast<unsigned int* (*)()>(0x1413DD630_g);
|
||||
return func();
|
||||
@ -242,6 +254,12 @@ void Cmd_Noclip_f(int entNum)
|
||||
}
|
||||
}
|
||||
|
||||
void Cmd_God_f(int entNum)
|
||||
{
|
||||
SvClient* ms_clients = *reinterpret_cast<SvClient**>(0x14E17F690_g + (8 * entNum));
|
||||
gentity_s ent = g_entities[entNum];
|
||||
}
|
||||
|
||||
void SV_Cmd_ArgvBuffer(int arg, char* buffer, unsigned __int64 bufferLength) {
|
||||
auto func = reinterpret_cast<void(*)(int, char*, unsigned __int64)>(0x141298B40_g);
|
||||
func(arg, buffer, bufferLength);
|
||||
@ -353,6 +371,11 @@ XAssetHeader DB_FindXAssetHeader(XAssetType type, const char* givenName, int all
|
||||
return func(type, givenName, allowCreateDefault);
|
||||
}
|
||||
|
||||
void Com_SetErrorMessage(const char* errorMessage) {
|
||||
auto func = reinterpret_cast<void(*)(const char*)>(0x1412B3710_g);
|
||||
return func(errorMessage);
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
dvar_t* player_name;
|
||||
@ -364,6 +387,7 @@ dvar_t* player_sustainammo;
|
||||
cmd_function_s set_byte_f_VAR;
|
||||
cmd_function_s set_short_f_VAR;
|
||||
cmd_function_s set_int_f_VAR;
|
||||
cmd_function_s set_float_f_VAR;
|
||||
cmd_function_s set_pointer_f_VAR;
|
||||
cmd_function_s quit_f_VAR;
|
||||
cmd_function_s openmenu_f_VAR;
|
||||
@ -373,6 +397,9 @@ cmd_function_s weapondefdump_f_VAR;
|
||||
cmd_function_s view_vehicle_ents_f_VAR;
|
||||
cmd_function_s loadout_save_f_VAR;
|
||||
cmd_function_s FastRestart_f_VAR;
|
||||
cmd_function_s MapRestart_f_VAR;
|
||||
cmd_function_s omnvar_set_f_VAR;
|
||||
cmd_function_s omnvar_dump_f_VAR;
|
||||
|
||||
CmdArgs* cmd_args;
|
||||
|
||||
|
@ -117,6 +117,7 @@ extern dvar_t* player_sustainammo;
|
||||
extern cmd_function_s set_byte_f_VAR;
|
||||
extern cmd_function_s set_short_f_VAR;
|
||||
extern cmd_function_s set_int_f_VAR;
|
||||
extern cmd_function_s set_float_f_VAR;
|
||||
extern cmd_function_s set_pointer_f_VAR;
|
||||
extern cmd_function_s quit_f_VAR;
|
||||
extern cmd_function_s openmenu_f_VAR;
|
||||
@ -126,6 +127,9 @@ extern cmd_function_s weapondefdump_f_VAR;
|
||||
extern cmd_function_s view_vehicle_ents_f_VAR;
|
||||
extern cmd_function_s loadout_save_f_VAR;
|
||||
extern cmd_function_s FastRestart_f_VAR;
|
||||
extern cmd_function_s MapRestart_f_VAR;
|
||||
extern cmd_function_s omnvar_set_f_VAR;
|
||||
extern cmd_function_s omnvar_dump_f_VAR;
|
||||
extern CmdArgs* cmd_args;
|
||||
|
||||
void* RtlAddVectoredExceptionHandler(LONG First, PVECTORED_EXCEPTION_HANDLER Handler);
|
||||
@ -150,6 +154,8 @@ inline bool file_exists(const char* name) {
|
||||
|
||||
uintptr_t FS_ReadFile(const char* qpath, const char** buffer);
|
||||
const char* Dvar_GetStringSafe(const char* dvar);
|
||||
bool Dvar_GetBoolSafe(const char* dvar);
|
||||
int Dvar_GetIntSafe(const char* dvar);
|
||||
|
||||
unsigned int* GetRandSeed();
|
||||
unsigned __int64 Sys_Microseconds();
|
||||
@ -189,6 +195,8 @@ bool CheatsOk(int entNum);
|
||||
|
||||
void Cmd_Noclip_f(int entNum);
|
||||
|
||||
void Cmd_God_f(int entNum);
|
||||
|
||||
void SV_Cmd_ArgvBuffer(int arg, char* buffer, unsigned __int64 bufferLength);
|
||||
void Cmd_ArgvBuffer(int arg, char* buffer, int bufferLength);
|
||||
int Cmd_Argc();
|
||||
@ -219,6 +227,8 @@ const char* SL_ConvertToString(int id);
|
||||
|
||||
union XAssetHeader DB_FindXAssetHeader(enum XAssetType type, const char* givenName, int allowCreateDefault);
|
||||
|
||||
void Com_SetErrorMessage(const char* errorMessage);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
extern Addresses g_Addrs;
|
@ -48,7 +48,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
@ -81,10 +81,12 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<TargetName>discord_game_sdk</TargetName>
|
||||
<LibraryPath>D:\Dokumente\CoDMW19\codUPLOADER\mw19-of-main\lib;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<TargetName>discord_game_sdk</TargetName>
|
||||
<LibraryPath>D:\Dokumente\CoDMW19\codUPLOADER\mw19-of-main\lib;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
@ -136,13 +138,13 @@
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NOMINMAX;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<AdditionalDependencies>minhook.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
@ -181,7 +183,6 @@
|
||||
<ClInclude Include="common\utils\smbios.hpp" />
|
||||
<ClInclude Include="common\utils\string.hpp" />
|
||||
<ClInclude Include="common\utils\thread.hpp" />
|
||||
<ClInclude Include="csv.hpp" />
|
||||
<ClInclude Include="functions.hpp" />
|
||||
<ClInclude Include="ini.h" />
|
||||
<ClInclude Include="json.hpp" />
|
||||
|
@ -138,6 +138,5 @@
|
||||
<ClInclude Include="json.hpp">
|
||||
<Filter>hook_lib\game</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="csv.hpp" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,15 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerCommand>D:\Games\CODMWDebug\Call of Duty Modern Warfare %282019%29\game_dx12_ship_replay.exe</LocalDebuggerCommand>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerCommand>D:\Games\CODMWDebug\Call of Duty Modern Warfare %282019%29\game_dx12_ship_replay.exe</LocalDebuggerCommand>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerWorkingDirectory>..\..\..\..\Games\CODMWDebug\Call of Duty Modern Warfare %282019%29</LocalDebuggerWorkingDirectory>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
</Project>
|
Binary file not shown.
Binary file not shown.
@ -1,8 +0,0 @@
|
||||
Base Address: 00007FF7D0550000
|
||||
dvar registered!
|
||||
dvar registered!
|
||||
registering lui dvars
|
||||
Base Address: 00007FF7D0550000
|
||||
dvar registered!
|
||||
dvar registered!
|
||||
registering lui dvars
|
File diff suppressed because one or more lines are too long
@ -10,6 +10,6 @@ size_t operator"" _g(size_t val);
|
||||
size_t reverse_g(size_t val);
|
||||
size_t reverse_g(const void* val);
|
||||
|
||||
extern byte data_buf[0x12856B];
|
||||
extern byte data_buf[1];
|
||||
|
||||
void set_splashscreen();
|
||||
|
@ -1019,14 +1019,7 @@ struct gentity_s : class_helper {
|
||||
unsigned __int8 field_19A;
|
||||
unsigned __int8 field_19B;
|
||||
int spawnflags;
|
||||
unsigned __int8 field_1A0;
|
||||
unsigned __int8 field_1A1;
|
||||
unsigned __int8 field_1A2;
|
||||
unsigned __int8 field_1A3;
|
||||
unsigned __int8 field_1A4;
|
||||
unsigned __int8 field_1A5;
|
||||
unsigned __int8 field_1A6;
|
||||
unsigned __int8 field_1A7;
|
||||
unsigned int m_flags[2];
|
||||
unsigned __int8 field_1A8;
|
||||
unsigned __int8 field_1A9;
|
||||
unsigned __int8 field_1AA;
|
||||
@ -2035,6 +2028,63 @@ struct gentity_s : class_helper {
|
||||
unsigned __int8 field_59F;
|
||||
};
|
||||
|
||||
typedef enum StatsSource {
|
||||
STATS_ONLINE = 0,
|
||||
STATS_OFFLINE = 1,
|
||||
STATS_COUNT = 2
|
||||
} StatsSource;
|
||||
|
||||
typedef enum StatsGroup {
|
||||
STATSGROUP_FIRST = 0,
|
||||
STATSGROUP_RANKED = 0,
|
||||
STATSGROUP_COOP = 1,
|
||||
STATSGROUP_COMMON = 2,
|
||||
STATSGROUP_RANKEDLOADOUTS = 3,
|
||||
STATSGROUP_PRIVATELOADOUTS = 4,
|
||||
STATSGROUP_NONGAME = 5,
|
||||
STATSGROUP_COUNT = 6,
|
||||
STATSGROUP_IGNORE = 7
|
||||
} StatsGroup;
|
||||
|
||||
typedef enum OmnvarType
|
||||
{
|
||||
OMNVAR_TYPE_BOOL = 0,
|
||||
OMNVAR_TYPE_FLOAT = 1,
|
||||
OMNVAR_TYPE_INT = 2,
|
||||
OMNVAR_TYPE_UINT = 3,
|
||||
OMNVAR_TYPE_TIME = 4,
|
||||
OMNVAR_TYPE_NCS_LUI = 5,
|
||||
OMNVAR_TYPE_COUNT = 6
|
||||
} OmnvarType;
|
||||
|
||||
union OmnvarValue
|
||||
{
|
||||
bool enabled;
|
||||
int integer;
|
||||
unsigned int unsignedInteger;
|
||||
float value;
|
||||
unsigned int ncsString;
|
||||
};
|
||||
|
||||
struct OmnvarData
|
||||
{
|
||||
unsigned int timeModified;
|
||||
OmnvarValue current;
|
||||
};
|
||||
|
||||
struct __declspec(align(8)) OmnvarDef
|
||||
{
|
||||
const char* name;
|
||||
const char* ncsString;
|
||||
int pmoveIndex;
|
||||
int minvalue;
|
||||
int maxvalue;
|
||||
OmnvarValue initial;
|
||||
char numbits;
|
||||
char flags;
|
||||
byte type[1];
|
||||
byte userType[1];
|
||||
};
|
||||
|
||||
|
||||
struct scrContext_t :class_helper {
|
||||
|
BIN
lib/minhook.lib
Normal file
BIN
lib/minhook.lib
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user