L L4D2node

CServerDemo::WriteBaseAnimating

0x00597570 · 189 bytes · __thiscall

_ZN11CServerDemo18WriteBaseAnimatingEP9KeyValues

Decompiled

undefined (2 params)

/* CServerDemo::WriteBaseAnimating(KeyValues*) */

void __thiscall CServerDemo::WriteBaseAnimating(CServerDemo *this,KeyValues *param_1)

{
  int iVar1;
  KeyValues *this_00;
  ServerDemoPacket_BaseAnimating *this_01;
  int *piVar2;
  
  if (WriteBaseAnimating(KeyValues*)::hSym == '\0') {
    iVar1 = __cxa_guard_acquire(&WriteBaseAnimating(KeyValues*)::hSym);
    if (iVar1 != 0) {
                    /* try { // try from 00597600 to 0059761c has its CatchHandler @ 00597633 */
      piVar2 = (int *)KeyValuesSystem();
      WriteBaseAnimating(KeyValues*)::hSym = (**(code **)(*piVar2 + 0x14))(piVar2,"baseanimating",1)
      ;
      __cxa_guard_release(&WriteBaseAnimating(KeyValues*)::hSym);
    }
  }
  this_00 = (KeyValues *)KeyValues::FindKey(param_1,WriteBaseAnimating(KeyValues*)::hSym);
  if (this_00 != (KeyValues *)0x0) {
    this_01 = (ServerDemoPacket_BaseAnimating *)KeyValues::GetPtr(this_00,(char *)0x0,(void *)0x0);
    if (this_01 != (ServerDemoPacket_BaseAnimating *)0x0) {
      CCircularBuffer::Write(*(CCircularBuffer **)this,this_01,8);
      ServerDemoPacket_BaseAnimating::WriteModifiedDataToBuffer(this_01,*(CCircularBuffer **)this);
      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)