34 lines
732 B
C++
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);
|
|
}
|
|
};
|
|
}
|