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/internal_rewrite/movement.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/internal_rewrite/movement.hpp')
| -rw-r--r-- | cheat/internal_rewrite/movement.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cheat/internal_rewrite/movement.hpp b/cheat/internal_rewrite/movement.hpp new file mode 100644 index 0000000..0c0b1a6 --- /dev/null +++ b/cheat/internal_rewrite/movement.hpp @@ -0,0 +1,39 @@ +#pragma once
+#include "util.hpp"
+
+//forward declarations
+class user_cmd_t;
+
+NAMESPACE_REGION( features )
+
+class c_movement {
+ user_cmd_t* m_ucmd{ };
+ bool m_direction{ };
+
+ void bhop( );
+ void auto_strafer( );
+
+ void edge_jump( );
+ void auto_jumpbug( );
+ void jump_stats( );
+
+ bool get_best_direction( float ideal_step, float left, float right, float weight );
+ float get_best_strafe_step( float speed, vec3_t direction );
+ float get_best_strafe_angle( );
+ void circle_strafe( );
+ void air_duck( );
+
+public:
+ void operator()( user_cmd_t* ucmd ) {
+ m_ucmd = ucmd;
+ auto_strafer( );
+ circle_strafe( );
+ bhop( );
+ edge_jump( );
+ auto_jumpbug( );
+ jump_stats( );
+ air_duck( );
+ }
+};
+
+END_REGION
\ No newline at end of file |
