ServerClassInit<DT_BaseCombatWeapon::ignored>
0x0040add0 · 908 bytes · __cdecl
_Z15ServerClassInitIN19DT_BaseCombatWeapon7ignoredEEiPT_
Decompiled
int (1 param)
/* int ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*) */
int ServerClassInit<DT_BaseCombatWeapon::ignored>(ignored *param_1)
{
int iVar1;
undefined4 uVar2;
undefined4 uVar3;
code *pcVar4;
if (ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::g_SendProps ==
'\0') {
iVar1 = __cxa_guard_acquire(&ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)
::g_SendProps);
if (iVar1 != 0) {
/* try { // try from 0040ae5f to 0040ae63 has its CatchHandler @ 0040b15e */
SendPropInt(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps,0xbfae4c,0,4,-1,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
/* try { // try from 0040ae97 to 0040ae9b has its CatchHandler @ 0040b18d */
SendPropDataTable(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)
::g_SendProps + 0x54,0xc087aa,(SendTable *)0x0,
(_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
*)CBaseAnimating::m_pClassSendTable,'P');
/* try { // try from 0040aeb6 to 0040aeba has its CatchHandler @ 0040b1ab */
SendPropExclude(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0xa8,"DT_BaseAnimating");
/* try { // try from 0040aed5 to 0040aed9 has its CatchHandler @ 0040b1b2 */
SendPropExclude(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0xfc,"DT_BaseAnimatingOverlay");
/* try { // try from 0040aef4 to 0040aef8 has its CatchHandler @ 0040b1b9 */
SendPropExclude(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x150,"DT_BaseFlex");
/* try { // try from 0040af13 to 0040af17 has its CatchHandler @ 0040b1c0 */
SendPropExclude(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x1a4,"DT_BaseFlex");
/* try { // try from 0040af32 to 0040af36 has its CatchHandler @ 0040b1c7 */
SendPropExclude(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x1f8,"DT_ServerAnimationData");
/* try { // try from 0040af51 to 0040af55 has its CatchHandler @ 0040b1ce */
SendPropExclude(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x24c,"DT_AnimTimeMustBeFirst");
/* try { // try from 0040af88 to 0040af8c has its CatchHandler @ 0040b1d5 */
SendPropDataTable(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)
::g_SendProps + 0x2a0,0xc0879a,(SendTable *)0x0,
(_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
*)DT_LocalWeaponData::g_SendTable,0xc0);
/* try { // try from 0040afbf to 0040afc3 has its CatchHandler @ 0040b1dc */
SendPropDataTable(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)
::g_SendProps + 0x2f4,0xc0873e,(SendTable *)0x0,
(_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
*)DT_LocalActiveWeaponData::g_SendTable,'@');
/* try { // try from 0040b006 to 0040b00a has its CatchHandler @ 0040b1e3 */
SendPropInt(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x348,0xc08868,0x140c,4,0xc,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
/* try { // try from 0040b04d to 0040b051 has its CatchHandler @ 0040b1ed */
SendPropInt(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x39c,0xc0887a,0x1410,4,0xc,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
/* try { // try from 0040b094 to 0040b098 has its CatchHandler @ 0040b1f7 */
SendPropInt(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x3f0,0xc0888d,0x1414,4,2,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x1,'\0');
/* try { // try from 0040b0cb to 0040b0cf has its CatchHandler @ 0040b201 */
SendPropEHandle(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x444,0xc08896,0x13f4,4,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)
&DAT_ffffffff);
/* try { // try from 0040b0f2 to 0040b0f6 has its CatchHandler @ 0040b20b */
SendPropBool(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x498,0xc0889f,0x1459);
pcVar4 = SendProxy_IntAddOne;
uVar3 = 8;
uVar2 = 4;
/* try { // try from 0040b129 to 0040b12d has its CatchHandler @ 0040b215 */
SendPropIntWithMinusOneFlag
(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x4ec,0xc088ab,0x1420,4,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x8);
__cxa_guard_release(&ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)
::g_SendProps);
__cxa_atexit(__tcf_2,0,&__dso_handle,uVar2,uVar3,pcVar4);
}
}
SendTable::Construct
((SendTable *)DT_BaseCombatWeapon::g_SendTable,
(SendProp *)
(ServerClassInit<DT_BaseCombatWeapon::ignored>(DT_BaseCombatWeapon::ignored*)::
g_SendProps + 0x54),0xf,"DT_BaseCombatWeapon");
return 1;
}
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.