mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Client: add method to check if weapon is melee
This commit is contained in:
parent
2914027574
commit
07fd1cef8e
@ -12,6 +12,7 @@ public:
|
||||
float GetZoomFOVInterpAmount(const float curTime) const;
|
||||
inline bool HasTargetZoomFOV() { return m_playerData.GetTargetZoomFOV() == *(float*)&m_modVars[3120]; }
|
||||
|
||||
inline bool IsWeaponMelee() const { return (unsigned int)(*(_DWORD*)&m_modVars[3952] - 4) <= 1; }
|
||||
private:
|
||||
EHANDLE m_weaponOwner;
|
||||
float m_lastPrimaryAttack;
|
||||
|
Loading…
x
Reference in New Issue
Block a user