1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
\r
3 //////////////////////////////////////////////////////////
\r
8 /////////////////////////////////////////////////////////
\r
9 void end_sys_globals;
\r
10 /////////////////////////////////////////////////////////
\r
13 /////////////////////////////////////////////////////////
\r
14 void end_sys_fields;
\r
15 /////////////////////////////////////////////////////////
\r
19 void(float keynr, float ascii) m_keydown;
\r
21 void() m_display; // old NG Menu
\r
23 void() m_hide; // old NG Menu
\r
26 /////////////////////////////////////////////////////////
\r
29 ///////////////////////////
\r
30 // key dest constants
\r
32 float KEY_UNKNOWN = -1;
\r
35 float KEY_MENU_GRABBED = 3;
\r
37 ///////////////////////////
\r
40 float FILE_READ = 0;
\r
41 float FILE_APPEND = 1;
\r
42 float FILE_WRITE = 2;
\r
44 ///////////////////////////
\r
45 // logical constants (just for completeness)
\r
50 ///////////////////////////
\r
51 // boolean constants
\r
56 ///////////////////////////
\r
59 float MSG_BROADCAST = 0; // unreliable to all
\r
60 float MSG_ONE = 1; // reliable to one (msg_entity)
\r
61 float MSG_ALL = 2; // reliable to all
\r
62 float MSG_INIT = 3; // write to the init string
\r
64 /////////////////////////////
\r
65 // mouse target constants
\r
68 float MT_CLIENT = 2;
\r
70 /////////////////////////
\r
71 // client state constants
\r
73 float CS_DEDICATED = 0;
\r
74 float CS_DISCONNECTED = 1;
\r
75 float CS_CONNECTED = 2;
\r
77 ///////////////////////////
\r
80 float DRAWFLAG_NORMAL = 0;
\r
81 float DRAWFLAG_ADDITIVE = 1;
\r
82 float DRAWFLAG_MODULATE = 2;
\r
83 float DRAWFLAG_2XMODULATE = 3;
\r
86 ///////////////////////////
\r
87 // server list constants
\r
89 float SLIST_HOSTCACHEVIEWCOUNT = 0;
\r
90 float SLIST_HOSTCACHETOTALCOUNT = 1;
\r
91 float SLIST_MASTERQUERYCOUNT = 2;
\r
92 float SLIST_MASTERREPLYCOUNT = 3;
\r
93 float SLIST_SERVERQUERYCOUNT = 4;
\r
94 float SLIST_SERVERREPLYCOUNT = 5;
\r
95 float SLIST_SORTFIELD = 6;
\r
96 float SLIST_SORTDESCENDING = 7;
\r
98 float SLIST_LEGACY_LINE1 = 1024;
\r
99 float SLIST_LEGACY_LINE2 = 1025;
\r
101 float SLIST_TEST_CONTAINS = 0;
\r
102 float SLIST_TEST_NOTCONTAIN = 1;
\r
103 float SLIST_TEST_LESSEQUAL = 2;
\r
104 float SLIST_TEST_LESS = 3;
\r
105 float SLIST_TEST_EQUAL = 4;
\r
106 float SLIST_TEST_GREATER = 5;
\r
107 float SLIST_TEST_GREATEREQUAL = 6;
\r
108 float SLIST_TEST_NOTEQUAL = 7;
\r
109 float SLIST_TEST_STARTSWITH = 8;
\r
110 float SLIST_TEST_NOTSTARTSWITH = 9;
\r
112 float SLIST_MASK_AND = 0;
\r
113 float SLIST_MASK_OR = 512;
\r
115 float NET_CURRENTPROTOCOL = 3;
\r
117 ////////////////////////////////
\r
118 // cinematic action constants
\r
120 float CINE_PLAY = 1;
\r
121 float CINE_LOOP = 2;
\r
122 float CINE_PAUSE = 3;
\r
123 float CINE_FIRSTFRAME = 4;
\r
124 float CINE_RESETONWAKEUP= 5;
\r
126 ///////////////////////////
\r
127 // null entity (actually it is the same like the world entity)
\r
129 entity null_entity;
\r
131 ///////////////////////////
\r
135 float ERR_CANNOTOPEN = -1; // fopen
\r
136 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
\r
137 float ERR_INVALIDMODE = -3; // fopen
\r
138 float ERR_BADFILENAME = -4; // fopen
\r
140 // drawing functions
\r
142 float ERR_NULLSTRING = -1;
\r
143 float ERR_BADDRAWFLAG = -2;
\r
144 float ERR_BADSCALE = -3;
\r
145 //float ERR_BADSIZE = ERR_BADSCALE;
\r
146 float ERR_NOTCACHED = -4;
\r
148 float GECKO_BUTTON_DOWN = 0;
\r
149 float GECKO_BUTTON_UP = 1;
\r
150 // either use down and up or just press but not all of them!
\r
151 float GECKO_BUTTON_PRESS = 2;
\r
152 // use this for mouse events if needed?
\r
153 float GECKO_BUTTON_DOUBLECLICK = 3;
\r
155 /* not supported at the moment
\r
156 ///////////////////////////
\r
159 float OS_WINDOWS = 0;
\r
160 float OS_LINUX = 1;
\r
164 float drawfont; // set this to one of the following for draw text routines to work with another font
\r
165 float FONT_DEFAULT = 0;
\r
166 float FONT_CONSOLE = 1;
\r
167 float FONT_SBAR = 2;
\r
168 float FONT_NOTIFY = 3;
\r
169 float FONT_CHAT = 4;
\r
170 float FONT_CENTERPRINT = 5;
\r
171 float FONT_INFOBAR = 6;
\r
172 float FONT_MENU = 7;
\r
173 float FONT_USER = 8; // add to this the index, like FONT_USER+3 = user3. At least 8 of them are supported.
\r