L L4D2node

Templates_StartUniqueInstance

0x0083db70 · 97 bytes · unknown

_Z29Templates_StartUniqueInstancev

Decompiled

undefined (0 params)

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* Templates_StartUniqueInstance() */

void Templates_StartUniqueInstance(void)

{
  int iVar1;
  size_t sVar2;
  longdouble lVar3;
  
  iVar1 = g_iCurrentTemplateInstance + 1;
  g_iCurrentTemplateInstance = iVar1;
  sVar2 = strlen(ENTITYIO_FIXUP_STRING);
  lVar3 = (longdouble)__pow_finite(0x4024000000000000,(double)(int)(sVar2 - 1));
  if ((int)lVar3 <= iVar1) {
    g_iCurrentTemplateInstance = 0;
  }
  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)