L L4D2node

CSniper_AWP::TranslateViewmodelActivity

0x0055a620 · 63 bytes · __thiscall

_ZNK11CSniper_AWP26TranslateViewmodelActivityE8Activity

Decompiled

undefined (2 params)

/* CSniper_AWP::TranslateViewmodelActivity(Activity) const */

undefined4 __thiscall CSniper_AWP::TranslateViewmodelActivity(undefined4 this,int param_2)

{
  undefined4 uVar1;
  
  if (param_2 == 0xbf) {
    return 0x4e4;
  }
  if (param_2 != 0xc1) {
    if (param_2 != 0xb3) {
      uVar1 = CTerrorWeapon::TranslateViewmodelActivity();
      return uVar1;
    }
    return 0x4fc;
  }
  return 0x4f0;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)