various patches + disable gsc ext.
This commit is contained in:
parent
0418527137
commit
2e66e0b45c
@ -233,8 +233,6 @@ namespace dedicated
|
||||
utils::hook::nop(0x34296F_b, 2); // ^
|
||||
utils::hook::set<uint8_t>(0xE08360_b, 0xC3); // don't shutdown renderer
|
||||
|
||||
utils::hook::set<uint8_t>(0xC5A200_b, 0xC3); // disable host migration
|
||||
|
||||
// SOUND patches
|
||||
//utils::hook::nop(0xC93213_b, 5); // snd stream thread
|
||||
//utils::hook::set<uint8_t>(0xC93206_b, 0); // snd_active
|
||||
|
@ -495,4 +495,4 @@ namespace gsc
|
||||
};
|
||||
}
|
||||
|
||||
REGISTER_COMPONENT(gsc::extension)
|
||||
//REGISTER_COMPONENT(gsc::extension)
|
||||
|
@ -307,6 +307,9 @@ namespace patches
|
||||
|
||||
// block changing name in-game
|
||||
utils::hook::set<uint8_t>(0xC4DF90_b, 0xC3);
|
||||
|
||||
// disable host migration
|
||||
utils::hook::set<uint8_t>(0xC5A200_b, 0xC3);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -15,12 +15,17 @@ namespace ranked
|
||||
public:
|
||||
void post_unpack() override
|
||||
{
|
||||
dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED);
|
||||
// This must be registered as 'true' to avoid crash when starting a private match
|
||||
dvars::override::register_bool("xblive_privatematch", true, game::DVAR_FLAG_REPLICATED);
|
||||
|
||||
if (game::environment::is_dedi())
|
||||
if (game::environment::is_dedi() && !utils::flags::has_flag("unranked"))
|
||||
{
|
||||
dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED | game::DVAR_FLAG_WRITE);
|
||||
dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED | game::DVAR_FLAG_WRITE); // DVAR_FLAG_REPLICATED needed?
|
||||
|
||||
game::Dvar_RegisterBool("onlinegame", true, game::DVAR_FLAG_READ, "Current game is an online game with stats, custom classes, unlocks");
|
||||
|
||||
// Fix sessionteam always returning none (SV_ClientMP_HasAssignedTeam_Internal)
|
||||
utils::hook::set(0xC50BC0_b, 0xC300B0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user