CBaseFlex::ProcessSceneEvents
0x00624570 · 621 bytes · __thiscall
_ZN9CBaseFlex18ProcessSceneEventsEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseFlex::ProcessSceneEvents() */
void __thiscall CBaseFlex::ProcessSceneEvents(CBaseFlex *this)
{
CChoreoScene *this_00;
undefined4 uVar1;
char cVar2;
int iVar3;
int iVar4;
undefined4 *puVar5;
bool bVar6;
longdouble lVar7;
int local_44;
int local_40;
undefined4 local_34;
undefined4 local_30;
undefined4 local_28;
undefined4 local_24;
int local_20;
local_34 = 0;
local_30 = 0;
if (___atan2f_finite == 0) {
local_20 = 0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_34,0,0,0,0,"/data/src/game/server/baseflex.cpp",0x392,
&ProcessSceneEvents()::tm_fmt,"(%s)%s","Unaccounted","CBaseFlex::ProcessSceneEvents")
;
local_20 = ___atan2f_finite;
}
iVar4 = _DAT_0105db00;
local_28 = local_34;
local_24 = local_30;
/* try { // try from 00624786 to 006247d4 has its CatchHandler @ 0062480d */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar3 = ThreadGetCurrentId(), iVar4 == iVar3)) {
if ((char *)*_DAT_0105d15c != "CBaseFlex::ProcessSceneEvents") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc60d90,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
for (iVar4 = 0; iVar3 = CBaseAnimating::GetNumFlexControllers((CBaseAnimating *)this),
iVar4 < iVar3; iVar4 = iVar4 + 1) {
/* try { // try from 00624637 to 006246ce has its CatchHandler @ 006247ec */
lVar7 = (longdouble)GetFlexWeight(this,iVar4);
SetFlexWeight(this,iVar4,(float)lVar7 * 0.95);
}
local_40 = 0;
local_44 = 0;
if (0 < *(int *)(this + 0x1794)) {
do {
puVar5 = (undefined4 *)(local_40 + *(int *)(this + 0x1788));
this_00 = (CChoreoScene *)puVar5[1];
uVar1 = *puVar5;
if (this_00 != (CChoreoScene *)0x0) {
CChoreoScene::IsBackground(this_00);
}
cVar2 = (**(code **)(*(int *)this + 0x3b0))(this,puVar5,this_00,uVar1);
if (cVar2 != '\0') {
*(undefined1 *)(puVar5 + 4) = 1;
}
local_44 = local_44 + 1;
local_40 = local_40 + 0x48;
} while (local_44 < *(int *)(this + 0x1794));
}
bVar6 = DAT_0105d158 == '\0';
this[0x17d0] = (CBaseFlex)0x0;
iVar4 = _DAT_0105db00;
if (((bVar6) || (_DAT_0105d154 != 0)) && (iVar3 = ThreadGetCurrentId(), iVar4 == iVar3)) {
cVar2 = CVProfNode::ExitScope();
if (cVar2 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
if (local_20 != 0) {
(**(code **)(local_20 + 0x54))(local_20,local_28,local_24,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.