L L4D2node

DispCommon_GenerateTriIndices

0x000d1480 · 62 bytes · __cdecl

_Z29DispCommon_GenerateTriIndicesiPt

Decompiled

undefined (2 params)

/* DispCommon_GenerateTriIndices(int, unsigned short*) */

void DispCommon_GenerateTriIndices(int param_1,ushort *param_2)

{
  undefined4 local_1c;
  undefined4 local_18;
  int local_14;
  int local_10;
  
  local_1c = 0;
  local_18 = 0;
  local_14 = 1 << ((byte)param_1 & 0x1f);
  local_10 = local_14;
  DispCommon_GenerateTriIndices_R
            ((CNodeVert *)&local_1c,(CNodeVert *)&local_14,param_2,param_1,local_14 + 1);
  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)