L L4D2node

CTerrorPlayerAnimState::HandleActivity_CarriedByCharger

0x00511560 · 161 bytes · __thiscall

_ZN22CTerrorPlayerAnimState31HandleActivity_CarriedByChargerEv

Decompiled

undefined (1 param)

/* CTerrorPlayerAnimState::HandleActivity_CarriedByCharger() */

undefined4 __thiscall
CTerrorPlayerAnimState::HandleActivity_CarriedByCharger(CTerrorPlayerAnimState *this)

{
  int *piVar1;
  uint uVar2;
  char cVar3;
  int iVar4;
  undefined *puVar5;
  
  piVar1 = *(int **)(this + 0x118);
  uVar2 = piVar1[0xa93];
  if ((((uVar2 != 0xffffffff) &&
       (puVar5 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
      (*(uint *)(puVar5 + 8) == uVar2 >> 0xc)) && (*(int *)(puVar5 + 4) != 0)) {
    cVar3 = (**(code **)(*piVar1 + 0x7e8))(piVar1);
    if (cVar3 == '\0') {
      iVar4 = CMultiPlayerAnimState::GetMainActivity((CMultiPlayerAnimState *)this);
      if ((iVar4 == 0x210) && (*(float *)(*(int *)(this + 0x118) + 0x490) <= 0.99)) {
        return 0x210;
      }
      (**(code **)(*(int *)this + 0x38))(this);
      return 0x210;
    }
  }
  return 0xffffffff;
}

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)