L L4D2node

CVEngineServer::StartQueryCvarValue

0x0022c880 · 91 bytes · __thiscall

_ZN14CVEngineServer19StartQueryCvarValueEP7edict_tPKc

Decompiled

undefined (3 params)

/* CVEngineServer::StartQueryCvarValue(edict_t*, char const*) */

void __thiscall
CVEngineServer::StartQueryCvarValue(CVEngineServer *this,edict_t *param_1,char *param_2)

{
  int iVar1;
  IClient *pIVar2;
  
  iVar1 = NUM_FOR_EDICT(param_1);
  if ((iVar1 < 1) || (DAT_003b8080 < iVar1)) {
    Host_Error("StartQueryCvarValue: not a client");
  }
  iVar1 = *(int *)(DAT_003b8074 + -4 + iVar1 * 4);
  pIVar2 = (IClient *)0x0;
  if (iVar1 != 0) {
    pIVar2 = (IClient *)(iVar1 + 4);
  }
  SendCvarValueQueryToClient(pIVar2,param_2,false);
  return;
}

SourceMod gamedata

paste into addons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)

Just a Signatures{} block, ready to drop into a gamedata file. Wire it up in your plugin however you like - SDKCall, DHooks, raw memory ops, or anything else.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)