SurvivorEscapeLadderAmbush::OnStart
0x0091d010 · 241 bytes · __thiscall
_ZN26SurvivorEscapeLadderAmbush7OnStartEP11SurvivorBotP6ActionIS0_E
Decompiled
undefined (3 params)
/* SurvivorEscapeLadderAmbush::OnStart(SurvivorBot*, Action<SurvivorBot>*) */
SurvivorEscapeLadderAmbush * __thiscall
SurvivorEscapeLadderAmbush::OnStart
(SurvivorEscapeLadderAmbush *this,SurvivorBot *param_1,Action *param_2)
{
int iVar1;
SurvivorLegsWait *this_00;
int *piVar2;
undefined4 *puVar3;
undefined4 uVar4;
this_00 = ::operator_new(0x44);
/* try { // try from 0091d038 to 0091d03c has its CatchHandler @ 0091d129 */
SurvivorLegsWait::SurvivorLegsWait(this_00,0.0);
piVar2 = (int *)(**(code **)(*(int *)param_2 + 0x9a8))(param_2);
if (piVar2[0x18] < 0xf) {
puVar3 = ::operator_new(0x38);
*puVar3 = &PTR__Behavior_00d00308;
puVar3[1] = &PTR__Behavior_00d003d0;
/* try { // try from 0091d082 to 0091d086 has its CatchHandler @ 0091d107 */
CFmtStrN<32>::CFmtStrN((CFmtStrN<32> *)(puVar3 + 3),"%s");
puVar3[2] = this_00;
iVar1 = piVar2[0x18];
piVar2[0x18] = iVar1 + 1;
piVar2[iVar1 + 9] = (int)puVar3;
}
else {
piVar2 = (int *)(**(code **)(*piVar2 + 0xb0))(piVar2);
uVar4 = (**(code **)(*piVar2 + 0x13c))(piVar2);
DevMsg("%3.2f: %s: PushLegsStack: Overflow\n",(double)*(float *)(gpGlobals + 0xc),uVar4);
if (this_00 != (SurvivorLegsWait *)0x0) {
(**(code **)(*(int *)this_00 + 4))(this_00);
}
}
*(undefined4 *)this = 0;
*(undefined4 *)(this + 4) = 0;
*(undefined4 *)(this + 8) = 0;
return this;
}
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.