L L4D2node

_GLOBAL__sub_I_ai_sequence_debug

0x00396260 · 1219 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_ai_sequence_debug(void)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  
  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 *)ai_sequence_debug,"ai_sequence_debug","0",0);
  __cxa_atexit(ConVar::~ConVar,ai_sequence_debug,&__dso_handle);
  CBaseAnimating_DataDescInit::g_DataMapHolder = DataMapInit<CBaseAnimating>((CBaseAnimating *)0x0);
  SendTable::SendTable((SendTable *)DT_ServerAnimationData::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_ServerAnimationData::g_SendTable,&__dso_handle);
  DT_ServerAnimationData::g_SendTableInit =
       ServerClassInit<DT_ServerAnimationData::ignored>((ignored *)0x0);
  puVar4 = (undefined4 *)g_pServerClassHead;
  g_CBaseAnimating_ClassReg._0_4_ = s_CBaseAnimating_00c598b4;
  g_CBaseAnimating_ClassReg._4_4_ = DT_BaseAnimating::g_SendTable;
  g_CBaseAnimating_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_CBaseAnimating_ClassReg;
    g_CBaseAnimating_ClassReg._8_4_ = 0;
  }
  else {
    puVar3 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar1 = _V_stricmp(*(char **)g_pServerClassHead,"CBaseAnimating");
    puVar2 = (undefined4 *)g_pServerClassHead;
    if (iVar1 < 1) {
      if (puVar3 != (undefined4 *)0x0) {
        do {
          puVar2 = puVar3;
          iVar1 = _V_stricmp((char *)*puVar2,"CBaseAnimating");
          puVar3 = puVar2;
          if (0 < iVar1) goto LAB_003966fe;
          puVar3 = (undefined4 *)puVar2[2];
          puVar4 = puVar2;
        } while ((undefined4 *)puVar2[2] != (undefined4 *)0x0);
        puVar3 = (undefined4 *)0x0;
      }
LAB_003966fe:
      g_CBaseAnimating_ClassReg._8_4_ = puVar3;
      puVar4[2] = g_CBaseAnimating_ClassReg;
    }
    else {
      g_pServerClassHead = g_CBaseAnimating_ClassReg;
      g_CBaseAnimating_ClassReg._8_4_ = puVar2;
    }
  }
  SendTable::SendTable((SendTable *)DT_BaseAnimating::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_BaseAnimating::g_SendTable,&__dso_handle);
  DT_BaseAnimating::g_SendTableInit = ServerClassInit<DT_BaseAnimating::ignored>((ignored *)0x0);
  g_CBaseAnimating_ScriptDesc._0_4_ = 0;
  g_CBaseAnimating_ScriptDesc._4_4_ = 0;
  g_CBaseAnimating_ScriptDesc._8_4_ = 0;
  g_CBaseAnimating_ScriptDesc._12_4_ = 0;
  g_CBaseAnimating_ScriptDesc._16_4_ = 0;
  g_CBaseAnimating_ScriptDesc._20_4_ = 0;
  g_CBaseAnimating_ScriptDesc._24_4_ = 0;
  g_CBaseAnimating_ScriptDesc._28_4_ = 0;
  g_CBaseAnimating_ScriptDesc._32_4_ = 0;
  g_CBaseAnimating_ScriptDesc._36_4_ = 0;
  g_CBaseAnimating_ScriptDesc._40_4_ = 0;
  g_CBaseAnimating_ScriptDesc._44_4_ = 0;
  __cxa_atexit(ScriptClassDesc_t::~ScriptClassDesc_t,g_CBaseAnimating_ScriptDesc,&__dso_handle);
  ConVar::ConVar((ConVar *)npc_height_adjust,"npc_height_adjust","1",0x80,
                 "Enable test mode for ik height adjustment");
  __cxa_atexit(ConVar::~ConVar,npc_height_adjust,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_pvsskipanimation,"sv_pvsskipanimation","1",0x80,
                 "Skips SetupBones when npc\'s are outside the PVS");
  __cxa_atexit(ConVar::~ConVar,sv_pvsskipanimation,&__dso_handle);
  ConVar::ConVar((ConVar *)ai_setupbones_debug,"ai_setupbones_debug","0",0,
                 "Shows that bones that are setup every think");
  __cxa_atexit(ConVar::~ConVar,ai_setupbones_debug,&__dso_handle);
  hullcolor._0_4_ = 0x3f800000;
  hullcolor._4_4_ = 0x3f800000;
  hullcolor._8_4_ = 0x3f800000;
  hullcolor._12_4_ = 0x3f800000;
  hullcolor._16_4_ = 0x3f000000;
  hullcolor._20_4_ = 0x3f000000;
  hullcolor._24_4_ = 0x3f000000;
  hullcolor._28_4_ = 0x3f800000;
  hullcolor._32_4_ = 0x3f000000;
  hullcolor._36_4_ = 0x3f800000;
  hullcolor._40_4_ = 0x3f800000;
  hullcolor._44_4_ = 0x3f000000;
  hullcolor._48_4_ = 0x3f000000;
  hullcolor._52_4_ = 0x3f000000;
  hullcolor._56_4_ = 0x3f800000;
  hullcolor._60_4_ = 0x3f800000;
  hullcolor._64_4_ = 0x3f000000;
  hullcolor._68_4_ = 0x3f800000;
  hullcolor._72_4_ = 0x3f000000;
  hullcolor._76_4_ = 0x3f800000;
  hullcolor._80_4_ = 0x3f800000;
  hullcolor._84_4_ = 0x3f800000;
  hullcolor._88_4_ = 0x3f800000;
  hullcolor._92_4_ = 0x3f800000;
  ConVar::ConVar((ConVar *)sv_showonlyhitbox,"sv_showonlyhitbox","-1",0x4000);
  __cxa_atexit(ConVar::~ConVar,sv_showonlyhitbox,&__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)