CMolotov::TranslateViewmodelActivity
0x0054c000 · 443 bytes · __thiscall
_ZNK8CMolotov26TranslateViewmodelActivityE8Activity
Decompiled
undefined (2 params)
/* CMolotov::TranslateViewmodelActivity(Activity) const */
undefined4 __thiscall CMolotov::TranslateViewmodelActivity(undefined4 this,int param_2)
{
undefined4 uVar1;
if (param_2 == 0x388) {
return 0x389;
}
if (param_2 < 0x389) {
if (param_2 == 0x334) {
return 0x38a;
}
if (param_2 < 0x335) {
if (param_2 == 0xb7) {
return 0x595;
}
if (param_2 < 0xb8) {
if (param_2 == 0xb3) {
return 0x596;
}
}
else {
if (param_2 == 0xbc) {
return 0x59a;
}
if (param_2 == 0xbe) {
return 0x598;
}
}
}
else {
if (param_2 == 0x33a) {
return 0x390;
}
if (param_2 < 0x33b) {
if (param_2 == 0x336) {
return 0x388;
}
if (param_2 == 0x338) {
return 0x38c;
}
}
else {
if (param_2 == 0x33c) {
return 0x38e;
}
if (param_2 == 0x33e) {
return 0x392;
}
}
}
}
else {
if (param_2 == 0x392) {
return 0x393;
}
if (param_2 < 0x393) {
if (param_2 == 0x38c) {
return 0x38d;
}
if (param_2 < 0x38d) {
if (param_2 == 0x38a) {
return 0x38b;
}
}
else {
if (param_2 == 0x38e) {
return 0x38f;
}
if (param_2 == 0x390) {
return 0x391;
}
}
}
else {
if (param_2 == 0x598) {
return 0x599;
}
if (param_2 < 0x599) {
if (param_2 == 0x4e2) {
return 0x59c;
}
if (param_2 == 0x596) {
return 0x597;
}
}
else {
if (param_2 == 0x59a) {
return 0x59b;
}
if (param_2 == 0x59c) {
return 0x59d;
}
}
}
}
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.