L L4D2node

GetGridSize

0x00707ba0 · 63 bytes · __regparm3

_Z11GetGridSizeb.part.62

Decompiled

undefined (1 param)

/* GetGridSize(bool) [clone .part.62] */

undefined4 __regparm3 GetGridSize(bool param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(nav_snap_to_grid._28_4_ + 0x30);
  if (param_1) {
    if (iVar1 == 0) {
      return 0x19;
    }
  }
  else if (iVar1 == 0) {
    return 0;
  }
  if (iVar1 == 2) {
    return 5;
  }
  uVar2 = 0x19;
  if (iVar1 == 3) {
    uVar2 = 1;
  }
  return uVar2;
}

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)