CTerrorWeapon::CTerrorWeapon
0x0056d370 · 501 bytes · __thiscall
_ZN13CTerrorWeaponC2Ev
Decompiled
undefined (1 param)
/* CTerrorWeapon::CTerrorWeapon() */
void __thiscall CTerrorWeapon::CTerrorWeapon(CTerrorWeapon *this)
{
CBaseEdict *pCVar1;
CTerrorWeapon *pCVar2;
int iVar3;
CWeaponCSBase::CWeaponCSBase((CWeaponCSBase *)this);
*(undefined ***)this = &PTR__CTerrorWeapon_00c52908;
pCVar2 = this + 0x1588;
*(undefined **)(this + 0x1510) = &DAT_00c53010;
*(undefined4 *)(this + 0x1518) = 0xbf800000;
*(undefined ***)(this + 0x1514) = &PTR_NetworkStateChanged_00c528a0;
*(undefined4 *)(this + 0x1520) = 0xffffffff;
*(undefined4 *)(this + 0x1540) = 0;
*(undefined4 *)(this + 0x1544) = 0xbf800000;
*(undefined ***)(this + 0x153c) = &PTR_NetworkStateChanged_00c528b0;
*(undefined4 *)(this + 0x154c) = 0xbf800000;
*(undefined ***)(this + 0x1548) = &PTR_NetworkStateChanged_00c528c0;
*(undefined4 *)(this + 0x1558) = 0;
*(undefined4 *)(this + 0x155c) = 0xbf800000;
*(undefined ***)(this + 0x1554) = &PTR_NetworkStateChanged_00c528d0;
*(undefined4 *)(this + 0x1564) = 0;
*(undefined4 *)(this + 0x1568) = 0xbf800000;
*(undefined ***)(this + 0x1560) = &PTR_NetworkStateChanged_00c528e0;
*(undefined4 *)(this + 0x1584) = 0xffffffff;
do {
*(undefined4 *)pCVar2 = 0xffffffff;
pCVar2 = pCVar2 + 4;
} while (pCVar2 != this + 0x1788);
*(undefined4 *)(this + 0x1794) = 0xffffffff;
*(undefined4 *)(this + 0x1798) = 0xffffffff;
*(undefined4 *)(this + 0x179c) = 0xffffffff;
*(undefined ***)(this + 0x17a0) = &PTR_NetworkStateChanged_00c0b6e0;
*(undefined4 *)(this + 0x17a4) = 0;
*(undefined4 *)(this + 0x17a8) = 0xbf800000;
*(undefined ***)(this + 0x17ac) = &PTR_NetworkStateChanged_00c0b6e0;
*(undefined4 *)(this + 0x17b0) = 0;
*(undefined4 *)(this + 0x17b4) = 0xbf800000;
*(undefined ***)(this + 0x17bc) = &PTR_NetworkStateChanged_00c0b6e0;
*(undefined4 *)(this + 0x17c0) = 0;
*(undefined4 *)(this + 0x17c4) = 0xbf800000;
*(undefined ***)(this + 0x17d0) = &PTR_NetworkStateChanged_00c0b6e0;
*(undefined4 *)(this + 0x17d4) = 0;
*(undefined4 *)(this + 0x17d8) = 0xbf800000;
if (*(float *)(this + 0x152c) != 0.0) {
if (this[0x6c] == (CTerrorWeapon)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorWeapon)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x152c) = 0;
}
if (*(int *)(this + 0x17b8) == 0) {
return;
}
if (this[0x6c] == (CTerrorWeapon)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
/* try { // try from 0056d506 to 0056d53c has its CatchHandler @ 0056d565 */
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
*(undefined4 *)(this + 0x17b8) = 0;
}
else {
this[0x70] = (CTerrorWeapon)((byte)this[0x70] | 1);
*(undefined4 *)(this + 0x17b8) = 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.