L L4D2node

CBaseEntity::PhysicsNotifyOtherOfGroundRemoval

0x00475e50 · 195 bytes · __cdecl

_ZN11CBaseEntity33PhysicsNotifyOtherOfGroundRemovalEPS_S0_

Decompiled

undefined (2 params)

/* CBaseEntity::PhysicsNotifyOtherOfGroundRemoval(CBaseEntity*, CBaseEntity*) */

void CBaseEntity::PhysicsNotifyOtherOfGroundRemoval(CBaseEntity *param_1,CBaseEntity *param_2)

{
  uint uVar1;
  groundlink_t *pgVar2;
  undefined *puVar3;
  groundlink_t *pgVar4;
  
  if ((((param_2 != (CBaseEntity *)0x0) &&
       (pgVar2 = (groundlink_t *)GetDataObject(param_2,0), pgVar2 != (groundlink_t *)0x0)) &&
      (pgVar4 = *(groundlink_t **)(pgVar2 + 4), pgVar2 != pgVar4)) &&
     (pgVar4 != (groundlink_t *)0x0)) {
    while (((uVar1 = *(uint *)pgVar4, uVar1 != 0xffffffff &&
            (puVar3 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar3 != (undefined *)0xfffffffc)) &&
           (*(uint *)(puVar3 + 8) == uVar1 >> 0xc))) {
      if (param_1 == *(CBaseEntity **)(puVar3 + 4)) goto LAB_00475ee0;
LAB_00475ea5:
      pgVar4 = *(groundlink_t **)(pgVar4 + 4);
      if (pgVar2 == pgVar4) {
        return;
      }
      if (pgVar4 == (groundlink_t *)0x0) {
        return;
      }
    }
    if (param_1 != (CBaseEntity *)0x0) goto LAB_00475ea5;
LAB_00475ee0:
    PhysicsRemoveGround(param_2,pgVar4);
    if (((pgVar2 == *(groundlink_t **)(pgVar2 + 4)) && (pgVar2 == *(groundlink_t **)(pgVar2 + 8)))
       && (((byte)param_2[0x3cc] & 1) != 0)) {
      DestroyDataObject(param_1,(int)param_2);
      return;
    }
  }
  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)