Most people with skinchangers get called out for being blatant cheaters because they inspect-spam their default weapons. This code snippet prevents your inspect from showing up in-game and on demos, but still give you the inspect locally.
The signature is for Linux (since I'm on Linux) but you could probably find the Windows-equivalent signature and offsets to make this work.
Enjoy inspecting your weapons and not being called out for inspect whoring the default CT/T knife ever again.
The signature is for Linux (since I'm on Linux) but you could probably find the Windows-equivalent signature and offsets to make this work.
Block Inspect:
// 55 48 89 E5 41 54 53 48 8B 07 48 89 FB FF 90 ? ? ? ? 41 89 C4 84 C0 74 ? 66 81 BB ? ? ? ? E8 03 @ libclient.so
using InspectFn = uint64_t(*)(uintptr_t weapon);
constexpr uint64_t IN_LOOKATWEAPON = 0x800000000;
// CreateMove (after original)
bool held = cmd->buttons & IN_LOOKATWEAPON;
StripButton(cmd, IN_LOOKATWEAPON);
if (HideInspect && held && !wasHeld)
Inspect(activeWeapon);
wasHeld = held;
// FrameStageNotify (after original), m_iWeaponGameplayAnimState == 1000 while inspecting
if (inspecting && weapon->m_iWeaponGameplayAnimState() == serverState)
weapon->m_iWeaponGameplayAnimState() = 1000;
Enjoy inspecting your weapons and not being called out for inspect whoring the default CT/T knife ever again.