L L4D2node

CKnockdownAwardTemplate::CKnockdownAwardTemplate

0x00858c90 · 146 bytes · __thiscall

_ZN23CKnockdownAwardTemplateC1Ei

Decompiled

undefined (2 params)

/* CKnockdownAwardTemplate::CKnockdownAwardTemplate(int) */

void __thiscall
CKnockdownAwardTemplate::CKnockdownAwardTemplate(CKnockdownAwardTemplate *this,int param_1)

{
  CKnockdownAwardTemplate *pCVar1;
  CKnockdownAwardTemplate *pCVar2;
  CKnockdownAwardTemplate *pCVar3;
  int iVar4;
  
  pCVar3 = this + 0x10;
  CAwardTemplate::CAwardTemplate((CAwardTemplate *)this,param_1);
  *(undefined ***)this = &PTR__CKnockdownAwardTemplate_00cd92c8;
  pCVar1 = pCVar3;
  do {
    *(undefined ***)pCVar1 = &PTR_NetworkStateChanged_00c23e10;
    pCVar2 = pCVar1 + 8;
    *(undefined4 *)(this + (int)(pCVar1 + (0x14 - (int)pCVar3))) = 0xbf800000;
    pCVar1 = pCVar2;
  } while (pCVar2 != this + 0x110);
  iVar4 = 0;
  while( true ) {
    if (*(float *)(pCVar3 + 4) != -1.0) {
                    /* try { // try from 00858d0a to 00858d0c has its CatchHandler @ 00858d26 */
      (**(code **)(*(int *)pCVar3 + 4))(pCVar3,pCVar3 + 4);
      *(int *)(pCVar3 + 4) = -0x40800000;
    }
    if (iVar4 == 0xf8) break;
    pCVar3 = this + iVar4 + 0x18;
    iVar4 = iVar4 + 8;
  }
  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)