Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP client and API interface #194

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open

Conversation

AlphaKeks
Copy link
Contributor

@AlphaKeks AlphaKeks commented Jul 3, 2024

Fixes #85

@AlphaKeks AlphaKeks force-pushed the http branch 6 times, most recently from 7cf241d to 458886a Compare July 5, 2024 18:12
@AlphaKeks AlphaKeks marked this pull request as ready for review July 5, 2024 18:39
.clang-format Outdated Show resolved Hide resolved
src/kz/global/commands.cpp Outdated Show resolved Hide resolved
src/utils/hooks.cpp Outdated Show resolved Hide resolved
src/kz/quiet/kz_quiet.cpp Show resolved Hide resolved
src/kz/language/kz_language.h Outdated Show resolved Hide resolved
src/kz/kz_player.cpp Outdated Show resolved Hide resolved
src/kz/kz.h Outdated Show resolved Hide resolved
src/kz/global/maps.h Outdated Show resolved Hide resolved
src/player/player_manager.cpp Outdated Show resolved Hide resolved
src/player/player_manager.cpp Outdated Show resolved Hide resolved
src/utils/hooks.cpp Outdated Show resolved Hide resolved
src/utils/hooks.cpp Outdated Show resolved Hide resolved
src/version.h Outdated Show resolved Hide resolved
src/kz/global/kz_global.h Outdated Show resolved Hide resolved
src/kz/kz_manager.cpp Outdated Show resolved Hide resolved
src/kz/kz_manager.cpp Outdated Show resolved Hide resolved
src/kz/global/kz_global.cpp Outdated Show resolved Hide resolved
src/kz/global/kz_global.cpp Outdated Show resolved Hide resolved
src/player/player_manager.cpp Outdated Show resolved Hide resolved
Comment on lines +763 to +786

CNetworkGameServerBase *networkGameServer = (CNetworkGameServerBase *)g_pNetworkServerService->GetIGameServer();

if (networkGameServer != nullptr)
{
KZGlobalService::Hook_ActivateServer(networkGameServer->GetMapName());
}

interfaces::pEngine->ServerCommand("exec cs2kz.cfg");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CNetworkGameServerBase *networkGameServer = (CNetworkGameServerBase *)g_pNetworkServerService->GetIGameServer();
if (networkGameServer != nullptr)
{
KZGlobalService::Hook_ActivateServer(networkGameServer->GetMapName());
}
interfaces::pEngine->ServerCommand("exec cs2kz.cfg");

It's already in kz_misc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's not? Do you mean that there's already a OnServerActivate function and I should move it there?

src/utils/simplecmds.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add HTTP client for global service
3 participants