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_TFWeaponBaseGun.hpp
2017-12-02 17:47:47 +03:00

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);
}
};