CPipeBomb::TranslateViewmodelActivity
0x00552fa0 · 443 bytes · __thiscall
_ZNK9CPipeBomb26TranslateViewmodelActivityE8Activity
Decompiled
undefined (2 params)
/* CPipeBomb::TranslateViewmodelActivity(Activity) const */
undefined4 __thiscall CPipeBomb::TranslateViewmodelActivity(undefined4 this,int param_2)
{
undefined4 uVar1;
if (param_2 == 0x37c) {
return 0x37d;
}
if (param_2 < 0x37d) {
if (param_2 == 0x334) {
return 0x37e;
}
if (param_2 < 0x335) {
if (param_2 == 0xb7) {
return 0x58c;
}
if (param_2 < 0xb8) {
if (param_2 == 0xb3) {
return 0x58d;
}
}
else {
if (param_2 == 0xbc) {
return 0x591;
}
if (param_2 == 0xbe) {
return 0x58f;
}
}
}
else {
if (param_2 == 0x33a) {
return 900;
}
if (param_2 < 0x33b) {
if (param_2 == 0x336) {
return 0x37c;
}
if (param_2 == 0x338) {
return 0x380;
}
}
else {
if (param_2 == 0x33c) {
return 0x382;
}
if (param_2 == 0x33e) {
return 0x386;
}
}
}
}
else {
if (param_2 == 0x386) {
return 0x387;
}
if (param_2 < 0x387) {
if (param_2 == 0x380) {
return 0x381;
}
if (param_2 < 0x381) {
if (param_2 == 0x37e) {
return 0x37f;
}
}
else {
if (param_2 == 0x382) {
return 899;
}
if (param_2 == 900) {
return 0x385;
}
}
}
else {
if (param_2 == 0x58f) {
return 0x590;
}
if (param_2 < 0x590) {
if (param_2 == 0x4e2) {
return 0x593;
}
if (param_2 == 0x58d) {
return 0x58e;
}
}
else {
if (param_2 == 0x591) {
return 0x592;
}
if (param_2 == 0x593) {
return 0x594;
}
}
}
}
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.