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_TFWeaponBaseMelee.hpp
2018-05-15 17:51:21 +02:00

34 lines
732 B
C++

/*
* C_TFWeaponBaseMelee.hpp
*
* Created on: Nov 23, 2017
* Author: nullifiedcat
*/
#pragma once
#include "reclasses.hpp"
namespace re
{
class C_TFWeaponBaseMelee : public C_TFWeaponBase
{
public:
inline static bool DoSwingTrace(IClientEntity *self, trace_t *trace)
{
typedef bool (*fn_t)(IClientEntity *, trace_t *);
return vfunc<fn_t>(
self, offsets::PlatformOffset(522, offsets::undefined, 522),
0)(self, trace);
}
inline static float GetSwingRange(IClientEntity *self)
{
typedef float (*fn_t)(IClientEntity *);
return vfunc<fn_t>(
self, offsets::PlatformOffset(520, offsets::undefined, 520),
0)(self);
}
};
}