-
Notifications
You must be signed in to change notification settings - Fork 2
/
includes.h
133 lines (119 loc) · 3.72 KB
/
includes.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#pragma once
#include <Windows.h>
#include <vector>
#include <stack>
#include <string>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <memory>
#include <fstream>
#include <assert.h>
#include <Psapi.h>
#include <thread>
#include <chrono>
#define DEV_MODE 1
#define INRANGE(x,a,b) (x >= a && x <= b)
#define getBits( x ) (INRANGE((x&(~0x20)), 'A', 'F') ? ((x&(~0x20)) - 'A' + 0xa) : (INRANGE(x, '0', '9') ? x - '0' : 0))
#define getByte( x ) (getBits(x[0]) << 4 | getBits(x[1]))
#define IN_ATTACK (1 << 0)
#define IN_JUMP (1 << 1)
#define IN_DUCK (1 << 2)
#define IN_FORWARD (1 << 3)
#define IN_BACK (1 << 4)
#define IN_USE (1 << 5)
#define IN_CANCEL (1 << 6)
#define IN_LEFT (1 << 7)
#define IN_RIGHT (1 << 8)
#define IN_MOVELEFT (1 << 9)
#define IN_MOVERIGHT (1 << 10)
#define IN_ATTACK2 (1 << 11)
#define IN_RUN (1 << 12)
#define IN_RELOAD (1 << 13)
#define IN_ALT1 (1 << 14)
#define IN_ALT2 (1 << 15)
#define IN_SCORE (1 << 16)
#define IN_SPEED (1 << 17)
#define IN_WALK (1 << 18)
#define IN_ZOOM (1 << 19)
#define IN_WEAPON1 (1 << 20)
#define IN_WEAPON2 (1 << 21)
#define IN_BULLRUSH (1 << 22)
#define IN_GRENADE1 (1 << 23)
#define IN_GRENADE2 (1 << 24)
#define IN_ATTACK3 (1 << 25)
#define FL_ONGROUND (1 << 0)
#define FL_DUCKING (1 << 1)
#define FL_WATERJUMP (1 << 2)
#define FL_ONTRAIN (1 << 3)
#define FL_INRAIN (1 << 4)
#define FL_FROZEN (1 << 5)
#define FL_ATCONTROLS (1 << 6)
#define FL_CLIENT (1 << 7)
#define FL_FAKECLIENT (1 << 8)
#define FL_INWATER (1 << 9)
#define FL_FLY (1 << 10)
#define FL_SWIM (1 << 11)
#define FL_CONVEYOR (1 << 12)
#define FL_NPC (1 << 13)
#define FL_GODMODE (1 << 14)
#define FL_NOTARGET (1 << 15)
#define FL_AIMTARGET (1 << 16)
#define FL_PARTIALGROUND (1 << 17)
#define FL_STATICPROP (1 << 18)
#define FL_GRAPHED (1 << 19)
#define FL_GRENADE (1 << 20)
#define FL_STEPMOVEMENT (1 << 21)
#define FL_DONTTOUCH (1 << 22)
#define FL_BASEVELOCITY (1 << 23)
#define FL_WORLDBRUSH (1 << 24)
#define FL_OBJECT (1 << 25)
#define FL_KILLME (1 << 26)
#define FL_ONFIRE (1 << 27)
#define FL_DISSOLVING (1 << 28)
#define FL_TRANSRAGDOLL (1 << 29)
#define FL_UNBLOCKABLE_BY_PLAYER (1 << 30)
#define PLAYER_FLAG_BITS 10
#define DISPSURF_FLAG_SURFACE (1<<0)
#define DISPSURF_FLAG_WALKABLE (1<<1)
#define DISPSURF_FLAG_BUILDABLE (1<<2)
#define DISPSURF_FLAG_SURFPROP1 (1<<3)
#define DISPSURF_FLAG_SURFPROP2 (1<<4)
#define HITGROUP_GENERIC 0
#define HITGROUP_HEAD 1
#define HITGROUP_CHEST 2
#define HITGROUP_STOMACH 3
#define HITGROUP_LEFTARM 4
#define HITGROUP_RIGHTARM 5
#define HITGROUP_LEFTLEG 6
#define HITGROUP_RIGHTLEG 7
#define HITGROUP_GEAR 10
#define SURF_HITBOX 0x8000
#define MAX_STUDIOBONES 128
#define MAXSTUDIOSKINS 32
#define SURF_SKY 0x0004
#define BONE_USED_BY_HITBOX 0x00000100
#define BONE_USED_BY_ANYTHING 0x0007FF00
#define TIME_TO_TICKS(dt) ((int)(0.5 + (float)(dt) / g_csgo::Globals->interval_per_tick))
#define TICKS_TO_TIME(t) (g_csgo::Globals->interval_per_tick * (t))
#include "UTILS\vmt.h"
#include "UTILS\vector3D.h"
#include "UTILS\vector2D.h"
#include "UTILS\vmatrix.h"
#include "UTILS\quaternion.h"
#include "UTILS\math.h"
#include "UTILS\general_utils.h"
#include "UTILS\color.h"
#include "UTILS\input_handler.h"
#include "UTILS\variables.h"
#include "UTILS\playerinclude.h"
enum ClientFrameStage_t {
FRAME_UNDEFINED = -1,
FRAME_START,
FRAME_NET_UPDATE_START,
FRAME_NET_UPDATE_POSTDATAUPDATE_START,
FRAME_NET_UPDATE_POSTDATAUPDATE_END,
FRAME_NET_UPDATE_END,
FRAME_RENDER_START,
FRAME_RENDER_END
};