L L4D2node

CTongue::PrintDebugInfo

0x00841650 · 735 bytes · __thiscall

_ZN7CTongue14PrintDebugInfoEv

Decompiled

undefined (1 param)

/* CTongue::PrintDebugInfo() */

void __thiscall CTongue::PrintDebugInfo(CTongue *this)

{
  uint uVar1;
  undefined *puVar2;
  CTongue *pCVar3;
  int iVar4;
  longdouble lVar5;
  float fVar6;
  undefined4 *local_50;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  
  if ((((*(int *)(TongueDebug._28_4_ + 0x30) != 0) &&
       (uVar1 = *(uint *)(this + 0x44c), uVar1 != 0xffffffff)) &&
      (puVar2 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar2 != (undefined *)0xfffffffc)) &&
     ((*(uint *)(puVar2 + 8) == uVar1 >> 0xc && (*(int *)(puVar2 + 4) != 0)))) {
    if (*(uint *)(this + 0x4ac) < 5) {
      (**(code **)(*engine + 0xbc))
                (engine,10,"%s",
                 *(undefined4 *)
                  (State_LookupInfo(TongueState)::tongueStateInfo + *(uint *)(this + 0x4ac) * 0x1c))
      ;
    }
    else {
      (**(code **)(*engine + 0xbc))(engine,10,"NO STATE");
    }
    lVar5 = (longdouble)(**(code **)(*(int *)this + 0x344))(this);
    fVar6 = (float)lVar5;
    if (fVar6 <= 0.0) {
      fVar6 = 0.0;
    }
    (**(code **)(*engine + 0xbc))(engine,0xb,"%0.1f activation time remaining",(double)fVar6);
    (**(code **)(*engine + 0xbc))(engine,0xc,"%d bend points",*(undefined4 *)(this + 0x534));
    if (*(int *)(this + 0x4ac) != 0) {
      local_4c = *(undefined4 *)(this + 0x544);
      local_48 = *(undefined4 *)(this + 0x548);
      local_44 = *(undefined4 *)(this + 0x54c);
      if (0 < *(int *)(this + 0x534)) {
        iVar4 = 0;
        pCVar3 = this;
        do {
          local_40 = *(undefined4 *)(pCVar3 + 0x4bc);
          iVar4 = iVar4 + 1;
          local_3c = *(undefined4 *)(pCVar3 + 0x4c0);
          local_38 = *(undefined4 *)(pCVar3 + 0x4c4);
          (**(code **)(*debugoverlay + 0xc))(debugoverlay,&local_4c,&local_40,0xff,0,0,1,0x3c279bbb)
          ;
          local_4c = local_40;
          local_48 = local_3c;
          local_44 = local_38;
          pCVar3 = pCVar3 + 0xc;
        } while (iVar4 < *(int *)(this + 0x534));
      }
      local_50 = &local_4c;
      (**(code **)(*debugoverlay + 0xc))(debugoverlay,local_50,this + 0x538,0,0xff,0,1,0x3c279bbb);
      local_34 = 0xc0000000;
      local_30 = 0xc0000000;
      local_2c = 0xc0000000;
      local_28 = 0x40000000;
      local_24 = 0x40000000;
      local_20 = 0x40000000;
      (**(code **)(*debugoverlay + 4))
                (debugoverlay,this + 0x538,&local_34,&local_28,&vec3_angle,0,0,0xff,0x14,0x3c279bbb)
      ;
      return;
    }
  }
  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)