summaryrefslogtreecommitdiff
path: root/gmod/c_base_weapon.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-11-28 16:00:02 +1300
committerboris <wzn@moneybot.cc>2018-11-28 16:00:02 +1300
commit3d412a4b30a9f7c7f51ea6562e694315948bd3da (patch)
tree26d67dfd1f3e5fd12903ad13e85d0cb8bcf8f21c /gmod/c_base_weapon.hpp
parente4729e4393d90271a3814c7a79950a660c48325a (diff)
cleaned up
in short, the cheat and loader are now separate solutions. unused stuff was moved into the legacy solution in case anyone wants to compile it or whatever. i can change this back if you want to. also, i configured the loader to compile in x64, and have separate build types for linux and win64
Diffstat (limited to 'gmod/c_base_weapon.hpp')
-rw-r--r--gmod/c_base_weapon.hpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/gmod/c_base_weapon.hpp b/gmod/c_base_weapon.hpp
deleted file mode 100644
index 76884c8..0000000
--- a/gmod/c_base_weapon.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#pragma once
-#include "util.hpp"
-#include "IClientEntityList.hpp"
-#include "netvars.hpp"
-#include "pattern.hpp"
-
-
-
-class c_base_weapon {
-public:
- NETVAR( m_iClip1, "m_iClip1", "DT_BaseCombatWeapon", 0, int );
- NETVAR( m_flNextPrimaryAttack, "m_flNextPrimaryAttack", "DT_BaseCombatWeapon", 0, float );
- NETVAR( m_hOwner, "m_hOwner", "DT_BaseCombatWeapon", 0, uint32_t );
- NETVAR( m_nModelIndex, "m_nModelIndex", "DT_BaseEntity", 0, int );
-
- __forceinline IClientEntity* ce( ) {
- return reinterpret_cast< IClientEntity* >( this );
- }
-
- __forceinline operator IClientEntity*( ) {
- return reinterpret_cast< IClientEntity* >( this );
- }
-
- template < typename t >
- __forceinline t& get( std::ptrdiff_t offset ) {
- return *reinterpret_cast< t* >( uintptr_t( this ) + offset );
- }
-
- int get_max_clip1( ) {
- return util::get_vfunc< 355, int >( this );
- }
-
- const char* get_class_name( ) {
- return util::get_vfunc< 366, const char* >( this );
- }
-
- const char* get_print_name( ) {
- return util::get_vfunc< 367, const char* >( this );
- }
-
- void* get_wpn_data( );
-
- char get_hud_icon( );
-
- bool is_cw20( );
- bool is_fas2( );
- float get_custom_cone( );
-}; \ No newline at end of file