CBaseEntity::PhysicsTestEntityPosition
0x0078e950 · 547 bytes · __thiscall
_ZN11CBaseEntity25PhysicsTestEntityPositionEPPS_
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseEntity::PhysicsTestEntityPosition(CBaseEntity**) */
char __thiscall CBaseEntity::PhysicsTestEntityPosition(CBaseEntity *this,CBaseEntity **param_1)
{
int iVar1;
char cVar2;
uint uVar3;
int iVar4;
undefined4 local_84;
undefined4 local_80;
undefined4 local_7c;
undefined4 local_78;
int local_74;
CGameTrace local_70 [55];
char local_39;
CBaseEntity *local_24;
local_84 = 0;
local_80 = 0;
if (___atan2f_finite == 0) {
local_74 = 0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_84,0,0,0,0,"/data/src/game/server/physics_main.cpp",0x551,
&PhysicsTestEntityPosition(CBaseEntity**)::tm_fmt,"(%s)%s","Unaccounted",
"CBaseEntity::PhysicsTestEntityPosition");
local_74 = ___atan2f_finite;
}
iVar1 = _DAT_0105db00;
local_7c = local_84;
local_78 = local_80;
if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
/* try { // try from 0078eaf6 to 0078eb44 has its CatchHandler @ 0078eb8a */
iVar4 = ThreadGetCurrentId();
if (iVar1 == iVar4) {
if ((char *)*_DAT_0105d15c != "CBaseEntity::PhysicsTestEntityPosition") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcb2348,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
}
/* try { // try from 0078ea0c to 0078ea3b has its CatchHandler @ 0078eb9f */
uVar3 = (**(code **)(*(int *)this + 0x2c8))(this);
if (((byte)this[0x14d] & 8) != 0) {
/* try { // try from 0078eb6b to 0078eb84 has its CatchHandler @ 0078eb9f */
CalcAbsolutePosition(this);
if (((byte)this[0x14d] & 8) != 0) {
CalcAbsolutePosition(this);
}
}
Physics_TraceEntity(this,(Vector *)(this + 0x2e0),(Vector *)(this + 0x2e0),uVar3,local_70);
if ((local_39 != '\0') && (param_1 != (CBaseEntity **)0x0)) {
*param_1 = local_24;
}
iVar1 = _DAT_0105db00;
if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
iVar4 = ThreadGetCurrentId();
if (iVar1 == iVar4) {
cVar2 = CVProfNode::ExitScope();
if (cVar2 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
}
if (local_74 != 0) {
(**(code **)(local_74 + 0x54))(local_74,local_7c,local_78,0,0,0);
}
return local_39;
}
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.