L L4D2node

CFuncConveyor::Spawn

0x006311b0 · 282 bytes · __thiscall

_ZN13CFuncConveyor5SpawnEv

Decompiled

undefined (1 param)

/* CFuncConveyor::Spawn() */

void __thiscall CFuncConveyor::Spawn(CFuncConveyor *this)

{
  CBaseEdict *this_00;
  uint uVar1;
  int iVar2;
  float fVar3;
  undefined4 local_18;
  undefined4 local_14;
  undefined4 local_10;
  
  local_10 = *(undefined4 *)(this + 0x44c);
  local_14 = *(undefined4 *)(this + 0x448);
  local_18 = *(undefined4 *)(this + 0x444);
  AngleVectors((QAngle *)&local_18,(Vector *)(this + 0x444));
  CFuncWall::Spawn((CFuncWall *)this);
  uVar1 = *(uint *)(this + 0x148);
  if ((uVar1 & 1) == 0) {
    CBaseEntity::AddFlag((CBaseEntity *)this,0x1000);
    uVar1 = *(uint *)(this + 0x148);
  }
  if ((uVar1 & 2) != 0) {
    CCollisionProperty::SetSolidFlags
              ((CCollisionProperty *)(this + 0x194),(uint)(*(ushort *)(this + 0x1b4) | 4));
  }
  fVar3 = *(float *)(this + 0x11c);
  if (fVar3 == 0.0) {
    fVar3 = 100.0;
    *(undefined4 *)(this + 0x11c) = 0x42c80000;
  }
  if (fVar3 == *(float *)(this + 0x450)) {
    return;
  }
  if (this[0x6c] == (CFuncConveyor)0x0) {
    this_00 = *(CBaseEdict **)(this + 0x30);
    if (this_00 != (CBaseEdict *)0x0) {
      *(uint *)this_00 = *(uint *)this_00 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(this_00);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(float *)(this + 0x450) = fVar3;
  }
  else {
    this[0x70] = (CFuncConveyor)((byte)this[0x70] | 1);
    *(float *)(this + 0x450) = fVar3;
  }
  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)