L L4D2node

CBaseServer::SetPaused

0x00107a50 · 206 bytes · __thiscall

_ZN11CBaseServer9SetPausedEb

Decompiled

undefined (2 params)

/* CBaseServer::SetPaused(bool) */

void __thiscall CBaseServer::SetPaused(CBaseServer *this,bool param_1)

{
  char cVar1;
  undefined **local_5c;
  undefined1 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  undefined8 local_48;
  undefined4 local_40;
  undefined4 local_3c;
  undefined8 local_38;
  undefined4 local_30;
  undefined4 local_2c;
  undefined1 local_28;
  undefined8 local_24;
  undefined4 local_1c;
  undefined4 local_18;
  undefined1 local_10;
  
  if ((*(int *)(this + 4) != 3) && (cVar1 = (**(code **)(*(int *)this + 0x6c))(this), cVar1 == '\0')
     ) {
    return;
  }
  cVar1 = (**(code **)(*(int *)this + 0x58))(this);
  if (cVar1 == '\0') {
    return;
  }
  local_50 = 0;
  local_4c = 0;
  local_48 = 0;
  *(uint *)(this + 4) = 3 - (uint)!param_1;
  local_10 = param_1;
  local_40 = 0;
  local_3c = 0;
  local_38 = 0;
  local_30 = 0;
  local_2c = 0;
  local_28 = 0;
  local_24 = 0;
  local_1c = 0;
  local_18 = 0;
  local_58 = 1;
  local_54 = 0;
  local_5c = &PTR__SVC_SetPause_002a1c48;
  (**(code **)(*(int *)this + 0x84))(this,&local_5c,0,0);
  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)