SurvivorCheckpointLeaving::OnStart
0x0090ac00 · 417 bytes · __thiscall
_ZN25SurvivorCheckpointLeaving7OnStartEP11SurvivorBotP6ActionIS0_E
Decompiled
undefined (3 params)
/* SurvivorCheckpointLeaving::OnStart(SurvivorBot*, Action<SurvivorBot>*) */
void __thiscall
SurvivorCheckpointLeaving::OnStart
(SurvivorCheckpointLeaving *this,SurvivorBot *param_1,Action *param_2)
{
float fVar1;
int iVar2;
int *piVar3;
undefined4 *puVar4;
undefined4 uVar5;
longdouble lVar6;
param_1[0x32] = (SurvivorBot)0x0;
lVar6 = (longdouble)RandomFloat(0x40000000,0x40800000);
fVar1 = (float)lVar6;
lVar6 = (longdouble)CountdownTimer::Now();
if ((float)lVar6 + fVar1 != *(float *)(param_1 + 0x48)) {
(**(code **)(*(int *)(param_1 + 0x40) + 4))(param_1 + 0x40,param_1 + 0x48);
*(float *)(param_1 + 0x48) = (float)lVar6 + fVar1;
}
if (fVar1 != *(float *)(param_1 + 0x44)) {
(**(code **)(*(int *)(param_1 + 0x40) + 4))(param_1 + 0x40,param_1 + 0x44);
*(float *)(param_1 + 0x44) = fVar1;
}
piVar3 = (int *)(**(code **)(*(int *)param_2 + 0x9a8))(param_2);
if (piVar3[0x18] < 0xf) {
puVar4 = ::operator_new(0x38);
*puVar4 = &PTR__Behavior_00d00308;
puVar4[1] = &PTR__Behavior_00d003d0;
/* try { // try from 0090acb9 to 0090acbd has its CatchHandler @ 0090ada4 */
CFmtStrN<32>::CFmtStrN((CFmtStrN<32> *)(puVar4 + 3),"%s");
puVar4[2] = 0;
iVar2 = piVar3[0x18];
piVar3[0x18] = iVar2 + 1;
piVar3[iVar2 + 9] = (int)puVar4;
}
else {
piVar3 = (int *)(**(code **)(*piVar3 + 0xb0))(piVar3);
uVar5 = (**(code **)(*piVar3 + 0x13c))(piVar3);
DevMsg("%3.2f: %s: PushLegsStack: Overflow\n",(double)*(float *)(gpGlobals + 0xc),uVar5);
}
*(undefined4 *)(param_1 + 0x4c) = 0;
if (*(float *)(param_1 + 0x3c) != -1.0) {
(**(code **)(*(int *)(param_1 + 0x34) + 4))(param_1 + 0x34,param_1 + 0x3c);
*(undefined4 *)(param_1 + 0x3c) = 0xbf800000;
}
*(undefined4 *)(param_1 + 0x50) = 0;
*(undefined4 *)(param_1 + 0x54) = 0;
*(undefined4 *)(param_1 + 0x58) = 0;
*(undefined4 *)this = 0;
*(undefined4 *)(this + 4) = 0;
*(undefined4 *)(this + 8) = 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.