CBaseEntity::PhysicsNoclip
0x0078eda0 · 724 bytes · __thiscall
_ZN11CBaseEntity13PhysicsNoclipEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseEntity::PhysicsNoclip() */
void __thiscall CBaseEntity::PhysicsNoclip(CBaseEntity *this)
{
float fVar1;
int iVar2;
char cVar3;
int iVar4;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
int local_1c;
float local_18;
float local_14;
float local_10;
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == 0) {
local_1c = 0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/physics_main.cpp",0x630,
&PhysicsNoclip()::tm_fmt,"(%s)%s","Unaccounted","CBaseEntity::PhysicsNoclip");
local_1c = ___atan2f_finite;
}
iVar2 = _DAT_0105db00;
local_24 = local_2c;
local_20 = local_28;
if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
/* try { // try from 0078ef46 to 0078ef94 has its CatchHandler @ 0078f0b4 */
iVar4 = ThreadGetCurrentId();
if (iVar2 == iVar4) {
if ((char *)*_DAT_0105d15c != "CBaseEntity::PhysicsNoclip") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcb1fef,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
}
/* try { // try from 0078ee5e to 0078eee2 has its CatchHandler @ 0078f093 */
cVar3 = PhysicsRunThink(this,0);
iVar2 = _DAT_0105db00;
if (cVar3 == '\0') {
if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
iVar4 = ThreadGetCurrentId();
if (iVar2 == iVar4) {
cVar3 = CVProfNode::ExitScope();
if (cVar3 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
}
if (local_1c != 0) {
(**(code **)(local_1c + 0x54))(local_1c,local_24,local_20,0,0,0);
return;
}
}
else {
SimulateAngles(this,*(float *)(gpGlobals + 0x10));
fVar1 = *(float *)(gpGlobals + 0x10);
local_18 = *(float *)(this + 0x2ec) * fVar1 + *(float *)(this + 0x39c);
local_14 = *(float *)(this + 0x2f0) * fVar1 + *(float *)(this + 0x3a0);
local_10 = fVar1 * *(float *)(this + 0x2f4) + *(float *)(this + 0x3a4);
SetLocalOrigin(this,(Vector *)&local_18);
iVar2 = _DAT_0105db00;
if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
iVar4 = ThreadGetCurrentId();
if (iVar2 == iVar4) {
cVar3 = CVProfNode::ExitScope();
if (cVar3 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
}
if (local_1c != 0) {
(**(code **)(local_1c + 0x54))(local_1c,local_24,local_20,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.