MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / QueryClientConVar

Method QueryClientConVar

core/logic_bridge.cpp:652–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652int CoreProviderImpl::QueryClientConVar(int client, const char *cvar)
653{
654#if SOURCE_ENGINE != SE_DARKMESSIAH
655 switch (hooks_.GetClientCvarQueryMode()) {
656 case ClientCvarQueryMode::DLL:
657 return ::engine->StartQueryCvarValue(PEntityOfEntIndex(client), cvar);
658 case ClientCvarQueryMode::VSP:
659 return serverpluginhelpers->StartQueryCvarValue(PEntityOfEntIndex(client), cvar);
660 default:
661 return InvalidQueryCvarCookie;
662 }
663#endif
664 return -1;
665}
666
667void CoreProviderImpl::InitializeBridge()
668{

Callers 2

ifFunction · 0.45
sm_QueryClientConVarFunction · 0.45

Calls 2

PEntityOfEntIndexFunction · 0.85

Tested by

no test coverage detected