forked from OneshotGH/supremacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hvh.h
64 lines (55 loc) · 1.09 KB
/
hvh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
class AdaptiveAngle {
public:
float m_yaw;
float m_dist;
public:
// ctor.
__forceinline AdaptiveAngle( float yaw, float penalty = 0.f ) {
// set yaw.
m_yaw = math::NormalizedAngle( yaw );
// init distance.
m_dist = 0.f;
// remove penalty.
m_dist -= penalty;
}
};
enum AntiAimMode : size_t {
STAND = 0,
WALK,
AIR,
};
class HVH {
public:
size_t m_mode;
int m_pitch;
int m_yaw;
float m_jitter_range;
float m_rot_range;
float m_rot_speed;
float m_rand_update;
int m_dir;
float m_dir_custom;
size_t m_base_angle;
float m_auto_time;
bool m_step_switch;
int m_random_lag;
float m_next_random_update;
float m_random_angle;
float m_direction;
float m_auto;
float m_auto_dist;
float m_auto_last;
float m_view;
public:
void IdealPitch( );
void AntiAimPitch( );
void AutoDirection( );
void GetAntiAimDirection( );
bool DoEdgeAntiAim( Player *player, ang_t &out );
void DoRealAntiAim( );
void DoFakeAntiAim( );
void AntiAim( );
void SendPacket( );
};
extern HVH g_hvh;