L L4D2node

CModelInfo::GetBrushModelPlane

0x00193b90 · 120 bytes · __thiscall

_ZNK10CModelInfo18GetBrushModelPlaneEPK7model_tiR8cplane_tP6Vector

Decompiled

undefined (5 params)

/* CModelInfo::GetBrushModelPlane(model_t const*, int, cplane_t&, Vector*) const */

void __thiscall
CModelInfo::GetBrushModelPlane
          (CModelInfo *this,model_t *param_1,int param_2,cplane_t *param_3,Vector *param_4)

{
  undefined4 *puVar1;
  
  if ((param_1 != (model_t *)0x0) && (*(int *)(param_1 + 0x110) == 1)) {
    puVar1 = (undefined4 *)R_GetBrushModelPlane(param_1,param_2,param_4);
    *(undefined4 *)param_3 = *puVar1;
    *(undefined4 *)(param_3 + 4) = puVar1[1];
    *(undefined4 *)(param_3 + 8) = puVar1[2];
    *(undefined4 *)(param_3 + 0xc) = puVar1[3];
    param_3[0x10] = *(cplane_t *)(puVar1 + 4);
    param_3[0x11] = *(cplane_t *)((int)puVar1 + 0x11);
    *(undefined2 *)(param_3 + 0x12) = *(undefined2 *)((int)puVar1 + 0x12);
    return;
  }
  return;
}

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)