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 /tf2/movement.cpp | |
| 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 'tf2/movement.cpp')
| -rw-r--r-- | tf2/movement.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tf2/movement.cpp b/tf2/movement.cpp deleted file mode 100644 index e1dd335..0000000 --- a/tf2/movement.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include "movement.h"
-#include "interfaces.h"
-#include "settings.h"
-
-namespace features {
- void c_movement::bhop( ) {
- if( !g_settings.misc.bunny_hop )
- return;
-
- if( g_ctx.m_local->m_nMoveType( ) == MOVETYPE_LADDER ||
- g_ctx.m_local->m_nMoveType( ) == MOVETYPE_NOCLIP )
- return;
-
- //jump like you nohat -> WELL THERES FUCKING HATS IN THIS GAME ISNT THERE CUNT
- if( m_cmd->m_buttons & IN_JUMP && !( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) ) {
- m_cmd->m_buttons &= ~IN_JUMP;
- }
- }
-
-
- //ehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh lazy
- void c_movement::autostrafe( ) {
- if( !g_settings.misc.auto_strafe )
- return;
-
- float velocity = g_ctx.m_local->m_vecVelocity( ).length2d( );
- auto cmd = g_ctx.get_last_cmd( );
-
- if( cmd && m_cmd->m_buttons & IN_JUMP && velocity > 1.0f ) {
- if( !cmd->m_forwardmove && !cmd->m_sidemove ) {
- if( !cmd->m_mousedx ) {
- cmd->m_forwardmove = std::min< float >( 450.f, 5850.f / velocity );
- cmd->m_sidemove = ( m_cmd->m_cmd_nr % 2 ) == 0 ? -450.f : 450.f;
- }
- else {
- cmd->m_sidemove = m_cmd->m_mousedx < 0.f ? -450.f : 450.f;
- }
- }
- }
- }
-}
|
