L L4D2node

_GLOBAL__sub_I_g_iFilterCommandsByServerCanExecute

0x00094440 · 931 bytes · unknown

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void _GLOBAL__sub_I_g_iFilterCommandsByServerCanExecute(void)

{
  int iVar1;
  undefined1 *this;
  
  this = s_CommandBuffer;
  iVar1 = 4;
  UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  vec2_origin._0_4_ = 0;
  vec2_origin._4_4_ = 0;
  vec2_invalid._0_4_ = 0x7f7fffff;
  vec2_invalid._4_4_ = 0x7f7fffff;
  vec4_origin._0_4_ = 0;
  vec4_origin._4_4_ = 0;
  vec4_origin._8_4_ = 0;
  vec4_origin._12_4_ = 0;
  vec4_invalid._0_4_ = 0x7f7fffff;
  vec4_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._8_4_ = 0x7f7fffff;
  vec4_invalid._12_4_ = 0x7f7fffff;
  do {
                    /* try { // try from 000944e9 to 000944ed has its CatchHandler @ 000947e3 */
    CCommandBuffer::CCommandBuffer((CCommandBuffer *)this);
    iVar1 = iVar1 + -1;
    this = this + 0x2554;
  } while (iVar1 != -1);
  __cxa_atexit(__tcf_0,0,&__dso_handle);
  s_CommandBufferMutex = 0;
  DAT_003887ec = 0;
  g_ExtraClientCmdCanExecuteCvars._4_4_ = 0;
  g_ExtraClientCmdCanExecuteCvars._8_4_ = 0;
  g_ExtraClientCmdCanExecuteCvars._12_4_ = 0;
  g_ExtraClientCmdCanExecuteCvars._16_4_ = 0xffffffff;
  g_ExtraClientCmdCanExecuteCvars._20_4_ = 0;
  g_ExtraClientCmdCanExecuteCvars._24_4_ = 0xffffffff;
  g_ExtraClientCmdCanExecuteCvars._28_4_ = 0xffffffff;
  g_ExtraClientCmdCanExecuteCvars._32_4_ = 0;
  g_ExtraClientCmdCanExecuteCvars._0_4_ = CaselessStringLessThan;
  __cxa_atexit(CUtlDict<int,int>::~CUtlDict,g_ExtraClientCmdCanExecuteCvars,&__dso_handle);
  g_ExecutionMarkers = 0;
  _DAT_003887d8 = 0;
  _DAT_003887dc = 0;
  DAT_003887e0 = 0;
  _DAT_003887e4 = 0;
  __cxa_atexit(CUtlVector<int,CUtlMemory<int,int>>::~CUtlVector,&g_ExecutionMarkers,&__dso_handle);
  CUniformRandomStream::CUniformRandomStream((CUniformRandomStream *)g_ExecutionMarkerStream);
  ConCommand::ConCommand
            ((ConCommand *)BindToggle_command,"BindToggle",BindToggle,
             "Performs a bind <key> \"increment var <cvar> 0 1 1\"",0,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,BindToggle_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)stuffcmds_command,"stuffcmds",stuffcmds,
             "Parses and stuffs command line + commands to command buffer.",0,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,stuffcmds_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)echo_command,"echo",echo,"Echo text to console.",0x10000000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,echo_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)alias_command,"alias",alias,"Alias a command.",0,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,alias_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)cmd_command,"cmd",cmd,"Forward command to server.",0,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,cmd_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)exec_command,"exec",Cmd_Exec_f,"Execute script file.",0,
             (int_____char_const__char *)g_exec_CompletionFunc);
  __cxa_atexit(ConCommand::~ConCommand,exec_command,&__dso_handle);
  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.



        
        

⚠ This function has no mangled symbol — it may be internal/static. The Linux gamedata field uses @-prefix symbol resolution which requires an exported mangled name. You'll need a Linux byte signature for this one (extract via extract_signature.java).


          

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

Return-type handling cheatsheet (DHookReturn)