forked from faggotman69/Prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLegitBot.h
More file actions
48 lines (38 loc) · 1.22 KB
/
LegitBot.h
File metadata and controls
48 lines (38 loc) · 1.22 KB
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
#pragma once
#include "SDK.h"
#include "singleton.hpp"
class legitbot
: public singleton<legitbot>
{
public:
legitbot();
void OnCreateMove(CInput::CUserCmd *pCmd, C_BaseEntity* local);
private:
// Targetting
void weapon_settings(CBaseCombatWeapon* weapon);
void do_aimbot(C_BaseEntity *local, CBaseCombatWeapon *weapon, CInput::CUserCmd *cmd);
QAngle get_randomized_recoil(C_BaseEntity* local);
QAngle get_randomized_angles(C_BaseEntity* local);
void triggerbot(CInput::CUserCmd * cmd, C_BaseEntity * local, CBaseCombatWeapon * weapon);
bool hit_chance(C_BaseEntity * local, CInput::CUserCmd * cmd, CBaseCombatWeapon * weapon, C_BaseEntity * target);
// Functionality
bool get_hitbox(C_BaseEntity * local, C_BaseEntity * entity, Vector & destination);
int get_target(C_BaseEntity *local, CBaseCombatWeapon *weapon, CInput::CUserCmd *cmd, Vector &destination);
// Aimbot
int best_target;
QAngle view_angle;
QAngle aim_angle;
QAngle delta_angle;
QAngle final_angle;
Vector hitbox_position;
int aim_key;
float aim_smooth;
float aim_fov;
float randomized_smooth;
float recoil_min;
float recoil_max;
float randomized_angle;
bool shoot;
int hitbox;
bool multibone;
};