int GetAmmoInClip()
{
static int m_Clip = GET_NETVAR("DT_BaseCombatWeapon", "m_iClip1");
return *(int*)((DWORD)this + m_Clip);
}
float GetSpread() { return call_vfunc<float(__thiscall*)(void*)>(this, 439)(this); }
CSWeaponInfo* GetCSWpnData() { return call_vfunc<CSWeaponInfo*(__thiscall*)(void*)>(this, 447)(this); }
float GetCone() { return call_vfunc<float(__thiscall*)(void*)>(this, 470)(this); }
void UpdateAccuracyPenalty() { call_vfunc<void(__thiscall*)(void*)>(this, 471)(this); }
float GetAccuracyPenalty()
{
static int m_fAccuracyPenalty = GET_NETVAR("DT_WeaponCSBase", "m_fAccuracyPenalty");
return *(float*)((DWORD)this + m_fAccuracyPenalty);
}
bool IsScoped(int x = 0)
{
return GetZoomLevel() > 0;
}
float GetInaccuracy()
{
typedef float(__thiscall* oInaccuracy)(PVOID);
return call_vfunc< oInaccuracy >(this, 470)(this);
}
^ fix