SHARE
TWEET

Untitled

a guest Sep 19th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #include "../includes.h"
  4.  
  5. class c_antiaim : public c_singleton<c_antiaim>
  6. {
  7. public:
  8.     void fakelag(c_cs_player* local, c_user_cmd* cmd, bool& send_packet);
  9.     void run(c_cs_player* local, c_user_cmd* cmd);
  10.     void prepare_animation(c_cs_player* local);
  11.     void predict(c_cs_player* local, c_user_cmd* cmd);
  12.  
  13.     float get_visual_choke();
  14.     void increment_visual_progress();
  15.  
  16.     float get_last_real();
  17.     float get_last_fake();
  18.  
  19.     uint32_t shot_cmd{};
  20. private:
  21.     bool on_peek(c_cs_player* local, bool& target);
  22.     float calculate_ideal_yaw(c_cs_player* local, bool estimate = false);
  23.  
  24.     float visual_choke = 0.f,
  25.         last_real = 0.f, last_fake = 0.f,
  26.         next_lby_update = 0.f, lby_update = 0.f,
  27.         min_delta = 0.f, max_delta = 0.f,
  28.         stop_to_full_running_fraction = 0.f,
  29.         feet_speed_stand = 0.f, feet_speed_ducked = 0.f;
  30.     bool is_standing = false;
  31.     uint32_t estimated_choke = 0;
  32. };
  33.  
  34. #define antiaim c_antiaim::instance()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top