L L4D2node

CBaseServer::BroadcastPrintf

0x00107710 · 273 bytes · __thiscall

_ZN11CBaseServer15BroadcastPrintfEPKcz

Decompiled

undefined (2 params)

/* CBaseServer::BroadcastPrintf(char const*, ...) */

void __thiscall CBaseServer::BroadcastPrintf(CBaseServer *this,char *param_1,...)

{
  int in_GS_OFFSET;
  char local_c60 [1024];
  undefined **local_860;
  undefined1 local_85c;
  undefined4 local_858;
  undefined4 local_854;
  undefined4 local_850;
  undefined8 local_84c;
  undefined4 local_844;
  undefined4 local_840;
  undefined8 local_83c;
  undefined4 local_834;
  undefined4 local_830;
  undefined1 local_82c;
  undefined8 local_828;
  undefined4 local_820;
  undefined4 local_81c;
  char *local_814;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  V_vsnprintf(local_c60,0x400,param_1,&stack0x0000000c);
  local_854 = 0;
  local_850 = 0;
  local_84c = 0;
  local_844 = 0;
  local_840 = 0;
  local_83c = 0;
  local_834 = 0;
  local_830 = 0;
  local_82c = 0;
  local_828 = 0;
  local_820 = 0;
  local_81c = 0;
  local_858 = 0;
  local_860 = &PTR__SVC_Print_002a1768;
  local_85c = 0;
  local_814 = local_c60;
  (**(code **)(*(int *)this + 0x84))(this,&local_860,0,0);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

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)