diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
| commit | 7ccb819f867493f8ec202ea3b39c94c198c64584 (patch) | |
| tree | 94622e61af0ff359e3d6689cf274d74f60b2492a /tf2/process_movement.cpp | |
| parent | 564d979b79e8a5aaa5014eba0ecd36c61575934f (diff) | |
first
Diffstat (limited to 'tf2/process_movement.cpp')
| -rw-r--r-- | tf2/process_movement.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tf2/process_movement.cpp b/tf2/process_movement.cpp new file mode 100644 index 0000000..c6f186e --- /dev/null +++ b/tf2/process_movement.cpp @@ -0,0 +1,12 @@ +#include "hooks.h"
+#include "interfaces.h"
+
+void __fastcall hooks::process_movement( void* thisptr, void* edx_, c_base_player* player, CMoveData* move ) {
+ static auto old_fn = cl.m_movement->get_old_function< decltype( hooks::process_movement )* >( 1 );
+
+ if ( cl.m_input( )->IsButtonDown( MOUSE_MIDDLE ) ) {
+ move->m_outStepHeight = -1.0f;
+ }
+
+ return old_fn( thisptr, edx_, player, move );
+}
\ No newline at end of file |
