CPhysicsEntitySolver::Spawn
0x00793530 · 454 bytes · __thiscall
_ZN20CPhysicsEntitySolver5SpawnEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CPhysicsEntitySolver::Spawn() */
void __thiscall CPhysicsEntitySolver::Spawn(CPhysicsEntitySolver *this)
{
uint uVar1;
undefined *puVar2;
CBaseEntity *pCVar3;
int iVar4;
CBaseEntity *pCVar5;
pCVar3 = (CBaseEntity *)0x0;
CBaseEntity::SetNextThink
((CBaseEntity *)this,*(float *)(this + 0x448) + *(float *)(gpGlobals + 0xc),(char *)0x0)
;
uVar1 = *(uint *)(this + 0x444);
if (((uVar1 != 0xffffffff) &&
(puVar2 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar2 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar2 + 8) == uVar1 >> 0xc)) {
pCVar3 = *(CBaseEntity **)(puVar2 + 4);
}
uVar1 = *(uint *)(this + 0x440);
pCVar5 = (CBaseEntity *)0x0;
if (((uVar1 != 0xffffffff) &&
(puVar2 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar2 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar2 + 8) == uVar1 >> 0xc)) {
pCVar5 = *(CBaseEntity **)(puVar2 + 4);
}
PhysDisableEntityCollisions(pCVar5,pCVar3);
uVar1 = *(uint *)(this + 0x444);
if ((uVar1 == 0xffffffff) ||
(puVar2 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar2 == (undefined *)0xfffffffc)) {
*(undefined4 *)(this + 0x450) = _DAT_00000234;
pCVar3 = (CBaseEntity *)0x0;
}
else {
iVar4 = 0;
if (*(uint *)(puVar2 + 8) == uVar1 >> 0xc) {
iVar4 = *(int *)(puVar2 + 4);
}
*(undefined4 *)(this + 0x450) = *(undefined4 *)(iVar4 + 0x234);
if (uVar1 >> 0xc == *(uint *)(puVar2 + 8)) {
pCVar3 = *(CBaseEntity **)(puVar2 + 4);
}
else {
pCVar3 = (CBaseEntity *)0x0;
}
}
CBaseEntity::SetCollisionGroup(pCVar3,1);
uVar1 = *(uint *)(this + 0x444);
if ((uVar1 == 0xffffffff) ||
(puVar2 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar2 == (undefined *)0xfffffffc)) {
iVar4 = 0;
if (_DAT_00000238 == 0) {
return;
}
}
else {
if (*(uint *)(puVar2 + 8) == uVar1 >> 0xc) {
iVar4 = *(int *)(puVar2 + 4);
}
else {
iVar4 = 0;
}
if (*(int *)(iVar4 + 0x238) == 0) {
return;
}
if (*(uint *)(puVar2 + 8) == uVar1 >> 0xc) {
iVar4 = *(int *)(puVar2 + 4);
}
else {
iVar4 = 0;
}
}
/* WARNING: Could not recover jumptable at 0x0079369b. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(**(int **)(iVar4 + 0x238) + 0x70))();
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.