28 lines
665 B
C++
28 lines
665 B
C++
/*
|
|
* C_TFWeaponBaseGun.hpp
|
|
*
|
|
* Created on: Nov 23, 2017
|
|
* Author: nullifiedcat
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
class C_TFWeaponBaseGun : public C_TFWeaponBase
|
|
{
|
|
public:
|
|
inline static float GetProjectileSpeed(IClientEntity *self)
|
|
{
|
|
typedef float (*fn_t)(IClientEntity *);
|
|
return vfunc<fn_t>(
|
|
self, offsets::PlatformOffset(534, offsets::undefined, 534),
|
|
0)(self);
|
|
}
|
|
inline static float GetProjectileGravity(IClientEntity *self)
|
|
{
|
|
typedef float (*fn_t)(IClientEntity *);
|
|
return vfunc<fn_t>(
|
|
self, offsets::PlatformOffset(535, offsets::undefined, 535),
|
|
0)(self);
|
|
}
|
|
};
|