CBaseEntity::PhysicsRigidChild
0x00478f50 · 1309 bytes · __thiscall
_ZN11CBaseEntity17PhysicsRigidChildEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseEntity::PhysicsRigidChild() */
void __thiscall CBaseEntity::PhysicsRigidChild(CBaseEntity *this)
{
undefined4 uVar1;
code *pcVar2;
int iVar3;
char cVar4;
uint uVar5;
int iVar6;
CBaseEntity *pCVar7;
CBaseEntity *pCVar8;
undefined4 local_54;
undefined4 local_50;
undefined4 local_4c;
undefined4 local_48;
undefined4 local_40;
undefined4 local_3c;
CBaseEntity *local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
CBaseEntity *local_20;
local_54 = 0;
local_50 = 0;
if (___atan2f_finite == (CBaseEntity *)0x0) {
local_38 = (CBaseEntity *)0x0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_54,0,0,0,0,
"/data/src/game/server/../../game/shared/physics_main_shared.cpp",0x6d3,
&PhysicsRigidChild()::tm_fmt,"(%s)%s","Unaccounted","CBaseEntity::PhysicsRigidChild")
;
local_38 = ___atan2f_finite;
}
iVar3 = _DAT_0105db00;
local_40 = local_54;
local_3c = local_50;
/* try { // try from 00479236 to 00479284 has its CatchHandler @ 004794c4 */
if (((_DAT_0105d154 == 0) && (DAT_0105d158 != '\0')) ||
(iVar6 = ThreadGetCurrentId(), iVar3 != iVar6)) {
uVar5 = *(uint *)(this + 0x14c);
}
else {
if (*(char **)_DAT_0105d15c != "CBaseEntity::PhysicsRigidChild") {
_DAT_0105d15c =
(CBaseEntity *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc17fe0,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
uVar5 = *(uint *)(this + 0x14c);
}
if ((uVar5 & 0x800) != 0) {
/* try { // try from 0047929e to 004792a2 has its CatchHandler @ 004794d8 */
CalcAbsolutePosition(this);
uVar5 = *(uint *)(this + 0x14c);
}
local_34 = *(undefined4 *)(this + 0x2e0);
local_30 = *(undefined4 *)(this + 0x2e4);
local_2c = *(undefined4 *)(this + 0x2e8);
/* try { // try from 004793cc to 004793d0 has its CatchHandler @ 004794d8 */
if (((uVar5 & 0x400000) == 0) && (cVar4 = PhysicsRunThink(), iVar3 = _DAT_0105db00, cVar4 == '\0')
) {
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar6 = ThreadGetCurrentId(), iVar3 == iVar6)) {
cVar4 = CVProfNode::ExitScope();
if (cVar4 != '\0') {
_DAT_0105d15c = *(CBaseEntity **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CBaseEntity *)0x105d160;
}
if (local_38 != (CBaseEntity *)0x0) {
(**(code **)(local_38 + 0x54))(local_38,local_40,local_3c,0,0,0);
return;
}
}
else {
local_4c = 0;
local_48 = 0;
if (___atan2f_finite == (CBaseEntity *)0x0) {
local_20 = (CBaseEntity *)0x0;
}
else {
/* try { // try from 004790b0 to 004790b2 has its CatchHandler @ 004794d8 */
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_4c,0,0,0,0,
"/data/src/game/server/../../game/shared/physics_main_shared.cpp",0x6de,
&PhysicsRigidChild()::tm_fmt,"(%s)%s","Unaccounted",
"CBaseEntity::PhysicsRigidChild-2");
local_20 = ___atan2f_finite;
}
iVar3 = _DAT_0105db00;
local_28 = local_4c;
local_24 = local_48;
/* try { // try from 004792c6 to 00479314 has its CatchHandler @ 00479498 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar6 = ThreadGetCurrentId(), iVar3 == iVar6)) {
if (*(char **)_DAT_0105d15c != "CBaseEntity::PhysicsRigidChild-2") {
_DAT_0105d15c =
(CBaseEntity *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc18040,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
pCVar8 = this;
/* try { // try from 004790ed to 00479187 has its CatchHandler @ 004794c8 */
PhysicsTouchTriggers(this,(Vector *)&local_34);
if (*(int *)(this + 0x238) != 0) {
uVar5 = (**(code **)(*(int *)(this + 0x194) + 0x2c))(this + 0x194);
pCVar8 = *(CBaseEntity **)(this + 0x238);
pcVar2 = *(code **)(*(int *)pCVar8 + 0x118);
uVar1 = *(undefined4 *)(gpGlobals + 0x10);
if ((uVar5 & 0xfffffffd) == 0) {
uVar5 = *(uint *)(this + 0x14c) & 0x800;
pCVar7 = (CBaseEntity *)&vec3_angle;
}
else {
uVar5 = 0;
if ((*(uint *)(this + 0x14c) & 0x800) != 0) {
/* try { // try from 00479483 to 00479487 has its CatchHandler @ 004794c8 */
CalcAbsolutePosition(this);
uVar5 = *(uint *)(this + 0x14c) & 0x800;
}
pCVar7 = this + 0x37c;
}
if (uVar5 != 0) {
CalcAbsolutePosition(this);
}
(*pcVar2)(pCVar8,this + 0x2e0,pCVar7,1,uVar1);
}
iVar3 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar6 = ThreadGetCurrentId(), iVar3 == iVar6)) {
pCVar8 = _DAT_0105d15c;
cVar4 = CVProfNode::ExitScope();
if (cVar4 != '\0') {
_DAT_0105d15c = *(CBaseEntity **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CBaseEntity *)0x105d160;
}
if (local_20 != (CBaseEntity *)0x0) {
pCVar8 = local_20;
(**(code **)(local_20 + 0x54))(local_20,local_28,local_24,0,0,0);
}
iVar3 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar6 = ThreadGetCurrentId(pCVar8), iVar3 == iVar6)) {
cVar4 = CVProfNode::ExitScope();
if (cVar4 != '\0') {
_DAT_0105d15c = *(CBaseEntity **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CBaseEntity *)0x105d160;
}
if (local_38 != (CBaseEntity *)0x0) {
(**(code **)(local_38 + 0x54))(local_38,local_40,local_3c,0,0,0);
}
}
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.