Remove broken hooks
This commit is contained in:
parent
3f4e8d8a01
commit
3e3157d7dd
@ -200,7 +200,7 @@ namespace patches
|
|||||||
utils::hook::nop(SELECT_VALUE(0x1A9DDC_b, 0x13388F_b), 6);
|
utils::hook::nop(SELECT_VALUE(0x1A9DDC_b, 0x13388F_b), 6);
|
||||||
|
|
||||||
// Allow executing custom cfg files with the "exec" command
|
// Allow executing custom cfg files with the "exec" command
|
||||||
utils::hook::jump(SELECT_VALUE(0x376EB5_b, 0x156D41_b), db_read_raw_file_stub);
|
// utils::hook::jump(SELECT_VALUE(0x376EB5_b, 0x156D41_b), db_read_raw_file_stub);
|
||||||
|
|
||||||
if (!game::environment::is_sp())
|
if (!game::environment::is_sp())
|
||||||
{
|
{
|
||||||
@ -229,12 +229,22 @@ namespace patches
|
|||||||
// block changing name in-game
|
// block changing name in-game
|
||||||
utils::hook::set<uint8_t>(0x54CFF0_b, 0xC3);
|
utils::hook::set<uint8_t>(0x54CFF0_b, 0xC3);
|
||||||
|
|
||||||
|
// client side aim assist dvar
|
||||||
|
/*dvars::aimassist_enabled = dvars::register_bool("aimassist_enabled", true,
|
||||||
|
game::DvarFlags::DVAR_FLAG_SAVED,
|
||||||
|
"Enables aim assist for controllers");
|
||||||
|
utils::hook::call(0xE857F_b, aim_assist_add_to_target_list);*/
|
||||||
|
|
||||||
// patch "Couldn't find the bsp for this map." error to not be fatal in mp
|
// patch "Couldn't find the bsp for this map." error to not be fatal in mp
|
||||||
utils::hook::jump(0x39465B_b, bsp_sys_error_stub);
|
// utils::hook::jump(0x39465B_b, bsp_sys_error_stub);
|
||||||
|
|
||||||
// isProfanity
|
// isProfanity
|
||||||
utils::hook::set(0x361AA0_b, 0xC3C033); // inlined?
|
utils::hook::set(0x361AA0_b, 0xC3C033); // inlined?
|
||||||
|
|
||||||
|
/*// disable emblems
|
||||||
|
dvars::override::register_int("emblems_active", 0, 0, 0, game::DVAR_FLAG_NONE);
|
||||||
|
utils::hook::set<uint8_t>(0x140479590, 0xC3); // don't register commands*/
|
||||||
|
|
||||||
// disable elite_clan
|
// disable elite_clan
|
||||||
dvars::override::register_int("elite_clan_active", 0, 0, 0, game::DVAR_FLAG_NONE);
|
dvars::override::register_int("elite_clan_active", 0, 0, 0, game::DVAR_FLAG_NONE);
|
||||||
utils::hook::set<uint8_t>(0x62D2F0_b, 0xC3); // don't register commands
|
utils::hook::set<uint8_t>(0x62D2F0_b, 0xC3); // don't register commands
|
||||||
@ -284,7 +294,7 @@ namespace patches
|
|||||||
cmd_lui_notify_server_hook.create(0x412D50_b, cmd_lui_notify_server_stub);
|
cmd_lui_notify_server_hook.create(0x412D50_b, cmd_lui_notify_server_stub);
|
||||||
|
|
||||||
// Prevent clients from sending invalid reliableAcknowledge
|
// Prevent clients from sending invalid reliableAcknowledge
|
||||||
utils::hook::jump(0x1CBD06_b, sv_execute_client_message_stub);
|
// utils::hook::jump(0x1CBD06_b, sv_execute_client_message_stub);
|
||||||
|
|
||||||
// "fix" for rare 'Out of memory error' error
|
// "fix" for rare 'Out of memory error' error
|
||||||
if (utils::flags::has_flag("memoryfix"))
|
if (utils::flags::has_flag("memoryfix"))
|
||||||
|
Loading…
Reference in New Issue
Block a user