L L4D2node

CV_GlobalChange_Commentary

0x0064bc70 · 55 bytes · __cdecl

_Z26CV_GlobalChange_CommentaryP7IConVarPKcf

Decompiled

undefined (3 params)

/* CV_GlobalChange_Commentary(IConVar*, char const*, float) */

void CV_GlobalChange_Commentary(IConVar *param_1,char *param_2,float param_3)

{
  if (g_CommentarySystem[0x14] == '\0') {
    return;
  }
  CCommentarySystem::ConvarChanged((IConVar *)g_CommentarySystem,(char *)param_1,(float)param_2);
  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)