Merge branch 'main' of https://github.com/skkuull/h1-mod
This commit is contained in:
commit
03d6243ec9
@ -104,6 +104,17 @@ namespace patches
|
|||||||
return 0; // 0 == yes
|
return 0; // 0 == yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void set_client_dvar_from_server_stub(void* a1, void* a2, const char* dvar, const char* value)
|
||||||
|
{
|
||||||
|
if (dvar == "cg_fov"s)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// CG_SetClientDvarFromServer
|
||||||
|
reinterpret_cast<void(*)(void*, void*, const char*, const char*)>(0x140236120)(a1, a2, dvar, value);
|
||||||
|
}
|
||||||
|
|
||||||
/*void aim_assist_add_to_target_list(void* a1, void* a2)
|
/*void aim_assist_add_to_target_list(void* a1, void* a2)
|
||||||
{
|
{
|
||||||
if (!dvars::aimassist_enabled->current.enabled)
|
if (!dvars::aimassist_enabled->current.enabled)
|
||||||
@ -237,11 +248,11 @@ namespace patches
|
|||||||
// patch "Server is different version" to show the server client version
|
// patch "Server is different version" to show the server client version
|
||||||
utils::hook::inject(0x140480952, VERSION); // H1(1.4)
|
utils::hook::inject(0x140480952, VERSION); // H1(1.4)
|
||||||
|
|
||||||
// prevent servers overriding our fov
|
// prevent servers overriding our fov
|
||||||
//utils::hook::call(0x1401BB782, gscr_set_save_dvar_stub);
|
utils::hook::call(0x14023279E, set_client_dvar_from_server_stub);
|
||||||
//utils::hook::nop(0x1403D1195, 5);
|
utils::hook::nop(0x1400DAF69, 5);
|
||||||
//utils::hook::nop(0x1400FAE36, 5);
|
utils::hook::nop(0x140190C16, 5);
|
||||||
//utils::hook::set<uint8_t>(0x14019B9B9, 0xEB);
|
utils::hook::set<uint8_t>(0x14021D22A, 0xEB);
|
||||||
|
|
||||||
// some anti tamper thing that kills performance
|
// some anti tamper thing that kills performance
|
||||||
dvars::override::register_int("dvl", 0, 0, 0, game::DVAR_FLAG_READ, true);
|
dvars::override::register_int("dvl", 0, 0, 0, game::DVAR_FLAG_READ, true);
|
||||||
|
@ -110,6 +110,9 @@ namespace game
|
|||||||
0x1403F3A70, 0x140484AD0
|
0x1403F3A70, 0x140484AD0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
WEAK symbol<bool(int clientNum, const char* menu)> Menu_IsMenuOpenAndVisible{ 0, 0x1404C7320 };
|
||||||
|
WEAK symbol<const char* (const char* string)> UI_SafeTranslateString{ 0x140350430, 0x1405A2930 };
|
||||||
|
|
||||||
WEAK symbol<void()> Sys_ShowConsole{0x1403E3B90, 0x140514910};
|
WEAK symbol<void()> Sys_ShowConsole{0x1403E3B90, 0x140514910};
|
||||||
WEAK symbol<void(const char* error, ...)> Sys_Error{0x1403E0C40, 0x140511520};
|
WEAK symbol<void(const char* error, ...)> Sys_Error{0x1403E0C40, 0x140511520};
|
||||||
WEAK symbol<void(char* path, int pathSize, Sys_Folder folder, const char* filename, const char* ext)>
|
WEAK symbol<void(char* path, int pathSize, Sys_Folder folder, const char* filename, const char* ext)>
|
||||||
|
Loading…
Reference in New Issue
Block a user