L L4D2node

_GLOBAL__sub_I_rr_debugresponses

0x00395740 · 1287 bytes · unknown

Decompiled

undefined (0 params)

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

void _GLOBAL__sub_I_rr_debugresponses(void)

{
  undefined2 *puVar1;
  undefined2 *puVar2;
  int *piVar3;
  
  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;
  ConVar::ConVar((ConVar *)rr_debugresponses,"rr_debugresponses","0",0,
                 "Show verbose matching output (1 for simple, 2 for rule scoring, 3 for noisy). If set to 4, it will only show response success/failure for npc_selected NPCs."
                );
  __cxa_atexit(ConVar::~ConVar,rr_debugresponses,&__dso_handle);
  ConVar::ConVar((ConVar *)rr_debugrule,"rr_debugrule","",0,
                 "If set to the name of the rule, that rule\'s score will be shown whenever a concept is passed into the response rules system."
                );
  __cxa_atexit(ConVar::~ConVar,rr_debugrule,&__dso_handle);
  ConVar::ConVar((ConVar *)rr_dumpresponses,"rr_dumpresponses","0",0,
                 "Dump all response_rules.txt and rules (requires restart)");
  __cxa_atexit(ConVar::~ConVar,rr_dumpresponses,&__dso_handle);
  ConVar::ConVar((ConVar *)rr_debugresponseconcept,"rr_debugresponseconcept","",0,
                 "If set, rr_debugresponses will print only responses testing for the specified concept"
                );
  __cxa_atexit(ConVar::~ConVar,rr_debugresponseconcept,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)rr_debug_responseconcept_exclude,"rr_debugresponseconcept_exclude",
             CC_RR_Debug_ResponseConcept_Exclude,
             "Set a list of concepts to exclude from rr_debugresponseconcept. Separate multiple concepts with spaces. Call with no arguments to see current list. Call \'rr_debug_responseconcept_exclude !\' to reset."
             ,0,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,rr_debug_responseconcept_exclude,&__dso_handle);
  CUtlSymbolTable::CUtlSymbolTable((CUtlSymbolTable *)RR::g_RS,0,0x10,false);
  __cxa_atexit(CUtlSymbolTable::~CUtlSymbolTable,RR::g_RS,&__dso_handle);
  puVar1 = (undefined2 *)&DAT_00fb7cd0;
  do {
    *puVar1 = 0xffff;
    puVar2 = puVar1 + 0xe;
    *(undefined4 *)(puVar1 + -8) = 0;
    *(undefined4 *)(puVar1 + -6) = 0;
    *(undefined4 *)(puVar1 + -4) = 0;
    *(undefined4 *)(puVar1 + -2) = 0;
    puVar1[1] = 0;
    puVar1[2] = 0xffff;
    puVar1[3] = 0xffff;
    *(undefined4 *)(puVar1 + 4) = 0;
    puVar1 = puVar2;
  } while (puVar2 != (undefined2 *)(RR::g_RS + 0x10));
  piVar3 = &g_ReponseStringBucketInitializer;
  do {
    while (*piVar3 == 0) {
      *piVar3 = (int)StringLessThan;
      piVar3 = piVar3 + 7;
      if (piVar3 == (int *)RR::g_RS) goto LAB_00395a10;
    }
    piVar3 = piVar3 + 7;
  } while (piVar3 != (int *)RR::g_RS);
LAB_00395a10:
  __cxa_atexit(CResponseStringBuckets::~CResponseStringBuckets,&g_ReponseStringBucketInitializer,
               &__dso_handle);
  CharacterSetBuild((characterset_t *)g_BreakSetIncludingColons,"{}()\':");
  CResponseSystem::m_DebugExcludeList = 0;
  DAT_00fb7c84 = 0;
  DAT_00fb7c88 = 4;
  DAT_00fb7ca0 = 0xffffffff;
  DAT_00fb7c8c = 0xffff;
  DAT_00fb7c90 = 0xffff;
  _DAT_00fb7c94 = 0xffff;
  DAT_00fb7c98 = 0;
  _DAT_00fb7c9c = 0;
  _DAT_00fb7ca4 = 0;
  __cxa_atexit(CUtlLinkedList<CAI_Concept,unsigned_short,false,unsigned_int,CUtlMemory<UtlLinkedListElem_t<CAI_Concept,unsigned_short>,unsigned_int>>
               ::~CUtlLinkedList,&CResponseSystem::m_DebugExcludeList,&__dso_handle);
  Response_DataDescInit::g_DataMapHolder = DataMapInit<Response>((Response *)0x0);
  ResponseGroup_DataDescInit::g_DataMapHolder = DataMapInit<ResponseGroup>((ResponseGroup *)0x0);
  CResponseSystem::CResponseSystem((CResponseSystem *)&defaultresponsesytem);
                    /* try { // try from 00395afd to 00395b01 has its CatchHandler @ 00395c4b */
  CAutoGameSystem::CAutoGameSystem((CAutoGameSystem *)&DAT_00fbc47c,"CDefaultResponseSystem");
  DAT_00fbc498 = 0xffff;
  _DAT_00fbc4b4 = 0xffff;
  _DAT_00fbc4b6 = 0;
  _DAT_00fbc4b8 = 0xffff;
  DAT_00fbc49a = 0;
  DAT_00fbc49c = 0xffff;
  _DAT_00fbc49e = 0xffff;
  defaultresponsesytem = &PTR__CDefaultResponseSystem_00c58828;
  _DAT_00fbc47c = &PTR_Name_00c58864;
  DAT_00fbc488 = CDefOps<unsigned_int>::LessFunc;
  DAT_00fbc48c = 0;
  _DAT_00fbc490 = 0;
  _DAT_00fbc494 = 0;
  _DAT_00fbc4a0 = 0;
  _DAT_00fbc4a4 = CDefOps<unsigned_int>::LessFunc;
  _DAT_00fbc4a8 = 0;
  _DAT_00fbc4ac = 0;
  _DAT_00fbc4b0 = 0;
  _DAT_00fbc4ba = 0xffff;
  _DAT_00fbc4bc = 0;
  __cxa_atexit(CDefaultResponseSystem::~CDefaultResponseSystem,&defaultresponsesytem,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)rr_reloadresponsesystems_command,"rr_reloadresponsesystems",
             rr_reloadresponsesystems,"Reload all response system scripts.",0,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,rr_reloadresponsesystems_command,&__dso_handle);
  g_DefaultResponseSystemSaveRestoreBlockHandler._0_4_ = &PTR_GetBlockName_00c587c8;
  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)