added donetsk splashscreen
+ fixed slowmotion in final killcam
This commit is contained in:
parent
615d2eaca3
commit
2ea8110416
@ -41,6 +41,7 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD Reason, LPVOID lpVoid)
|
||||
FILE* Dummy;
|
||||
freopen_s(&Dummy, "CONOUT$", "w", stdout);
|
||||
freopen_s(&Dummy, "CONIN$", "r", stdin);
|
||||
SetConsoleTitleA("Donetsk Client");
|
||||
|
||||
utils::nt::library game{};
|
||||
utils::nt::library user32("user32.dll");
|
||||
|
@ -2,7 +2,17 @@
|
||||
|
||||
bool Com_GameMode_SupportsFeature_Detour(unsigned int featureID)
|
||||
{
|
||||
if (featureID == 70) // TIMESCALE_TWEAKING
|
||||
static dvar_t* com_timescale;
|
||||
static dvar_t* timescale;
|
||||
|
||||
if (com_timescale == nullptr && featureID == 70)
|
||||
{
|
||||
com_timescale = (dvar_t*)Dvar_FindVarByName("LNOTRKNRPS");
|
||||
timescale = (dvar_t*)Dvar_FindVarByName("MSNTNLNQNM");
|
||||
// fixes slowmotion final killcam, but not in an ideal way
|
||||
}
|
||||
|
||||
if (featureID == 70 && timescale->current.value != 1.0) // TIMESCALE_TWEAKING
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -226,6 +226,7 @@
|
||||
<ClInclude Include="patch.h" />
|
||||
<ClInclude Include="screen.h" />
|
||||
<ClInclude Include="script.h" />
|
||||
<ClInclude Include="splashscreen.hpp" />
|
||||
<ClInclude Include="stringed.h" />
|
||||
<ClInclude Include="structs.h" />
|
||||
<ClInclude Include="sv_main.h" />
|
||||
|
@ -267,5 +267,8 @@
|
||||
<ClInclude Include="zones.h">
|
||||
<Filter>hook_lib\game</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="splashscreen.hpp">
|
||||
<Filter>hook_lib\game</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -6,7 +6,6 @@ bool bFinished;
|
||||
bool btoggle;
|
||||
|
||||
dvar_t* cl_textChatEnabled = reinterpret_cast<dvar_t*>(0x14EEB0738_g);
|
||||
dvar_t* com_timescale = reinterpret_cast<dvar_t*>(0x14D3865E8_g);
|
||||
|
||||
uintptr_t xuid_generated;
|
||||
int collision_ticker;
|
||||
@ -95,6 +94,11 @@ int LiveStorage_GetActiveStatsSource_Detour()
|
||||
return 1;
|
||||
}
|
||||
|
||||
void Donetsk()
|
||||
{
|
||||
set_splashscreen();
|
||||
}
|
||||
|
||||
void hooks()
|
||||
{
|
||||
process_script_file.create(0x141322350_g, ProcessScriptFile);
|
||||
@ -152,6 +156,7 @@ void hooks()
|
||||
void patchGame()
|
||||
{
|
||||
hooks();
|
||||
Donetsk();
|
||||
|
||||
// patch ui_maxclients limit
|
||||
utils::hook::nop(0x140F30210_g, 5);
|
||||
@ -189,9 +194,6 @@ void patchGame()
|
||||
utils::hook::nop(0x141665289_g, 5);
|
||||
utils::hook::nop(0x14166567D_g, 5);
|
||||
|
||||
// set com_timescale dvar to read only
|
||||
utils::hook::set<unsigned int>(0x1412B26CF_g, 8192);
|
||||
|
||||
// remove FF Header version check
|
||||
// utils::hook::set<byte>(0x1411A776B_g, 0xEB);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,4 @@ 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[1];
|
||||
|
||||
void set_splashscreen();
|
||||
|
@ -16,9 +16,12 @@ const char* SEH_StringEd_GetString_Detour(const char* pszReference)
|
||||
GamerProfile_SetDataByName(0, "hasEverPlayed_MainMenu", 1);
|
||||
|
||||
// LUA_MENU/MAPNAME_ANIYAH // Aniyah Palace
|
||||
if (std::string(pszReference) == "LUA_MENU/MAPNAME_ANIYAH")
|
||||
if (strstr(pszReference, "LUA_MENU/MAPNAME_ANIYAH"))
|
||||
{
|
||||
return "^1no work";
|
||||
if (pszReference[23] == '\0')
|
||||
{
|
||||
return "^1no work";
|
||||
}
|
||||
}
|
||||
|
||||
if (strstr(pszReference, "LUA_MENU/MAPNAME_DEADZONE") ||
|
||||
|
Loading…
Reference in New Issue
Block a user