Update dvars

This commit is contained in:
BrentVL-1952840 2023-03-04 16:41:31 +01:00
parent 149ac1a219
commit 89e14e8bbb

View File

@ -202,23 +202,23 @@ namespace dvars
if (!game::is_server())
{
scheduler::once(read_archive_dvars, scheduler::pipeline::main);
dvar_set_variant_hook.create(0x1422C9A90_g, dvar_set_variant_stub);
dvar_set_variant_hook.create(0x1422C9030_g, dvar_set_variant_stub);
// Show all known dvars in console
utils::hook::jump(0x1422BD890_g, dvar_for_each_name_stub);
utils::hook::jump(0x1422BD7E0_g, dvar_for_each_name_client_num_stub);
utils::hook::jump(0x1422BCE30_g, dvar_for_each_name_stub);
utils::hook::jump(0x1422BCD80_g, dvar_for_each_name_client_num_stub);
}
scheduler::once(copy_dvar_names_to_pool, scheduler::pipeline::main);
// All dvars are recognized as command
utils::hook::nop(game::select(0x14215297A, 0x14050949A), 2);
utils::hook::nop(game::select(0x142151F1A, 0x14050949A), 2);
// Show all dvars in dvarlist command
utils::hook::nop(game::select(0x142152C87, 0x140509797), 6);
utils::hook::nop(game::select(0x142152227, 0x140509797), 6);
// Show all dvars in dvardump command
utils::hook::nop(game::select(0x142152659, 0x140509179), 6);
utils::hook::nop(game::select(0x142151BF9, 0x140509179), 6);
}
};
}
REGISTER_COMPONENT(dvars::component)
REGISTER_COMPONENT_WORKING(dvars::component)