Tank::Tank
0x00ae00e0 · 265 bytes · __thiscall
_ZN4TankC2Ev
Decompiled
undefined (1 param)
/* Tank::Tank() */
void __thiscall Tank::Tank(Tank *this)
{
INextBot *pIVar1;
TankIntention *this_00;
TankLocomotion *this_01;
PlayerBody *this_02;
ZombieBotVision *this_03;
BossZombiePlayerBot::BossZombiePlayerBot((BossZombiePlayerBot *)this);
*(undefined ***)this = &PTR__Tank_00d38288;
*(undefined **)(this + 0x2364) = &DAT_00d38c54;
*(undefined ***)(this + 0x4028) = &PTR__Tank_00d38c68;
*(undefined ***)(this + 0x4258) = &PTR_PressFireButton_00d38db8;
*(undefined4 *)(this + 0x4324) = 0;
*(undefined4 *)(this + 0x4328) = 0;
*(undefined4 *)(this + 0x432c) = 0;
*(undefined4 *)(this + 0x4330) = 0;
*(undefined4 *)(this + 0x4334) = 0;
/* try { // try from 00ae0151 to 00ae0155 has its CatchHandler @ 00ae01e9 */
this_00 = ::operator_new(0x20);
pIVar1 = (INextBot *)(this + 0x4028);
/* try { // try from 00ae0165 to 00ae0169 has its CatchHandler @ 00ae0242 */
TankIntention::TankIntention(this_00,pIVar1);
*(TankIntention **)(this + 0x4318) = this_00;
/* try { // try from 00ae0177 to 00ae017b has its CatchHandler @ 00ae01e9 */
this_01 = ::operator_new(0xbc);
/* try { // try from 00ae0185 to 00ae0189 has its CatchHandler @ 00ae0235 */
TankLocomotion::TankLocomotion(this_01,pIVar1);
*(TankLocomotion **)(this + 0x431c) = this_01;
/* try { // try from 00ae0197 to 00ae019b has its CatchHandler @ 00ae01e9 */
this_02 = ::operator_new(0xac);
/* try { // try from 00ae01a5 to 00ae01a9 has its CatchHandler @ 00ae0233 */
PlayerBody::PlayerBody(this_02,pIVar1);
*(PlayerBody **)(this + 0x4314) = this_02;
/* try { // try from 00ae01b7 to 00ae01bb has its CatchHandler @ 00ae01e9 */
this_03 = ::operator_new(0x16c);
/* try { // try from 00ae01c5 to 00ae01c9 has its CatchHandler @ 00ae0227 */
ZombieBotVision::ZombieBotVision(this_03,pIVar1);
*(ZombieBotVision **)(this + 0x4320) = this_03;
*(undefined4 *)(this + 0x4338) = 0;
this[0x433c] = (Tank)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.