L L4D2node

CChoreoEvent::GetDescription

0x00ba4760 · 379 bytes · __thiscall

_ZN12CChoreoEvent14GetDescriptionEv

Decompiled

undefined (1 param)

/* CChoreoEvent::GetDescription() */

undefined1 * __thiscall CChoreoEvent::GetDescription(CChoreoEvent *this)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined *puVar5;
  int in_GS_OFFSET;
  char local_120 [256];
  int local_20;
  
  GetDescription()::description[0] = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(this + 0xb4) == 0) {
    uVar1 = CUtlString::Get((CUtlString *)(this + 8));
    V_snprintf(GetDescription()::description,0x100,"global %s",uVar1);
  }
  else {
    uVar1 = CUtlString::Get((CUtlString *)(this + 0x18));
    puVar5 = PTR_s_unspecified_00f6d244;
    if ((byte)this[4] < 0x11) {
      puVar5 = (&PTR_s_unspecified_00f6d244)[(uint)(byte)this[4] * 2];
    }
    uVar2 = CUtlString::Get((CUtlString *)(this + 8));
    uVar3 = CChoreoChannel::GetName(*(CChoreoChannel **)(this + 0xb8));
    uVar4 = CChoreoActor::GetName(*(CChoreoActor **)(this + 0xb4));
    V_snprintf(GetDescription()::description,0x100,"%s : %s : %s -- %s \"%s\"",uVar4,uVar3,uVar2,
               puVar5,uVar1);
    if (this[4] == (CChoreoEvent)0x2) {
      uVar4 = CUtlString::Get((CUtlString *)(this + 0x28));
      V_snprintf(local_120,0x100," \"%s\"",uVar4,uVar3,uVar2,puVar5,uVar1);
      V_strncat(GetDescription()::description,local_120,0x100,-1);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return GetDescription()::description;
}

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)