SurvivorLegsMeetRescueVehicleArrival::OnStart
0x00954bb0 · 279 bytes · __thiscall
_ZN36SurvivorLegsMeetRescueVehicleArrival7OnStartEP11SurvivorBotP6ActionIS0_E
Decompiled
undefined (3 params)
/* SurvivorLegsMeetRescueVehicleArrival::OnStart(SurvivorBot*, Action<SurvivorBot>*) */
SurvivorLegsMeetRescueVehicleArrival * __thiscall
SurvivorLegsMeetRescueVehicleArrival::OnStart
(SurvivorLegsMeetRescueVehicleArrival *this,SurvivorBot *param_1,Action *param_2)
{
CNavArea *pCVar1;
code *pcVar2;
int iVar3;
undefined4 local_28;
CAI_Concept local_24 [20];
PathFollower::Invalidate((PathFollower *)(param_1 + 0x34));
iVar3 = TheNavMesh;
*(undefined4 *)(param_1 + 0x4814) = 0;
pCVar1 = *(CNavArea **)(iVar3 + 0x604);
if (pCVar1 != (CNavArea *)0x0) {
local_28 = 0;
SearchSurroundingAreas<FindRescueVehicleLoadingArea>
(pCVar1,(Vector *)(pCVar1 + 0x2c),(FindRescueVehicleLoadingArea *)&local_28,2000.0,2,
-1);
*(undefined4 *)(param_1 + 0x4814) = local_28;
pcVar2 = *(code **)(*(int *)param_2 + 0x7b4);
CAI_Concept::CAI_Concept(local_24,"SurvivorBotMovingToRescueVehicle");
(*pcVar2)(param_2,local_24,1,0,0,0,0);
if (*(int *)(param_1 + 0x4814) != 0) {
*(undefined4 *)this = 0;
*(undefined4 *)(this + 4) = 0;
*(undefined4 *)(this + 8) = 0;
return this;
}
}
*(undefined4 *)this = 3;
*(undefined4 *)(this + 4) = 0;
*(char **)(this + 8) = "No loading area for rescue vehicle found!";
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.