L L4D2node

OneWayLink_t::Compare

0x007210c0 · 34 bytes · __cdecl

_ZN12OneWayLink_t7CompareEPKS_S1_

Decompiled

undefined (2 params)

/* OneWayLink_t::Compare(OneWayLink_t const*, OneWayLink_t const*) */

int OneWayLink_t::Compare(OneWayLink_t *param_1,OneWayLink_t *param_2)

{
  int iVar1;
  
  iVar1 = (*(int *)param_1 - *(int *)param_2 >> 2) * -0x381c0e07;
  if (iVar1 == 0) {
    iVar1 = *(int *)(param_1 + 8) - *(int *)(param_2 + 8);
  }
  return iVar1;
}

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)