L L4D2node

Array_GetLength

0x0014ac40 · 55 bytes · __cdecl

_Z15Array_GetLengthPKhPK8SendPropi

Decompiled

undefined (3 params)

/* Array_GetLength(unsigned char const*, SendProp const*, int) */

int Array_GetLength(uchar *param_1,SendProp *param_2,int param_3)

{
  int iVar1;
  
  if (*(code **)(param_2 + 0x1c) != (code *)0x0) {
    iVar1 = (**(code **)(param_2 + 0x1c))(param_1,param_3);
    if (*(int *)(param_2 + 0x20) < iVar1) {
      iVar1 = *(int *)(param_2 + 0x20);
    }
    return iVar1;
  }
  return *(int *)(param_2 + 0x20);
}

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)