CItemAmmoPack::TranslateViewmodelActivity
0x0053fec0 · 343 bytes · __thiscall
_ZNK13CItemAmmoPack26TranslateViewmodelActivityE8Activity
Decompiled
undefined (2 params)
/* CItemAmmoPack::TranslateViewmodelActivity(Activity) const */
undefined4 __thiscall CItemAmmoPack::TranslateViewmodelActivity(undefined4 this,int param_2)
{
undefined4 uVar1;
if (param_2 == 0x394) {
return 0x395;
}
if (param_2 < 0x395) {
if (param_2 == 0x336) {
return 0x394;
}
if (param_2 < 0x337) {
if (param_2 == 0xb7) {
return 0x5a5;
}
if (param_2 == 0x334) {
return 0x396;
}
if (param_2 == 0xb3) {
return 0x5a6;
}
}
else {
if (param_2 == 0x33a) {
return 0x39c;
}
if (param_2 < 0x33b) {
if (param_2 == 0x338) {
return 0x398;
}
}
else {
if (param_2 == 0x33c) {
return 0x39a;
}
if (param_2 == 0x33e) {
return 0x39e;
}
}
}
}
else {
if (param_2 == 0x39c) {
return 0x39d;
}
if (param_2 < 0x39d) {
if (param_2 == 0x398) {
return 0x399;
}
if (param_2 == 0x39a) {
return 0x39b;
}
if (param_2 == 0x396) {
return 0x397;
}
}
else {
if (param_2 == 0x4e2) {
return 0x5a8;
}
if (param_2 < 0x4e3) {
if (param_2 == 0x39e) {
return 0x39f;
}
}
else {
if (param_2 == 0x5a6) {
return 0x5a7;
}
if (param_2 == 0x5a8) {
return 0x5a9;
}
}
}
}
uVar1 = CTerrorWeapon::TranslateViewmodelActivity();
return uVar1;
}
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.