diff options
| author | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-11-28 16:00:02 +1300 |
| commit | 3d412a4b30a9f7c7f51ea6562e694315948bd3da (patch) | |
| tree | 26d67dfd1f3e5fd12903ad13e85d0cb8bcf8f21c /cheat/tf2/CInput.hpp | |
| parent | e4729e4393d90271a3814c7a79950a660c48325a (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 'cheat/tf2/CInput.hpp')
| -rw-r--r-- | cheat/tf2/CInput.hpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/cheat/tf2/CInput.hpp b/cheat/tf2/CInput.hpp new file mode 100644 index 0000000..3fb8bff --- /dev/null +++ b/cheat/tf2/CInput.hpp @@ -0,0 +1,55 @@ +#pragma once
+
+#include "vector.hpp"
+#include "IClientMode.h"
+
+#define MULTIPLAYER_BACKUP 150
+
+struct verified_cmd_t {
+ user_cmd_t m_cmd;
+ CRC32_t m_crc;
+};
+
+class CInput {
+ void* pvftable; //0x00
+public:
+ bool m_fTrackIRAvailable; //0x04
+ bool m_fMouseInitialized; //0x05
+ bool m_fMouseActive; //0x06
+ bool m_fJoystickAdvancedInit; //0x07
+private:
+ char pad_0x08[ 0x2C ]; //0x08
+public:
+ void* m_pKeys; //0x34
+private:
+ char pad_0x38[ 0x64 ]; //0x38
+ int pad_0x41;
+ int pad_0x42;
+public:
+ bool m_fCameraInterceptingMouse; //0x9C
+ bool m_fCameraInThirdPerson; //0x9D
+ bool m_fCameraMovingWithMouse; //0x9E
+ vec3_t m_vecCameraOffset; //0xA0
+ bool m_fCameraDistanceMove; //0xAC
+ int m_nCameraOldX; //0xB0
+ int m_nCameraOldY; //0xB4
+ int m_nCameraX; //0xB8
+ int m_nCameraY; //0xBC
+ bool m_CameraIsOrthographic; //0xC0
+ vec3_t m_angPreviousViewAngles; //0xC4
+ vec3_t m_angPreviousViewAnglesTilt; //0xD0
+ float m_flLastForwardMove; //0xDC
+ int m_nClearInputState; //0xE0
+public:
+ user_cmd_t * m_pCommands; //0xEC
+ verified_cmd_t* m_pVerifiedCommands; //0xF0
+ int m_hSelectedWeapon;
+
+ user_cmd_t* GetUserCmd( int slot, int seq_num ) {
+ return util::get_vfunc< 8, user_cmd_t* >( this, slot, seq_num );
+ }
+
+ void CreateMove( int sequence_number, float input_sample_time, bool active ) {
+ return util::get_vfunc< 3, void >( this, sequence_number, input_sample_time, active );
+ }
+};
|
