[Half-Life AMXX] / include / amxconst.inc Repository:
ViewVC logotype

Annotation of /include/amxconst.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download)

1 : ian 1 /* AMX Mod X constants
2 :     *
3 :     * by the AMX Mod X Development Team
4 :     * originally developed by OLO
5 :     *
6 :     * This file is provided as is (no warranties).
7 :     */
8 :    
9 :     #if defined _amxconst_included
10 :     #endinput
11 :     #endif
12 :     #define _amxconst_included
13 :    
14 :     #define AMXX_VERSION 1.764
15 :     #define AMXX_VERSION_NUM 176
16 :     stock const AMXX_VERSION_STR[]="1.76d";
17 :    
18 :     #define M_PI 3.1415926535
19 :    
20 :     #define ADMIN_ALL 0 /* everyone */
21 :     #define ADMIN_IMMUNITY (1<<0) /* flag "a" */
22 :     #define ADMIN_RESERVATION (1<<1) /* flag "b" */
23 :     #define ADMIN_KICK (1<<2) /* flag "c" */
24 :     #define ADMIN_BAN (1<<3) /* flag "d" */
25 :     #define ADMIN_SLAY (1<<4) /* flag "e" */
26 :     #define ADMIN_MAP (1<<5) /* flag "f" */
27 :     #define ADMIN_CVAR (1<<6) /* flag "g" */
28 :     #define ADMIN_CFG (1<<7) /* flag "h" */
29 :     #define ADMIN_CHAT (1<<8) /* flag "i" */
30 :     #define ADMIN_VOTE (1<<9) /* flag "j" */
31 :     #define ADMIN_PASSWORD (1<<10) /* flag "k" */
32 :     #define ADMIN_RCON (1<<11) /* flag "l" */
33 :     #define ADMIN_LEVEL_A (1<<12) /* flag "m" */
34 :     #define ADMIN_LEVEL_B (1<<13) /* flag "n" */
35 :     #define ADMIN_LEVEL_C (1<<14) /* flag "o" */
36 :     #define ADMIN_LEVEL_D (1<<15) /* flag "p" */
37 :     #define ADMIN_LEVEL_E (1<<16) /* flag "q" */
38 :     #define ADMIN_LEVEL_F (1<<17) /* flag "r" */
39 :     #define ADMIN_LEVEL_G (1<<18) /* flag "s" */
40 :     #define ADMIN_LEVEL_H (1<<19) /* flag "t" */
41 :     #define ADMIN_MENU (1<<20) /* flag "u" */
42 :     #define ADMIN_ADMIN (1<<24) /* flag "y" */
43 :     #define ADMIN_USER (1<<25) /* flag "z" */
44 :    
45 :     #define FLAG_KICK (1<<0) /* flag "a" */
46 :     #define FLAG_TAG (1<<1) /* flag "b" */
47 :     #define FLAG_AUTHID (1<<2) /* flag "c" */
48 :     #define FLAG_IP (1<<3) /* flag "d" */
49 :     #define FLAG_NOPASS (1<<4) /* flag "e" */
50 :    
51 :     #define PLUGIN_CONTINUE 0 /* Results returned by public functions */
52 :     #define PLUGIN_HANDLED 1 /* stop other plugins */
53 :     #define PLUGIN_HANDLED_MAIN 2 /* to use in client_command(), continue all plugins but stop the command */
54 :    
55 :     /* Flags for register_cvar() */
56 :     #define FCVAR_ARCHIVE 1 /* set to cause it to be saved to vars.rc */
57 :     #define FCVAR_USERINFO 2 /* changes the client's info string */
58 :     #define FCVAR_SERVER 4 /* notifies players when changed */
59 :     #define FCVAR_EXTDLL 8 /* defined by external DLL */
60 :     #define FCVAR_CLIENTDLL 16 /* defined by the client dll */
61 :     #define FCVAR_PROTECTED 32 /* It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value */
62 :     #define FCVAR_SPONLY 64 /* This cvar cannot be changed by clients connected to a multiplayer server. */
63 :     #define FCVAR_PRINTABLEONLY 128 /* This cvar's string cannot contain unprintable characters ( e.g., used for player name etc ). */
64 :     #define FCVAR_UNLOGGED 256 /* If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log */
65 :    
66 :    
67 :     /* Id of weapons in CS */
68 :     #define CSW_P228 1
69 :     #define CSW_SCOUT 3
70 :     #define CSW_HEGRENADE 4
71 :     #define CSW_XM1014 5
72 :     #define CSW_C4 6
73 :     #define CSW_MAC10 7
74 :     #define CSW_AUG 8
75 :     #define CSW_SMOKEGRENADE 9
76 :     #define CSW_ELITE 10
77 :     #define CSW_FIVESEVEN 11
78 :     #define CSW_UMP45 12
79 :     #define CSW_SG550 13
80 :     #define CSW_GALI 14
81 :     #define CSW_GALIL 14
82 :     #define CSW_FAMAS 15
83 :     #define CSW_USP 16
84 :     #define CSW_GLOCK18 17
85 :     #define CSW_AWP 18
86 :     #define CSW_MP5NAVY 19
87 :     #define CSW_M249 20
88 :     #define CSW_M3 21
89 :     #define CSW_M4A1 22
90 :     #define CSW_TMP 23
91 :     #define CSW_G3SG1 24
92 :     #define CSW_FLASHBANG 25
93 :     #define CSW_DEAGLE 26
94 :     #define CSW_SG552 27
95 :     #define CSW_AK47 28
96 :     #define CSW_KNIFE 29
97 :     #define CSW_P90 30
98 :     #define CSW_VEST 31
99 :     #define CSW_VESTHELM 32
100 :    
101 :     #define HIW_BERETTA 1
102 :     #define HIW_SPAS12 2
103 :     #define HIW_M4A1 3
104 :     #define HIW_MP5A4 4
105 :     #define HIW_MP5SD5 5
106 :     #define HIW_AK47 6
107 :     #define HIW_AKS74U 7
108 :     #define HIW_GLOCK 8
109 :     #define HIW_M11 9
110 :     #define HIW_M11SD 10
111 :     #define HIW_PSG1 11
112 :     #define HIW_ZASTAVA 12
113 :     #define HIW_M16A2 13
114 :     #define HIW_REMINGTON 14
115 :     #define HIW_NATOGREN 15
116 :     #define HIW_TANGOGREN 16
117 :     #define HIW_FLASHBANG 17
118 :    
119 :     /* Parts of body for hits */
120 :     #define HIT_GENERIC 0 /* none */
121 :     #define HIT_HEAD 1
122 :     #define HIT_CHEST 2
123 :     #define HIT_STOMACH 3
124 :     #define HIT_LEFTARM 4
125 :     #define HIT_RIGHTARM 5
126 :     #define HIT_LEFTLEG 6
127 :     #define HIT_RIGHTLEG 7
128 :    
129 :     /* Constants for emit_sound() */
130 :     /* Channels */
131 :     #define CHAN_AUTO 0
132 :     #define CHAN_WEAPON 1
133 :     #define CHAN_VOICE 2
134 :     #define CHAN_ITEM 3
135 :     #define CHAN_BODY 4
136 :     #define CHAN_STREAM 5 /* allocate stream channel from the static or dynamic area */
137 :     #define CHAN_STATIC 6 /* allocate channel from the static area */
138 :     #define CHAN_NETWORKVOICE_BASE 7 /* voice data coming across the network */
139 :     #define CHAN_NETWORKVOICE_END 500 /* network voice data reserves slots (CHAN_NETWORKVOICE_BASE through CHAN_NETWORKVOICE_END). */
140 :    
141 :     /* Attenuation values */
142 :     #define ATTN_NONE 0.00
143 :     #define ATTN_NORM 0.80
144 :     #define ATTN_IDLE 2.00
145 :     #define ATTN_STATIC 1.25
146 :    
147 :     /* Pitch values */
148 :     #define PITCH_NORM 100 /* non-pitch shifted */
149 :     #define PITCH_LOW 95 /* other values are possible - 0-255, where 255 is very high */
150 :     #define PITCH_HIGH 120
151 :    
152 :     /* Volume values */
153 :     #define VOL_NORM 1.0
154 :    
155 :     /* Menu keys */
156 :     #define MENU_KEY_1 (1<<0)
157 :     #define MENU_KEY_2 (1<<1)
158 :     #define MENU_KEY_3 (1<<2)
159 :     #define MENU_KEY_4 (1<<3)
160 :     #define MENU_KEY_5 (1<<4)
161 :     #define MENU_KEY_6 (1<<5)
162 :     #define MENU_KEY_7 (1<<6)
163 :     #define MENU_KEY_8 (1<<7)
164 :     #define MENU_KEY_9 (1<<8)
165 :     #define MENU_KEY_0 (1<<9)
166 :    
167 :     #define LANG_SERVER 0
168 :     #define LANG_PLAYER -1
169 :    
170 :     /* Destination types for client_print() */
171 :     enum {
172 :     print_notify = 1,
173 :     print_console,
174 :     print_chat,
175 :     print_center,
176 :     }
177 :    
178 :     /* Destination types for engclient_print() */
179 :     enum {
180 :     engprint_console = 0,
181 :     engprint_center,
182 :     engprint_chat,
183 :     }
184 :    
185 :     /* Render for set_user_rendering() */
186 :     enum {
187 :     kRenderNormal = 0, /* src */
188 :     kRenderTransColor, /* c*a+dest*(1-a) */
189 :     kRenderTransTexture, /* src*a+dest*(1-a) */
190 :     kRenderGlow, /* src*a+dest -- No Z buffer checks */
191 :     kRenderTransAlpha, /* src*srca+dest*(1-srca) */
192 :     kRenderTransAdd, /* src*a+dest */
193 :     }
194 :    
195 :     /* Fx for set_user_rendering() */
196 :     enum {
197 :     kRenderFxNone = 0,
198 :     kRenderFxPulseSlow,
199 :     kRenderFxPulseFast,
200 :     kRenderFxPulseSlowWide,
201 :     kRenderFxPulseFastWide,
202 :     kRenderFxFadeSlow,
203 :     kRenderFxFadeFast,
204 :     kRenderFxSolidSlow,
205 :     kRenderFxSolidFast,
206 :     kRenderFxStrobeSlow,
207 :     kRenderFxStrobeFast,
208 :     kRenderFxStrobeFaster,
209 :     kRenderFxFlickerSlow,
210 :     kRenderFxFlickerFast,
211 :     kRenderFxNoDissipation,
212 :     kRenderFxDistort, /* Distort/scale/translate flicker */
213 :     kRenderFxHologram, /* kRenderFxDistort + distance fade */
214 :     kRenderFxDeadPlayer, /* kRenderAmt is the player index */
215 :     kRenderFxExplode, /* Scale up really big! */
216 :     kRenderFxGlowShell, /* Glowing Shell */
217 :     kRenderFxClampMinScale, /* Keep this sprite from getting very small (SPRITES only!) */
218 :     }
219 :    
220 :     /* Type for force_unmodified() */
221 :     enum {
222 :     force_exactfile = 0, /* File on client must exactly match server's file */
223 :     force_model_samebounds, /* For model files only, the geometry must fit in the same bbox */
224 :     force_model_specifybounds, /* For model files only, the geometry must fit in the specified bbox */
225 :     }
226 :    
227 :     /* Status for get_module() */
228 :     enum {
229 :     module_none = 0,
230 :     module_query,
231 :     module_badload,
232 :     module_loaded,
233 :     module_noinfo,
234 :     module_noquery,
235 :     module_noattach,
236 :     module_old,
237 :     };
238 :    
239 :     #define AMX_FLAG_DEBUG 0x02 /* symbolic info. available */
240 :     #define AMX_FLAG_COMPACT 0x04 /* compact encoding */
241 :     #define AMX_FLAG_BYTEOPC 0x08 /* opcode is a byte (not a cell) */
242 :     #define AMX_FLAG_NOCHECKS 0x10 /* no array bounds checking; no STMT opcode */
243 :     #define AMX_FLAG_NTVREG 0x1000 /* all native functions are registered */
244 :     #define AMX_FLAG_JITC 0x2000 /* abstract machine is JIT compiled */
245 :     #define AMX_FLAG_BROWSE 0x4000 /* busy browsing */
246 :     #define AMX_FLAG_RELOC 0x8000 /* jump/call addresses relocated */
247 :    
248 :     #define INVALID_PLUGIN_ID -1
249 :    
250 :     #define MENU_EXIT -3
251 :     #define MENU_BACK -2
252 :     #define MENU_MORE -1
253 :     #define ITEM_IGNORE 0
254 :     #define ITEM_ENABLED 1
255 :     #define ITEM_DISABLED 2
256 :    
257 :     #define AMX_ERR_NATIVE 10
258 :     #define AMX_ERR_MEMACCESS 5
259 :     #define AMX_ERR_NONE 0
260 :     #define AMX_ERR_BOUNDS 4
261 :     #define AMX_ERR_STACKERR 3
262 :     #define AMX_ERR_STACKLOW 7
263 :     #define AMX_ERR_HEAPLOW 8
264 :     #define AMX_ERR_DIVIDE 11
265 :     #define AMX_ERR_NOTFOUND 19
266 :     #define AMX_ERR_PARAMS 25
267 :     #define AMX_ERR_GENERAL 27
268 :    
269 :     #define INVALID_HANDLE -1
270 :    
271 :     #define ET_IGNORE 0 //ignore return val
272 :     #define ET_STOP 1 //stop on PLUGIN_HANDLED
273 :     #define ET_STOP2 2 //same, except return biggest
274 :     #define ET_CONTINUE 3 //no stop, return biggest
275 :    
276 :     #define FP_CELL 0
277 :     #define FP_FLOAT 1
278 :     #define FP_STRING 2
279 :     #define FP_ARRAY 4
280 :    
281 :     #define FORWARD_ONLY_OLD 1
282 :     #define FORWARD_ONLY_NEW 2
283 :     #define FORWARD_ALL 3
284 :    
285 :     #define MEXIT_ALL 1
286 :     #define MEXIT_NORMAL 0
287 :     #define MEXIT_NEVER -1
288 :    
289 :     #define MENUPAD_NONE 0 //no padding (default)
290 :     #define MENUPAD_PAGE 1 //pads based on items per page
291 :    
292 :     #define MPROP_PERPAGE 1 //NUM - items per page. 0=no paginating, 7=default
293 :     #define MPROP_BACKNAME 2 //STRING - name of "back" button
294 :     #define MPROP_NEXTNAME 3 //STRING - name of "more" button
295 :     #define MPROP_EXITNAME 4 //STRING - name of "exit" button
296 :     #define MPROP_TITLE 5 //STRING - sets menu title
297 :     #define MPROP_EXIT 6 //NUM - sets how "Exit" appears on the menu
298 :     #define MPROP_ORDER 7 //Sets the back/next/exit order
299 :     //Send an 3-cell array with MENU_EXIT etc in the order
300 :     //(from 0-2), 0 being first
301 :     #define MPROP_NOCOLORS 8 //NUM - sets whether colors are not auto (0=default)
302 :     #define MPROP_PADMENU 9 //NUM - sets how the ending portions of a menu are padded
303 :     //i.e. 2 items, 7 per page, with endings at slots 5/6/7.
304 :    
305 :     #define SND_SPAWNING (1<<8) // we're spawing, used in some cases for ambients
306 :     #define SND_STOP (1<<5) // stop sound
307 :     #define SND_CHANGE_VOL (1<<6) // change sound vol
308 :     #define SND_CHANGE_PITCH (1<<7) // change sound pitch
309 :    
310 :     enum LibType
311 :     {
312 :     LibType_Library,
313 :     LibType_Class
314 :     };

Contact
ViewVC Help
Powered by ViewVC 1.0.4