diff --git a/src/Components/Modules/Changelog.cpp b/src/Components/Modules/Changelog.cpp index 4e7ee826..6dc2d719 100644 --- a/src/Components/Modules/Changelog.cpp +++ b/src/Components/Modules/Changelog.cpp @@ -51,6 +51,8 @@ namespace Components Changelog::Changelog() { + if (Dedicated::IsEnabled()) return; + // Changelog UIFeeder::Add(62.0f, Changelog::GetChangelogCount, Changelog::GetChangelogText, Changelog::SelectChangelog); } diff --git a/src/Components/Modules/D3D9Ex.cpp b/src/Components/Modules/D3D9Ex.cpp index 6526cf30..d5281324 100644 --- a/src/Components/Modules/D3D9Ex.cpp +++ b/src/Components/Modules/D3D9Ex.cpp @@ -745,6 +745,8 @@ namespace Components D3D9Ex::D3D9Ex() { + if (Dedicated::IsEnabled()) return; + Dvar::Register("r_useD3D9Ex", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Use extended d3d9 interface!"); // Hook Interface creation diff --git a/src/Components/Modules/Friends.cpp b/src/Components/Modules/Friends.cpp index 1a113903..3444a341 100644 --- a/src/Components/Modules/Friends.cpp +++ b/src/Components/Modules/Friends.cpp @@ -535,6 +535,7 @@ namespace Components Friends::LoggedOn = false; if (Dedicated::IsEnabled() ||ZoneBuilder::IsEnabled()) return; + Dvar::Register("cl_anonymous", false, Game::DVAR_FLAG_SAVED, ""); Dvar::Register("cl_notifyFriendState", 1, -1, 1, Game::DVAR_FLAG_SAVED, ""); diff --git a/src/Components/Modules/Renderer.cpp b/src/Components/Modules/Renderer.cpp index f6af1fcb..3f190679 100644 --- a/src/Components/Modules/Renderer.cpp +++ b/src/Components/Modules/Renderer.cpp @@ -94,6 +94,8 @@ namespace Components Renderer::Renderer() { + if (Dedicated::IsEnabled()) return; + // Renderer::OnBackendFrame([] (IDirect3DDevice9* device) // { // if (Game::Sys_Milliseconds() % 2) diff --git a/src/Components/Modules/UIFeeder.cpp b/src/Components/Modules/UIFeeder.cpp index ad39e43d..8d6e7dc6 100644 --- a/src/Components/Modules/UIFeeder.cpp +++ b/src/Components/Modules/UIFeeder.cpp @@ -379,6 +379,8 @@ namespace Components UIFeeder::UIFeeder() { + if (Dedicated::IsEnabled()) return; + Dvar::OnInit([]() { Dvar::Register("ui_map_long", "Afghan", Game::dvar_flag::DVAR_FLAG_NONE, ""); diff --git a/src/Components/Modules/UIScript.cpp b/src/Components/Modules/UIScript.cpp index 95f118e8..923772b4 100644 --- a/src/Components/Modules/UIScript.cpp +++ b/src/Components/Modules/UIScript.cpp @@ -116,6 +116,8 @@ namespace Components UIScript::UIScript() { + if (Dedicated::IsEnabled()) return; + // Install handler Utils::Hook::RedirectJump(0x45EC59, UIScript::RunMenuScriptStub);