L L4D2node

CTesselateVert::_GLOBAL__sub_I_CTesselateVert

0x00091fa0 · 1237 bytes · __cdecl

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CTesselateVert::CTesselateVert(CVertIndex const&, int) */

void CTesselateVert::_GLOBAL__sub_I_CTesselateVert(void)

{
  undefined2 *puVar1;
  undefined2 *puVar2;
  int iVar3;
  
  g_ChildNodeIndexMul = 1;
  DAT_0034e1a6 = 1;
  _DAT_0034e1a8 = 0xffff;
  _DAT_0034e1aa = 0xffff;
  _DAT_0034e1ac = 1;
  _DAT_0034e1ae = 0xffff;
  g_ChildNodeDependencies = 1;
  _DAT_0034e186 = 1;
  _DAT_0034e188 = 0;
  _DAT_0034e18a = 1;
  _DAT_0034e18c = 0xffff;
  _DAT_0034e18e = 0;
  _DAT_0034e190 = 0xffff;
  _DAT_0034e196 = 0xffff;
  _DAT_0034e198 = 0;
  _DAT_0034e19a = 0xffff;
  DAT_0034e1a2 = 1;
  _DAT_0034e19c = 1;
  DAT_0034e1a4 = 0xffff;
  _DAT_0034e182 = 0;
  _DAT_0034e19e = 0;
  _DAT_0034e184 = 0;
  _DAT_0034e192 = 0;
  g_TesselateVerts = 1;
  _DAT_0034e194 = 0;
  ::UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  ::UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  ::UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  ::UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  ::vec2_origin._0_4_ = 0;
  ::vec2_origin._4_4_ = 0;
  ::vec2_invalid._0_4_ = 0x7f7fffff;
  ::vec2_invalid._4_4_ = 0x7f7fffff;
  DAT_00343c62 = 0xffff;
  DAT_00343c66 = 0;
  DAT_00343c68 = 0xffff;
  DAT_00343c6a = 0xffff;
  DAT_00343c6c = 0xffff;
  DAT_00343c6e = 0xffff;
  DAT_00343c70 = 2;
  _DAT_00343c76 = 0xffff;
  _DAT_00343c78 = 0xffff;
  _DAT_00343c7a = 1;
  _DAT_00343c7c = 1;
  _DAT_00343c7e = 0;
  _DAT_00343c80 = 1;
  _DAT_00343c86 = 1;
  _DAT_00343c88 = 0;
  DAT_00343c64 = 3;
  _DAT_00343c8a = 1;
  _DAT_00343c72 = 0xffff;
  _DAT_00343c74 = 0;
  _DAT_00343c8c = 0;
  _DAT_00343c82 = 0xffff;
  _DAT_00343c84 = 1;
  _DAT_00343c8e = 0xffff;
  _DAT_00343c94 = 3;
  _DAT_00343c90 = 1;
  _DAT_00343c92 = 0xffff;
  puVar2 = &DAT_0034dd6c;
  do {
    puVar2[-6] = 0xffff;
    puVar2[-4] = 0xffff;
    puVar2[-3] = 0xffff;
    puVar2[-2] = 0xffff;
    puVar2[-5] = 0xffff;
    iVar3 = 4;
    puVar2[-1] = 0xffff;
    puVar1 = puVar2;
    do {
      *puVar1 = 0xffff;
      puVar1[1] = 0xffff;
      puVar1[2] = 0xffff;
      iVar3 = iVar3 + -1;
      puVar1 = puVar1 + 3;
    } while (iVar3 != 0);
    puVar1 = puVar2 + 0x15;
    puVar2[0xe] = 0xffff;
    puVar2[0xd] = 0xffff;
    puVar2[0xc] = 0xffff;
    puVar2 = puVar1;
  } while (puVar1 != (undefined2 *)&DAT_0034e186);
  g_PowerInfo_5x5._0_4_ = &g_VertInfo_5x5;
  g_PowerInfo_5x5._4_4_ = g_SideVerts_5x5;
  g_PowerInfo_5x5._8_4_ = g_ChildVerts_5x5;
  g_PowerInfo_5x5._12_4_ = g_SideVertCorners_5x5;
  g_PowerInfo_5x5._16_4_ = g_ErrorEdges_5x5;
  g_PowerInfo_5x5._20_4_ = g_TriInfos_5x5;
  puVar2 = &DAT_0034c8ec;
  do {
    puVar2[-6] = 0xffff;
    puVar2[-4] = 0xffff;
    puVar2[-3] = 0xffff;
    puVar2[-2] = 0xffff;
    puVar2[-5] = 0xffff;
    iVar3 = 4;
    puVar2[-1] = 0xffff;
    puVar1 = puVar2;
    do {
      *puVar1 = 0xffff;
      puVar1[1] = 0xffff;
      puVar1[2] = 0xffff;
      iVar3 = iVar3 + -1;
      puVar1 = puVar1 + 3;
    } while (iVar3 != 0);
    puVar1 = puVar2 + 0x15;
    puVar2[0xe] = 0xffff;
    puVar2[0xd] = 0xffff;
    puVar2[0xc] = 0xffff;
    puVar2 = puVar1;
  } while (puVar1 != (undefined2 *)&DAT_0034d636);
  g_PowerInfo_9x9._0_4_ = &g_VertInfo_9x9;
  g_PowerInfo_9x9._4_4_ = g_SideVerts_9x9;
  g_PowerInfo_9x9._8_4_ = g_ChildVerts_9x9;
  g_PowerInfo_9x9._12_4_ = g_SideVertCorners_9x9;
  g_PowerInfo_9x9._16_4_ = g_ErrorEdges_9x9;
  g_PowerInfo_9x9._20_4_ = g_TriInfos_9x9;
  puVar2 = &DAT_003484ac;
  do {
    puVar2[-6] = 0xffff;
    puVar2[-4] = 0xffff;
    puVar2[-3] = 0xffff;
    puVar2[-2] = 0xffff;
    puVar2[-5] = 0xffff;
    iVar3 = 0;
    puVar2[-1] = 0xffff;
    puVar1 = puVar2;
    do {
      iVar3 = iVar3 + 1;
      *puVar1 = 0xffff;
      puVar1[1] = 0xffff;
      puVar1[2] = 0xffff;
      puVar1 = puVar1 + 3;
    } while (iVar3 != 4);
    puVar1 = puVar2 + 0x15;
    puVar2[0xe] = 0xffff;
    puVar2[0xd] = 0xffff;
    puVar2[0xc] = 0xffff;
    puVar2 = puVar1;
  } while (puVar1 != (undefined2 *)&DAT_0034b416);
  iVar3 = 0;
  g_PowerInfo_17x17._0_4_ = &g_VertInfo_17x17;
  g_PowerInfo_17x17._4_4_ = g_SideVerts_17x17;
  g_PowerInfo_17x17._8_4_ = g_ChildVerts_17x17;
  g_PowerInfo_17x17._12_4_ = g_SideVertCorners_17x17;
  g_PowerInfo_17x17._16_4_ = g_ErrorEdges_17x17;
  g_PowerInfo_17x17._20_4_ = g_TriInfos_17x17;
  do {
    if ((CPowerInfo *)(&g_PowerInfos)[iVar3] != (CPowerInfo *)0x0) {
      InitPowerInfo((CPowerInfo *)(&g_PowerInfos)[iVar3],iVar3);
    }
    iVar3 = iVar3 + 1;
  } while (iVar3 != 5);
  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.



        
        

⚠ This function has no mangled symbol — it may be internal/static. The Linux gamedata field uses @-prefix symbol resolution which requires an exported mangled name. You'll need a Linux byte signature for this one (extract via extract_signature.java).


          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)