This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
cathook/include/reclasses/C_BaseCombatWeapon.hpp
2017-12-02 17:47:47 +03:00

35 lines
899 B
C++

/*
* C_BaseCombatWeapon.hpp
*
* Created on: Nov 23, 2017
* Author: nullifiedcat
*/
#pragma once
class C_BaseCombatWeapon : public C_BaseEntity
{
public:
inline static bool IsBaseCombatWeapon(IClientEntity *self)
{
typedef bool (*fn_t)(IClientEntity *);
return vfunc<fn_t>(
self, offsets::PlatformOffset(190, offsets::undefined, 190),
0)(self);
}
inline static int GetSlot(IClientEntity *self)
{
typedef int (*fn_t)(IClientEntity *);
return vfunc<fn_t>(
self, offsets::PlatformOffset(395, offsets::undefined, 395),
0)(self);
}
inline static const char *GetPrintName(IClientEntity *self)
{
typedef const char *(*fn_t)(IClientEntity *);
return vfunc<fn_t>(
self, offsets::PlatformOffset(398, offsets::undefined, 398),
0)(self);
}
};