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

Method OnQueryCvarValueFinished

core/GameHooks.cpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113#if SOURCE_ENGINE != SE_DARKMESSIAH
114void GameHooks::OnQueryCvarValueFinished(QueryCvarCookie_t cookie, edict_t *pPlayer, EQueryCvarValueStatus result,
115 const char *cvarName, const char *cvarValue){
116 int client = IndexOfEdict(pPlayer);
117
118# if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_BLADE || SOURCE_ENGINE == SE_MCV
119 if (g_Players.HandleConVarQuery(cookie, client, result, cvarName, cvarValue))
120 return;
121# endif
122 g_ConVarManager.OnClientQueryFinished(cookie, client, result, cvarName, cvarValue);
123}
124#endif
125
126ke::RefPtr<CommandHook>

Callers

nothing calls this directly

Calls 3

IndexOfEdictFunction · 0.85
HandleConVarQueryMethod · 0.80
OnClientQueryFinishedMethod · 0.80

Tested by

no test coverage detected