L L4D2node

CUtlVector<vehiclescript_t,CUtlMemory<vehiclescript_t,int>>::RemoveAll

0x007821a0 · 193 bytes · __thiscall

_ZN10CUtlVectorI15vehiclescript_t10CUtlMemoryIS0_iEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlVector<vehiclescript_t, CUtlMemory<vehiclescript_t, int> >::RemoveAll() */

void __thiscall
CUtlVector<vehiclescript_t,CUtlMemory<vehiclescript_t,int>>::RemoveAll
          (CUtlVector<vehiclescript_t,CUtlMemory<vehiclescript_t,int>> *this)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(this + 0xc) + -1;
  iVar3 = iVar2 * 0x394;
  if (-1 < iVar2) {
    do {
      iVar2 = iVar2 + -1;
      iVar1 = *(int *)this + iVar3;
      iVar3 = iVar3 + -0x394;
      *(undefined ***)(iVar1 + 0x2a4) = &PTR_GetDataDescMap_00d4a878;
      *(undefined4 *)(iVar1 + 0x2c8) = 0;
      CUtlMemory<vehicle_crashsound_t,int>::Purge
                ((CUtlMemory<vehicle_crashsound_t,int> *)(iVar1 + 700));
      *(undefined4 *)(iVar1 + 0x2cc) = *(undefined4 *)(iVar1 + 700);
      CUtlMemory<vehicle_crashsound_t,int>::Purge
                ((CUtlMemory<vehicle_crashsound_t,int> *)(iVar1 + 700));
      *(undefined4 *)(iVar1 + 0x2b4) = 0;
      CUtlMemory<vehicle_gear_t,int>::Purge((CUtlMemory<vehicle_gear_t,int> *)(iVar1 + 0x2a8));
      *(undefined4 *)(iVar1 + 0x2b8) = *(undefined4 *)(iVar1 + 0x2a8);
      CUtlMemory<vehicle_gear_t,int>::Purge((CUtlMemory<vehicle_gear_t,int> *)(iVar1 + 0x2a8));
    } while (iVar2 != -1);
  }
  *(undefined4 *)(this + 0xc) = 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)