L L4D2node

CTerrorPlayer::GetZombieClass

0x009e41e0 · 57 bytes · __thiscall

_ZNK13CTerrorPlayer14GetZombieClassEv

Decompiled

undefined (1 param)

/* CTerrorPlayer::GetZombieClass() const */

undefined4 __thiscall CTerrorPlayer::GetZombieClass(CTerrorPlayer *this)

{
  char cVar1;
  int iVar2;
  
  iVar2 = CBaseEntity::GetTeamNumber((CBaseEntity *)this);
  cVar1 = IsASurvivorTeam(iVar2);
  if (cVar1 != '\0') {
    return 9;
  }
  return *(undefined4 *)(this + 0x2ba4);
}

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)