Charger::Charger
0x00a7bae0 · 248 bytes · __thiscall
_ZN7ChargerC1Ev
Decompiled
undefined (1 param)
/* Charger::Charger() */
void __thiscall Charger::Charger(Charger *this)
{
INextBot *pIVar1;
ChargerIntention *this_00;
ChargerLocomotion *this_01;
PlayerBody *this_02;
ZombieBotVision *this_03;
BossZombiePlayerBot::BossZombiePlayerBot((BossZombiePlayerBot *)this);
*(undefined ***)this = &PTR__Charger_00d2dfa8;
*(undefined **)(this + 0x2364) = &DAT_00d2e970;
*(undefined ***)(this + 0x4028) = &PTR__Charger_00d2e984;
*(undefined ***)(this + 0x4258) = &PTR_PressFireButton_00d2ead4;
*(undefined4 *)(this + 0x4328) = 0;
*(undefined4 *)(this + 0x432c) = 0;
*(undefined4 *)(this + 0x4330) = 0;
*(undefined4 *)(this + 0x4334) = 0;
*(undefined4 *)(this + 0x4338) = 0;
/* try { // try from 00a7bb51 to 00a7bb55 has its CatchHandler @ 00a7bbd8 */
this_00 = ::operator_new(0x20);
pIVar1 = (INextBot *)(this + 0x4028);
/* try { // try from 00a7bb65 to 00a7bb69 has its CatchHandler @ 00a7bc12 */
ChargerIntention::ChargerIntention(this_00,pIVar1);
*(ChargerIntention **)(this + 0x4318) = this_00;
/* try { // try from 00a7bb77 to 00a7bb7b has its CatchHandler @ 00a7bbd8 */
this_01 = ::operator_new(0xbc);
/* try { // try from 00a7bb85 to 00a7bb89 has its CatchHandler @ 00a7bc06 */
ChargerLocomotion::ChargerLocomotion(this_01,pIVar1);
*(ChargerLocomotion **)(this + 0x431c) = this_01;
/* try { // try from 00a7bb97 to 00a7bb9b has its CatchHandler @ 00a7bbd8 */
this_02 = ::operator_new(0xac);
/* try { // try from 00a7bba5 to 00a7bba9 has its CatchHandler @ 00a7bc04 */
PlayerBody::PlayerBody(this_02,pIVar1);
*(PlayerBody **)(this + 0x4314) = this_02;
/* try { // try from 00a7bbb7 to 00a7bbbb has its CatchHandler @ 00a7bbd8 */
this_03 = ::operator_new(0x16c);
/* try { // try from 00a7bbc5 to 00a7bbc9 has its CatchHandler @ 00a7bbf8 */
ZombieBotVision::ZombieBotVision(this_03,pIVar1);
*(ZombieBotVision **)(this + 0x4320) = this_03;
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.