L L4D2node

NET_OutOfBandDelayedPrintf

0x001c8fd0 · 171 bytes · __cdecl

_Z26NET_OutOfBandDelayedPrintfiRK8netadr_sjPKcz

Decompiled

undefined (4 params)

/* NET_OutOfBandDelayedPrintf(int, netadr_s const&, unsigned int, char const*, ...) */

void NET_OutOfBandDelayedPrintf(int param_1,netadr_s *param_2,uint param_3,char *param_4,...)

{
  int iVar1;
  int in_GS_OFFSET;
  uchar local_4d0 [1200];
  int local_20;
  
  local_4d0[0] = 0xff;
  local_4d0[1] = 0xff;
  local_4d0[2] = 0xff;
  local_4d0[3] = 0xff;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  V_vsnprintf((char *)(local_4d0 + 4),0x4ac,param_4,&stack0x00000014);
  iVar1 = _V_strlen((char *)(local_4d0 + 4));
  NET_SendPacket((INetChannel *)0x0,param_1,param_2,local_4d0,iVar1 + 5,(bf_write *)0x0,false,
                 param_3);
  if (local_20 == *(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)