CBaseEntity::PhysicsMarkEntitiesAsTouchingEventDriven
0x00476750 · 365 bytes · __thiscall
_ZN11CBaseEntity40PhysicsMarkEntitiesAsTouchingEventDrivenEPS_R10CGameTrace
Decompiled
undefined (3 params)
/* CBaseEntity::PhysicsMarkEntitiesAsTouchingEventDriven(CBaseEntity*, CGameTrace&) */
void __thiscall
CBaseEntity::PhysicsMarkEntitiesAsTouchingEventDriven
(CBaseEntity *this,CBaseEntity *param_1,CGameTrace *param_2)
{
int iVar1;
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._44_4_ = *(undefined4 *)(param_2 + 0x2c);
g_TouchTrace._42_2_ = *(undefined2 *)(param_2 + 0x2a);
g_TouchTrace._48_4_ = *(undefined4 *)(param_2 + 0x30);
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_ = param_1;
g_TouchTrace._80_4_ = *(undefined4 *)(param_2 + 0x50);
iVar1 = PhysicsMarkEntityAsTouched(this,param_1);
if (iVar1 != 0) {
*(undefined4 *)(iVar1 + 4) = 0xffffffff;
}
g_TouchTrace._76_4_ = this;
iVar1 = PhysicsMarkEntityAsTouched(param_1,this);
if (iVar1 != 0) {
*(undefined4 *)(iVar1 + 4) = 0xffffffff;
}
UTIL_ClearTrace((CGameTrace *)g_TouchTrace);
return;
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.