CAI_BaseActor::IsServerSideFlexController
0x005b30c0 · 484 bytes · __cdecl
_ZN13CAI_BaseActor26IsServerSideFlexControllerEPKc
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CAI_BaseActor::IsServerSideFlexController(char const*) */
undefined4 CAI_BaseActor::IsServerSideFlexController(char *param_1)
{
undefined4 uVar1;
undefined4 uVar2;
char cVar3;
int iVar4;
int iVar5;
int iVar6;
undefined4 uVar7;
int iVar8;
undefined4 local_24;
undefined4 local_20;
local_24 = 0;
local_20 = 0;
if (___atan2f_finite == 0) {
iVar8 = 0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_24,0,0,0,0,"/data/src/game/server/ai_l4d_basenpc_globals.cpp"
,0xe5,&IsServerSideFlexController(char_const*)::tm_fmt,"(%s)%s","Unaccounted",
"CAI_BaseActor::IsServerSideFlexController");
iVar8 = ___atan2f_finite;
}
uVar2 = local_20;
uVar1 = local_24;
iVar6 = _DAT_0105db00;
if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
/* try { // try from 005b3236 to 005b3284 has its CatchHandler @ 005b32ba */
iVar5 = ThreadGetCurrentId();
if (iVar6 == iVar5) {
if ((char *)*_DAT_0105d15c != "CAI_BaseActor::IsServerSideFlexController") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc57698,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
}
iVar6 = 0;
do {
/* try { // try from 005b3186 to 005b318a has its CatchHandler @ 005b32f4 */
iVar4 = _V_stricmp(param_1,(&g_ServerSideFlexControllers)[iVar6]);
iVar5 = _DAT_0105db00;
if (iVar4 == 0) {
uVar7 = 1;
goto LAB_005b319d;
}
iVar6 = iVar6 + 1;
} while (iVar6 != 8);
uVar7 = 0;
LAB_005b319d:
if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
iVar6 = ThreadGetCurrentId();
if (iVar5 == iVar6) {
cVar3 = CVProfNode::ExitScope();
if (cVar3 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
}
if (iVar8 != 0) {
(**(code **)(iVar8 + 0x54))(iVar8,uVar1,uVar2,0,0,0);
}
return uVar7;
}
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.