-
Notifications
You must be signed in to change notification settings - Fork 12
/
cg_utils.h
64 lines (49 loc) · 1.85 KB
/
cg_utils.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
/*
==============================
Written by id software, nightmare and hk of mdd
This file is part of mdd client proxymod.
mdd client proxymod is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
mdd client proxymod is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with mdd client proxymod. If not, see <http://www.gnu.org/licenses/>.
==============================
Note: mdd client proxymod contains large quantities from the quake III arena source code
*/
#ifndef __UTILS_H__
#define __UTILS_H__
#define ARRAY_LEN(x) (sizeof(x) / sizeof(*(x)))
#define PSF_USERINPUT_NONE 0
#define PSF_USERINPUT_FORWARD 1
#define PSF_USERINPUT_BACKWARD 2
#define PSF_USERINPUT_LEFT 8
#define PSF_USERINPUT_RIGHT 16
#define PSF_USERINPUT_JUMP 32
#define PSF_USERINPUT_CROUCH 64
#define PSF_USERINPUT_ATTACK 256
#define PSF_USERINPUT_WALK 512
extern vec4_t colorBlack;
extern vec4_t colorRed;
extern vec4_t colorGreen;
extern vec4_t colorBlue;
extern vec4_t colorYellow;
extern vec4_t colorMagenta;
extern vec4_t colorCyan;
extern vec4_t colorWhite;
extern vec4_t colorLtGrey;
extern vec4_t colorMdGrey;
extern vec4_t colorDkGrey;
// strings
char* vaf(char* format, ...);
const char *getConfigString( int32_t index );
snapshot_t *getSnap( void );
playerState_t *getPs( void );
int8_t isInAir( playerState_t *ps );
int8_t isJumping( playerState_t *ps );
uint32_t getTime( void );
#endif // __UTILS_H__