L L4D2node

CBeamSpotlight::CBeamSpotlight

0x0062f6a0 · 675 bytes · __thiscall

_ZN14CBeamSpotlightC1Ev

Decompiled

undefined (1 param)

/* CBeamSpotlight::CBeamSpotlight() */

void __thiscall CBeamSpotlight::CBeamSpotlight(CBeamSpotlight *this)

{
  CBaseEdict *pCVar1;
  int iVar2;
  
  CBaseEntity::CBaseEntity((CBaseEntity *)this,false);
  *(undefined ***)this = &PTR__CBeamSpotlight_00c63ba8;
  this[0x444] = (CBeamSpotlight)0x0;
  if (this[0x6c] == (CBeamSpotlight)0x0) {
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) {
      this[0x445] = (CBeamSpotlight)0x1;
LAB_0062f90f:
      this[0x446] = (CBeamSpotlight)0x0;
LAB_0062f916:
      *(undefined4 *)(this + 0x448) = 0x43fa0000;
LAB_0062f920:
      *(undefined4 *)(this + 0x44c) = 0x42480000;
LAB_0062f92a:
      *(undefined4 *)(this + 0x450) = 0x3f333333;
LAB_0062f934:
      *(undefined4 *)(this + 0x454) = 0;
LAB_0062f93e:
      *(undefined4 *)(this + 0x458) = 0;
      goto LAB_0062f85a;
    }
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
                    /* try { // try from 0062f6e6 to 0062f853 has its CatchHandler @ 0062f94d */
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    this[0x445] = (CBeamSpotlight)0x1;
    if (this[0x6c] != (CBeamSpotlight)0x0) goto LAB_0062f8bf;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_0062f90f;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    this[0x446] = (CBeamSpotlight)0x0;
    if (this[0x6c] != (CBeamSpotlight)0x0) goto LAB_0062f8c6;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_0062f916;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x448) = 0x43fa0000;
    if (this[0x6c] != (CBeamSpotlight)0x0) goto LAB_0062f8d0;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_0062f920;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x44c) = 0x42480000;
    if (this[0x6c] != (CBeamSpotlight)0x0) goto LAB_0062f8da;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_0062f92a;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x450) = 0x3f333333;
    if (this[0x6c] != (CBeamSpotlight)0x0) goto LAB_0062f8e4;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_0062f934;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x454) = 0;
    if (this[0x6c] != (CBeamSpotlight)0x0) goto LAB_0062f8ee;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_0062f93e;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x458) = 0;
    if (this[0x6c] == (CBeamSpotlight)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
      }
      goto LAB_0062f85a;
    }
  }
  else {
    this[0x445] = (CBeamSpotlight)0x1;
LAB_0062f8bf:
    this[0x446] = (CBeamSpotlight)0x0;
LAB_0062f8c6:
    *(undefined4 *)(this + 0x448) = 0x43fa0000;
LAB_0062f8d0:
    *(undefined4 *)(this + 0x44c) = 0x42480000;
LAB_0062f8da:
    *(undefined4 *)(this + 0x450) = 0x3f333333;
LAB_0062f8e4:
    *(undefined4 *)(this + 0x454) = 0;
LAB_0062f8ee:
    *(undefined4 *)(this + 0x458) = 0;
  }
  this[0x70] = (CBeamSpotlight)((byte)this[0x70] | 1);
LAB_0062f85a:
  *(undefined4 *)(this + 0x45c) = 0x42c80000;
  this[0x460] = (CBeamSpotlight)0x0;
  this[0x461] = (CBeamSpotlight)0x0;
  *(undefined4 *)(this + 0x464) = 0;
  *(undefined4 *)(this + 0x470) = 0xffffffff;
  *(undefined4 *)(this + 0x474) = 0;
  *(undefined4 *)(this + 0x47c) = 0;
  *(undefined4 *)(this + 0x488) = 0xffffffff;
  *(undefined4 *)(this + 0x48c) = 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)