L L4D2node

CChoreoEvent::GetDistanceStyle

0x00ba69a0 · 109 bytes · __thiscall

_ZN12CChoreoEvent16GetDistanceStyleEPci

Decompiled

undefined (3 params)

/* CChoreoEvent::GetDistanceStyle(char*, int) */

void __thiscall CChoreoEvent::GetDistanceStyle(CChoreoEvent *this,char *param_1,int param_2)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  
  *param_1 = '\0';
  pcVar2 = (char *)CUtlString::Get((CUtlString *)(this + 0x28));
  iVar3 = _V_strstr(pcVar2," ");
  if (iVar3 != 0) {
    pcVar2 = (char *)(iVar3 + 1);
    cVar1 = *(char *)(iVar3 + 1);
    pcVar4 = param_1;
    if ((cVar1 != '\0') && (pcVar5 = param_1, 0 < param_2 + -1)) {
      do {
        pcVar4 = pcVar5 + 1;
        pcVar2 = pcVar2 + 1;
        *pcVar5 = cVar1;
        cVar1 = *pcVar2;
        if (cVar1 == '\0') break;
        pcVar5 = pcVar4;
      } while ((int)pcVar4 - (int)param_1 < param_2 + -1);
    }
    *pcVar4 = '\0';
  }
  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)