L L4D2node

GenerateLineStripIndexBuffer

0x00281730 · 77 bytes · __cdecl

_Z28GenerateLineStripIndexBufferPtii

Decompiled

undefined (3 params)

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

void GenerateLineStripIndexBuffer(ushort *param_1,int param_2,int param_3)

{
  short sVar1;
  int iVar2;
  
  if ((param_1 != (ushort *)0x0) && (0 < param_2 / 2)) {
    iVar2 = 0;
    do {
      sVar1 = (short)iVar2;
      *param_1 = (short)param_3 + sVar1;
      iVar2 = iVar2 + 1;
      param_1[1] = (short)param_3 + 1 + sVar1;
      param_1 = param_1 + 2;
    } while (iVar2 != param_2 / 2);
  }
  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)