1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
3 //////////////////////////////////////////////////////////
8 /////////////////////////////////////////////////////////
10 /////////////////////////////////////////////////////////
13 /////////////////////////////////////////////////////////
15 /////////////////////////////////////////////////////////
19 void(float keynr, float ascii) m_keydown;
21 void() m_display; // old NG Menu
23 void() m_hide; // old NG Menu
26 /////////////////////////////////////////////////////////
29 ///////////////////////////
32 float KEY_UNKNOWN = -1;
35 float KEY_MENU_GRABBED = 3;
37 ///////////////////////////
41 float FILE_APPEND = 1;
44 ///////////////////////////
45 // logical constants (just for completeness)
50 ///////////////////////////
56 ///////////////////////////
59 float MSG_BROADCAST = 0; // unreliable to all
60 float MSG_ONE = 1; // reliable to one (msg_entity)
61 float MSG_ALL = 2; // reliable to all
62 float MSG_INIT = 3; // write to the init string
64 /////////////////////////////
65 // mouse target constants
70 /////////////////////////
71 // client state constants
73 float CS_DEDICATED = 0;
74 float CS_DISCONNECTED = 1;
75 float CS_CONNECTED = 2;
77 ///////////////////////////
80 float DRAWFLAG_NORMAL = 0;
81 float DRAWFLAG_ADDITIVE = 1;
82 float DRAWFLAG_MODULATE = 2;
83 float DRAWFLAG_2XMODULATE = 3;
86 ///////////////////////////
90 float CVAR_NOTIFY = 2;
91 float CVAR_READONLY = 4;
93 ///////////////////////////
94 // server list constants
96 float SLIST_HOSTCACHEVIEWCOUNT = 0;
97 float SLIST_HOSTCACHETOTALCOUNT = 1;
98 float SLIST_MASTERQUERYCOUNT = 2;
99 float SLIST_MASTERREPLYCOUNT = 3;
100 float SLIST_SERVERQUERYCOUNT = 4;
101 float SLIST_SERVERREPLYCOUNT = 5;
102 float SLIST_SORTFIELD = 6;
103 float SLIST_SORTDESCENDING = 7;
105 float SLIST_LEGACY_LINE1 = 1024;
106 float SLIST_LEGACY_LINE2 = 1025;
108 float SLIST_TEST_CONTAINS = 0;
109 float SLIST_TEST_NOTCONTAIN = 1;
110 float SLIST_TEST_LESSEQUAL = 2;
111 float SLIST_TEST_LESS = 3;
112 float SLIST_TEST_EQUAL = 4;
113 float SLIST_TEST_GREATER = 5;
114 float SLIST_TEST_GREATEREQUAL = 6;
115 float SLIST_TEST_NOTEQUAL = 7;
117 float SLIST_MASK_AND = 0;
118 float SLIST_MASK_OR = 512;
120 float NET_CURRENTPROTOCOL = 3;
122 ////////////////////////////////
123 // cinematic action constants
127 float CINE_PAUSE = 3;
128 float CINE_FIRSTFRAME = 4;
129 float CINE_RESETONWAKEUP= 5;
131 ///////////////////////////
132 // null entity (actually it is the same like the world entity)
136 ///////////////////////////
140 float ERR_CANNOTOPEN = -1; // fopen
141 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
142 float ERR_INVALIDMODE = -3; // fopen
143 float ERR_BADFILENAME = -4; // fopen
147 float ERR_NULLSTRING = -1;
148 float ERR_BADDRAWFLAG = -2;
149 float ERR_BADSCALE = -3;
150 //float ERR_BADSIZE = ERR_BADSCALE;
151 float ERR_NOTCACHED = -4;
153 float GECKO_BUTTON_DOWN = 0;
154 float GECKO_BUTTON_UP = 1;
155 // either use down and up or just press but not all of them!
156 float GECKO_BUTTON_PRESS = 2;
157 // use this for mouse events if needed?
158 float GECKO_BUTTON_DOUBLECLICK = 3;
160 /* not supported at the moment
161 ///////////////////////////
164 float OS_WINDOWS = 0;
169 float drawfont; // set this to one of the following for draw text routines to work with another font
170 float FONT_DEFAULT = 0;
171 float FONT_CONSOLE = 1;
173 float FONT_NOTIFY = 3;
175 float FONT_CENTERPRINT = 5;
176 float FONT_INFOBAR = 6;
178 float FONT_USER = 8; // add to this the index, like FONT_USER+3 = user3. At least 8 of them are supported.