CLogicDirectorQuery::QueryThink
0x00871350 · 322 bytes · __thiscall
_ZN19CLogicDirectorQuery10QueryThinkEv
Decompiled
undefined (1 param)
/* CLogicDirectorQuery::QueryThink() */
void __thiscall CLogicDirectorQuery::QueryThink(CLogicDirectorQuery *this)
{
CLogicDirectorQuery CVar1;
longdouble lVar2;
float fVar3;
fVar3 = *(float *)(TheDirector + 0x29c);
if (fVar3 <= 0.0) {
if (this[0x494] != (CLogicDirectorQuery)0x0) {
fVar3 = 1e+07;
LAB_00871470:
this[0x494] = (CLogicDirectorQuery)0x0;
goto LAB_008713ac;
}
if (this[0x495] == (CLogicDirectorQuery)0x0) goto LAB_008713c5;
}
else {
lVar2 = (longdouble)CountdownTimer::Now();
fVar3 = fVar3 - (float)lVar2;
if (this[0x494] == (CLogicDirectorQuery)0x0) {
if (20.0 < fVar3) goto LAB_008713ac;
COutputEvent::FireOutput
((COutputEvent *)(this + 0x458),(CBaseEntity *)this,(CBaseEntity *)this,0.0);
CVar1 = this[0x495];
this[0x494] = (CLogicDirectorQuery)0x1;
}
else {
if (20.0 < fVar3) goto LAB_00871470;
LAB_008713ac:
CVar1 = this[0x495];
}
if (CVar1 == (CLogicDirectorQuery)0x0) {
if (fVar3 <= 60.0) {
COutputEvent::FireOutput
((COutputEvent *)(this + 0x470),(CBaseEntity *)this,(CBaseEntity *)this,0.0);
this[0x495] = (CLogicDirectorQuery)0x1;
}
goto LAB_008713c5;
}
if (fVar3 <= 60.0) goto LAB_008713c5;
}
this[0x495] = (CLogicDirectorQuery)0x0;
LAB_008713c5:
CBaseEntity::SetNextThink((CBaseEntity *)this,0.2,(char *)0x0);
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.