L L4D2node

CBaseEntity::PhysicsMarkEntitiesAsTouching

0x004765b0 · 397 bytes · __thiscall

_ZN11CBaseEntity29PhysicsMarkEntitiesAsTouchingEPS_R10CGameTrace

Decompiled

undefined (3 params)

/* CBaseEntity::PhysicsMarkEntitiesAsTouching(CBaseEntity*, CGameTrace&) */

void __thiscall
CBaseEntity::PhysicsMarkEntitiesAsTouching
          (CBaseEntity *this,CBaseEntity *param_1,CGameTrace *param_2)

{
  int iVar1;
  int iVar2;
  
  g_TouchTrace._0_4_ = *(undefined4 *)param_2;
  g_TouchTrace[0x28] = param_2[0x28];
  g_TouchTrace._4_4_ = *(undefined4 *)(param_2 + 4);
  g_TouchTrace._8_4_ = *(undefined4 *)(param_2 + 8);
  g_TouchTrace._12_4_ = *(undefined4 *)(param_2 + 0xc);
  g_TouchTrace._16_4_ = *(undefined4 *)(param_2 + 0x10);
  g_TouchTrace._20_4_ = *(undefined4 *)(param_2 + 0x14);
  g_TouchTrace._24_4_ = *(undefined4 *)(param_2 + 0x18);
  g_TouchTrace._28_4_ = *(undefined4 *)(param_2 + 0x1c);
  g_TouchTrace._32_4_ = *(undefined4 *)(param_2 + 0x20);
  g_TouchTrace._36_4_ = *(undefined4 *)(param_2 + 0x24);
  g_TouchTrace[0x29] = param_2[0x29];
  g_TouchTrace._42_2_ = *(undefined2 *)(param_2 + 0x2a);
  g_TouchTrace._48_4_ = *(undefined4 *)(param_2 + 0x30);
  g_TouchTrace._44_4_ = *(undefined4 *)(param_2 + 0x2c);
  g_TouchTrace._64_4_ = *(undefined4 *)(param_2 + 0x40);
  g_TouchTrace._56_4_ = *(undefined4 *)(param_2 + 0x38);
  g_TouchTrace._52_2_ = *(undefined2 *)(param_2 + 0x34);
  g_TouchTrace[0x36] = param_2[0x36];
  g_TouchTrace[0x37] = param_2[0x37];
  g_TouchTrace._60_4_ = *(undefined4 *)(param_2 + 0x3c);
  g_TouchTrace._68_4_ = *(undefined4 *)(param_2 + 0x44);
  g_TouchTrace._72_2_ = *(undefined2 *)(param_2 + 0x48);
  g_TouchTrace._74_2_ = *(undefined2 *)(param_2 + 0x4a);
  g_TouchTrace._76_4_ = *(undefined4 *)(param_2 + 0x4c);
  g_TouchTrace._80_4_ = *(undefined4 *)(param_2 + 0x50);
  iVar1 = PhysicsMarkEntityAsTouched(this,param_1);
  iVar2 = PhysicsMarkEntityAsTouched(param_1,this);
  if ((iVar2 == 0) && (iVar1 != 0)) {
    PhysicsNotifyOtherOfUntouch(param_1,this);
  }
  if ((iVar1 == 0) && (iVar2 != 0)) {
    PhysicsNotifyOtherOfUntouch(this,param_1);
  }
  UTIL_ClearTrace((CGameTrace *)g_TouchTrace);
  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)