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

Annotation of /include/fakemeta_const.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (view) (download)

1 : ian 1 /* FakeMeta constants
2 :     *
3 :     * by the AMX Mod X Development Team
4 :     *
5 :     * This file is provided as is (no warranties).
6 :     */
7 :    
8 :     #if defined _fakemeta_const_included
9 :     #endinput
10 :     #endif
11 :     #define _fakemeta_const_included
12 :    
13 :     // For forward_return
14 :     #define FMV_STRING 1
15 :     #define FMV_FLOAT 2
16 :     #define FMV_CELL 3
17 :    
18 :     #include <hlsdk_const>
19 :    
20 :     /* The actual return value of the function, use these instead of PLUGIN_HANDLED etc when
21 :     * returning from registered forwards.
22 :     */
23 :     #define FMRES_IGNORED 1 // Calls target function, returns normal value
24 :     #define FMRES_HANDLED 2 // Tells metamod you did something, still calls target function and returns normal value
25 :     #define FMRES_OVERRIDE 3 // Supposed to still call the target function but return your value instead
26 :     // however this does not work properly with metamod; use supercede instead.
27 :     #define FMRES_SUPERCEDE 4 // Block the target call, and use your return value (if applicable)
28 :    
29 :     // Use this with GetInfoKeyBuffer if you want the server's localinfo buffer
30 :     #define FM_NULLENT -1
31 :    
32 :    
33 :     /* Used with engfunc()
34 :     */
35 :     enum {
36 :     EngFunc_PrecacheModel, // int ) (char *s);
37 :     EngFunc_PrecacheSound, // int ) (char *s);
38 :     EngFunc_SetModel, // void ) (edict_t *e, const char *m);
39 :     EngFunc_ModelIndex, // int ) (const char *m);
40 :     EngFunc_ModelFrames, // int ) (int modelIndex);
41 :     EngFunc_SetSize, // void ) (edict_t *e, const float *rgflMin, const float *rgflMax);
42 :     EngFunc_ChangeLevel, // void ) (char* s1, char* s2);
43 :     EngFunc_VecToYaw, // float) (const float *rgflVector);
44 :     EngFunc_VecToAngles, // void ) (const float *rgflVectorIn, float *rgflVectorOut);
45 :     EngFunc_MoveToOrigin, // void ) (edict_t *ent, const float *pflGoal, float dist, int iMoveType);
46 :     EngFunc_ChangeYaw, // void ) (edict_t* ent);
47 :     EngFunc_ChangePitch, // void ) (edict_t* ent);
48 :     EngFunc_FindEntityByString, // edict) (edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue);
49 :     EngFunc_GetEntityIllum, // int ) (edict_t* pEnt);
50 :     EngFunc_FindEntityInSphere, // edict) (edict_t *pEdictStartSearchAfter, const float *org, float rad);
51 :     EngFunc_FindClientInPVS, // edict) (edict_t *pEdict);
52 :     EngFunc_EntitiesInPVS, // edict) (edict_t *pplayer);
53 :     EngFunc_MakeVectors, // void ) (const float *rgflVector);
54 :     EngFunc_AngleVectors, // void ) (const float *rgflVector, float *forward, float *right, float *up);
55 :     EngFunc_CreateEntity, // edict) (void);
56 :     EngFunc_RemoveEntity, // void ) (edict_t *e);
57 :     EngFunc_CreateNamedEntity, // edict) (int className);
58 :     EngFunc_MakeStatic, // void ) (edict_t *ent);
59 :     EngFunc_EntIsOnFloor, // int ) (edict_t *e);
60 :     EngFunc_DropToFloor, // int ) (edict_t *e);
61 :     EngFunc_WalkMove, // int ) (edict_t *ent, float yaw, float dist, int iMode);
62 :     EngFunc_SetOrigin, // void ) (edict_t *e, const float *rgflOrigin);
63 :     EngFunc_EmitSound, // void ) (edict_t *entity, int channel, const char *sample, float volume, float attenuation, int fFlags, int pitch);
64 :     EngFunc_EmitAmbientSound, // void ) (edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch);
65 :    
66 :     //With 1.71 you can pass an optional TraceLine ptr for trace natives
67 :     // it can be 0, for meaning "global tr handle" (for get/set_tr2), or
68 :     // it can be any other TR handle (such as one from a TR hook)
69 :     EngFunc_TraceLine, // void ) (const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
70 :     EngFunc_TraceToss, // void ) (edict_t *pent, edict_t *pentToIgnore, TraceResult *ptr);
71 :     EngFunc_TraceMonsterHull, // int ) (edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
72 :     EngFunc_TraceHull, // void ) (const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr);
73 :     EngFunc_TraceModel, // void ) (const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr);
74 :     EngFunc_TraceTexture, // const char *) (edict_t *pTextureEntity, const float *v1, const float *v2 );
75 :     EngFunc_TraceSphere, // void ) (const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr);
76 :    
77 :     EngFunc_GetAimVector, // void ) (edict_t *ent, float speed, float *rgflReturn);
78 :     EngFunc_ParticleEffect, // void ) (const float *org, const float *dir, float color, float count);
79 :     EngFunc_LightStyle, // void ) (int style, char *val);
80 :     EngFunc_DecalIndex, // int ) (const char *name);
81 :     EngFunc_PointContents, // int ) (const float *rgflVector);
82 :     EngFunc_FreeEntPrivateData, // void ) (edict_t *pEdict);
83 :     EngFunc_SzFromIndex, // const char *) (int iString);
84 :     EngFunc_AllocString, // int ) (const char *szValue);
85 :     EngFunc_RegUserMsg, // int ) (const char *pszName, int iSize);
86 :     EngFunc_AnimationAutomove, // void ) (const edict_t *pEdict, float flTime);
87 :     EngFunc_GetBonePosition, // void ) (const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles);
88 :     EngFunc_GetAttachment, // void ) (const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles);
89 :     EngFunc_SetView, // void ) (const edict_t *pClient, const edict_t *pViewent);
90 :     EngFunc_Time, // float) ( void );
91 :     EngFunc_CrosshairAngle, // void ) (const edict_t *pClient, float pitch, float yaw);
92 :     EngFunc_FadeClientVolume, // void ) (const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds);
93 :     EngFunc_SetClientMaxspeed, // void ) (const edict_t *pEdict, float fNewMaxspeed);
94 :     EngFunc_CreateFakeClient, // edict) (const char *netname); // returns NULL if fake client can't be created
95 :     EngFunc_RunPlayerMove, // void ) (edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec);
96 :     EngFunc_NumberOfEntities, // int ) ( void );
97 :     EngFunc_StaticDecal, // void ) (const float *origin, int decalIndex, int entityIndex, int modelIndex);
98 :     EngFunc_PrecacheGeneric, // int ) (char* s);
99 :     EngFunc_BuildSoundMsg, // void ) (edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch, int msg_dest, int msg_type, const float *pOrigin, edict_t *ed);
100 :     EngFunc_GetPhysicsKeyValue, // const char *) (const edict_t *pClient, const char *key);
101 :     EngFunc_SetPhysicsKeyValue, // void ) (const edict_t *pClient, const char *key, const char *value);
102 :     EngFunc_GetPhysicsInfoString, // const char *) (const edict_t *pClient);
103 :     EngFunc_PrecacheEvent, // unsigned short) (int type, const char*psz);
104 :     EngFunc_PlaybackEvent, // void ) (int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
105 :     EngFunc_CheckVisibility, // int ) (const edict_t *entity, unsigned char *pset);
106 :     EngFunc_GetCurrentPlayer, // int ) ( void );
107 :     EngFunc_CanSkipPlayer, // int ) (const edict_t *player);
108 :     EngFunc_SetGroupMask, // void ) (int mask, int op);
109 :     EngFunc_GetClientListening, // bool ) (int iReceiver, int iSender)
110 :     EngFunc_SetClientListening, // bool ) (int iReceiver, int iSender, bool Listen)
111 :     EngFunc_MessageBegin, // void ) (int msg_dest, int msg_type, const float *pOrigin, edict_t *ed)
112 :     EngFunc_WriteCoord, // void ) (float flValue)
113 :     EngFunc_WriteAngle, // void ) (float flValue)
114 :     EngFunc_InfoKeyValue, // char*) (char *infobuffer, char *key);
115 :     EngFunc_SetKeyValue, // void ) (char *infobuffer, char *key, char *value);
116 :     EngFunc_SetClientKeyValue, // void ) (int clientIndex, char *infobuffer, char *key, char *value);
117 :     EngFunc_CreateInstBaseline, // int ) (int classname, struct entity_state_s *baseline);
118 :    
119 :     // Returns pointer to info buffer that can be used with the infobuffer param of InfoKeyValue, SetKeyValue, and SetClientKeyValue
120 :     EngFunc_GetInfoKeyBuffer, // char*) (edict_t *e);
121 :     EngFunc_AlertMessage, // void ) (ALERT_TYPE atype, char *szFmt, ...);
122 : ian 17 EngFunc_ClientPrintf, // void ) (edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg);
123 :     EngFunc_ServerPrint // void ) (const char *szMsg);
124 : ian 1 };
125 :    
126 :     /* Used with dllfunc()
127 :     */
128 :     enum
129 :     {
130 :     DLLFunc_GameInit, // void ) ( void );
131 :     DLLFunc_Spawn, // int ) (edict_t *pent);
132 :     DLLFunc_Think, // void ) (edict_t *pent);
133 :     DLLFunc_Use, // void ) (edict_t *pentUsed, edict_t *pentOther);
134 :     DLLFunc_Touch, // void ) (edict_t *pentTouched, edict_t *pentOther);
135 :     DLLFunc_Blocked, // void ) (edict_t *pentBlocked, edict_t *pentOther);
136 :    
137 :     //You can pass in 0 for glb kvd handle or a kvd handle here
138 :     DLLFunc_KeyValue, // void ) (edict_t *pentKeyvalue, KeyValueData *pkvd);
139 :     DLLFunc_SetAbsBox, // void ) (edict_t *pent);
140 :     DLLFunc_ClientConnect, // bool ) (edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[128]);
141 :    
142 :     DLLFunc_ClientDisconnect, // void ) (edict_t *pEntity);
143 :     DLLFunc_ClientKill, // void ) (edict_t *pEntity);
144 :     DLLFunc_ClientPutInServer, // void ) (edict_t *pEntity);
145 :     DLLFunc_ClientCommand, // void ) (edict_t *pEntity);
146 :    
147 :     DLLFunc_ServerDeactivate, // void ) ( void );
148 :    
149 :     DLLFunc_PlayerPreThink, // void ) (edict_t *pEntity);
150 :     DLLFunc_PlayerPostThink, // void ) (edict_t *pEntity);
151 :    
152 :     DLLFunc_StartFrame, // void ) ( void );
153 :     DLLFunc_ParmsNewLevel, // void ) ( void );
154 :     DLLFunc_ParmsChangeLevel, // void ) ( void );
155 :    
156 :     // Returns string describing current .dll. E.g., TeamFotrress 2, Half-Life
157 :     // This also gets called when the server is queried for information (for example, by a server browser tool)
158 :     DLLFunc_GetGameDescription, // const char *) ( void );
159 :    
160 :     // Spectator funcs
161 :     DLLFunc_SpectatorConnect, // void ) (edict_t *pEntity);
162 :     DLLFunc_SpectatorDisconnect, // void ) (edict_t *pEntity);
163 :     DLLFunc_SpectatorThink, // void ) (edict_t *pEntity);
164 :    
165 :     // Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint.
166 :     DLLFunc_Sys_Error, // void ) (const char *error_string);
167 :    
168 :     DLLFunc_PM_FindTextureType, // char ) (char *name);
169 :     DLLFunc_RegisterEncoders, // void ) ( void );
170 :    
171 :     // Enumerates player hulls. Returns 0 if the hull number doesn't exist, 1 otherwise
172 :     DLLFunc_GetHullBounds, // int ) (int hullnumber, float *mins, float *maxs);
173 :    
174 :     // Create baselines for certain "unplaced" items.
175 :     DLLFunc_CreateInstBaselines, // void ) ( void );
176 :     DLLFunc_pfnAllowLagCompensation, // int ) ( void );
177 :     // I know this does not fit with DLLFUNC(), but I don't want another native just for it.
178 :     MetaFunc_CallGameEntity, // bool ) (plid_t plid, const char *entStr,entvars_t *pev);
179 :     DLLFunc_ClientUserInfoChanged, // void ) (edict *pEntity, char *infobuffer);
180 :     // You can pass in 0 for global cd handle or another cd handle here
181 :     DLLFunc_UpdateClientData, // void ) (const struct edict_s *ent, int sendweapons, struct clientdata_s *cd);
182 :     // You can pass in 0 for global entity state handle or another entity state handle here
183 :     DLLFunc_AddToFullPack, // int ) (struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet);
184 :     // You can pass in 0 for global usercmd handle or another usercmd handle here
185 :     DLLFunc_CmdStart, // void ) (const edict_t *player, const struct usercmd_s *cmd, unsigned int random_seed);
186 :     DLLFunc_CmdEnd, // void ) (const edict_t *player);
187 :     DLLFunc_CreateBaseline // void ) (int player, int eindex, struct entity_state_s *baseline, struct edict_s *entity, int playermodelindex, vec3_t player_mins, vec3_t player_maxs);
188 :     };
189 :    
190 :     enum {
191 :     pev_string_start = 0,
192 :     pev_classname,
193 :     pev_globalname,
194 :     pev_model,
195 :     pev_target,
196 :     pev_targetname,
197 :     pev_netname,
198 :     pev_message,
199 :     pev_noise,
200 :     pev_noise1,
201 :     pev_noise2,
202 :     pev_noise3,
203 :     pev_string_end,
204 :     pev_edict_start,
205 :     pev_chain,
206 :     pev_dmg_inflictor,
207 :     pev_enemy,
208 :     pev_aiment,
209 :     pev_owner,
210 :     pev_groundentity,
211 :     pev_euser1,
212 :     pev_euser2,
213 :     pev_euser3,
214 :     pev_euser4,
215 :     pev_edict_end,
216 :     pev_float_start,
217 :     pev_impacttime,
218 :     pev_starttime,
219 :     pev_idealpitch,
220 :     pev_ideal_yaw,
221 :     pev_pitch_speed,
222 :     pev_yaw_speed,
223 :     pev_ltime,
224 :     pev_nextthink,
225 :     pev_gravity,
226 :     pev_friction,
227 :     pev_frame,
228 :     pev_animtime,
229 :     pev_framerate,
230 :     pev_scale,
231 :     pev_renderamt,
232 :     pev_health,
233 :     pev_frags,
234 :     pev_takedamage,
235 :     pev_max_health,
236 :     pev_teleport_time,
237 :     pev_armortype,
238 :     pev_armorvalue,
239 :     pev_dmg_take,
240 :     pev_dmg_save,
241 :     pev_dmg,
242 :     pev_dmgtime,
243 :     pev_speed,
244 :     pev_air_finished,
245 :     pev_pain_finished,
246 :     pev_radsuit_finished,
247 :     pev_maxspeed,
248 :     pev_fov,
249 :     pev_flFallVelocity,
250 :     pev_fuser1,
251 :     pev_fuser2,
252 :     pev_fuser3,
253 :     pev_fuser4,
254 :     pev_float_end,
255 :     pev_int_start,
256 :     pev_fixangle,
257 :     pev_modelindex,
258 :     pev_viewmodel,
259 :     pev_weaponmodel,
260 :     pev_movetype,
261 :     pev_solid,
262 :     pev_skin,
263 :     pev_body,
264 :     pev_effects,
265 :     pev_light_level,
266 :     pev_sequence,
267 :     pev_gaitsequence,
268 :     pev_rendermode,
269 :     pev_renderfx,
270 :     pev_weapons,
271 :     pev_deadflag,
272 :     pev_button,
273 :     pev_impulse,
274 :     pev_spawnflags,
275 :     pev_flags,
276 :     pev_colormap,
277 :     pev_team,
278 :     pev_waterlevel,
279 :     pev_watertype,
280 :     pev_playerclass,
281 :     pev_weaponanim,
282 :     pev_pushmsec,
283 :     pev_bInDuck,
284 :     pev_flTimeStepSound,
285 :     pev_flSwimTime,
286 :     pev_flDuckTime,
287 :     pev_iStepLeft,
288 :     pev_gamestate,
289 :     pev_oldbuttons,
290 :     pev_groupinfo,
291 :     pev_iuser1,
292 :     pev_iuser2,
293 :     pev_iuser3,
294 :     pev_iuser4,
295 :     pev_int_end,
296 :     pev_byte_start,
297 :     pev_controller_0,
298 :     pev_controller_1,
299 :     pev_controller_2,
300 :     pev_controller_3,
301 :     pev_blending_0,
302 :     pev_blending_1,
303 :     pev_byte_end,
304 :     pev_bytearray_start,
305 :     pev_controller,
306 :     pev_blending,
307 :     pev_bytearray_end,
308 :     pev_vecarray_start,
309 :     pev_origin,
310 :     pev_oldorigin,
311 :     pev_velocity,
312 :     pev_basevelocity,
313 :     pev_clbasevelocity,
314 :     pev_movedir,
315 :     pev_angles,
316 :     pev_avelocity,
317 :     pev_v_angle,
318 :     pev_endpos,
319 :     pev_startpos,
320 :     pev_absmin,
321 :     pev_absmax,
322 :     pev_mins,
323 :     pev_maxs,
324 :     pev_size,
325 :     pev_rendercolor,
326 :     pev_view_ofs,
327 :     pev_vuser1,
328 :     pev_vuser2,
329 :     pev_vuser3,
330 :     pev_vuser4,
331 :     pev_punchangle,
332 :     pev_vecarray_end,
333 :     pev_string2_begin, /* anything after here are string corrections */
334 :     pev_weaponmodel2,
335 :     pev_viewmodel2,
336 :     pev_string2_end,
337 :     pev_edict2_start, /* edict corrections */
338 :     pev_pContainingEntity,
339 :     pev_absolute_end
340 :     };
341 :    
342 :     /* Used with global_get()
343 :     */
344 :     enum
345 :     {
346 :     glb_start_int = 0,
347 :     glb_trace_hitgroup,
348 :     glb_trace_flags,
349 :     glb_msg_entity,
350 :     glb_cdAudioTrack,
351 :     glb_maxClients,
352 :     glb_maxEntities,
353 :     glb_end_int,
354 :     glb_start_float,
355 :     glb_time,
356 :     glb_frametime,
357 :     glb_force_retouch,
358 :     glb_deathmatch,
359 :     glb_coop,
360 :     glb_teamplay,
361 :     glb_serverflags,
362 :     glb_found_secrets,
363 :     glb_trace_allsolid,
364 :     glb_trace_startsolid,
365 :     glb_trace_fraction,
366 :     glb_trace_plane_dist,
367 :     glb_trace_inopen,
368 :     glb_trace_inwater,
369 :     glb_end_float,
370 :     glb_start_edict,
371 :     glb_trace_ent,
372 :     glb_end_edict,
373 :     glb_start_vector,
374 :     glb_v_forward,
375 :     glb_v_up,
376 :     glb_v_right,
377 :     glb_trace_endpos,
378 :     glb_trace_plane_normal,
379 :     glb_vecLandmarkOffset,
380 :     glb_end_vector,
381 :     glb_start_string,
382 :     glb_mapname,
383 :     glb_startspot,
384 :     glb_end_string,
385 :     glb_start_pchar,
386 :     glb_pStringBase,
387 :     glb_end_pchar
388 :     };
389 :    
390 :     /* Used with register_forward()
391 :     */
392 :     enum {
393 :     FM_PrecacheModel = 1,
394 :     FM_PrecacheSound,
395 :     FM_SetModel,
396 :     FM_ModelIndex,
397 :     FM_ModelFrames,
398 :     FM_SetSize,
399 :     FM_ChangeLevel,
400 :     FM_VecToYaw,
401 :     FM_VecToAngles,
402 :     FM_MoveToOrigin,
403 :     FM_ChangeYaw,
404 :     FM_ChangePitch,
405 :     FM_FindEntityByString,
406 :     FM_GetEntityIllum,
407 :     FM_FindEntityInSphere,
408 :     FM_FindClientInPVS,
409 :     FM_EntitiesInPVS,
410 :     FM_MakeVectors,
411 :     FM_AngleVectors,
412 :     FM_CreateEntity,
413 :     FM_RemoveEntity,
414 :     FM_CreateNamedEntity,
415 :     FM_MakeStatic,
416 :     FM_EntIsOnFloor,
417 :     FM_DropToFloor,
418 :     FM_WalkMove,
419 :     FM_SetOrigin,
420 :     FM_EmitSound,
421 :     FM_EmitAmbientSound,
422 :     FM_TraceLine,
423 :     FM_TraceToss,
424 :     FM_TraceMonsterHull,
425 :     FM_TraceHull,
426 :     FM_TraceModel,
427 :     FM_TraceTexture,
428 :     FM_TraceSphere,
429 :     FM_GetAimVector,
430 :     FM_ParticleEffect,
431 :     FM_LightStyle,
432 :     FM_DecalIndex,
433 :     FM_PointContents,
434 :     FM_MessageBegin,
435 :     FM_MessageEnd,
436 :     FM_WriteByte,
437 :     FM_WriteChar,
438 :     FM_WriteShort,
439 :     FM_WriteLong,
440 :     FM_WriteAngle,
441 :     FM_WriteCoord,
442 :     FM_WriteString,
443 :     FM_WriteEntity,
444 :     FM_CVarGetFloat,
445 :     FM_CVarGetString,
446 :     FM_CVarSetFloat,
447 :     FM_CVarSetString,
448 :     FM_FreeEntPrivateData,
449 :     FM_SzFromIndex,
450 :     FM_AllocString,
451 :     FM_RegUserMsg,
452 :     FM_AnimationAutomove,
453 :     FM_GetBonePosition,
454 :     FM_GetAttachment,
455 :     FM_SetView,
456 :     FM_Time,
457 :     FM_CrosshairAngle,
458 :     FM_FadeClientVolume,
459 :     FM_SetClientMaxspeed,
460 :     FM_CreateFakeClient,
461 :     FM_RunPlayerMove,
462 :     FM_NumberOfEntities,
463 :     FM_StaticDecal,
464 :     FM_PrecacheGeneric,
465 :     FM_BuildSoundMsg,
466 :     FM_GetPhysicsKeyValue,
467 :     FM_SetPhysicsKeyValue,
468 :     FM_GetPhysicsInfoString,
469 :     FM_PrecacheEvent,
470 :     FM_PlaybackEvent,
471 :     FM_CheckVisibility,
472 :     FM_GetCurrentPlayer,
473 :     FM_CanSkipPlayer,
474 :     FM_SetGroupMask,
475 :     FM_Voice_GetClientListening,
476 :     FM_Voice_SetClientListening,
477 :     FM_InfoKeyValue,
478 :     FM_SetKeyValue,
479 :     FM_SetClientKeyValue,
480 :     FM_GetPlayerAuthId,
481 :     FM_GetPlayerWONId,
482 :     FM_IsMapValid,
483 :    
484 :     FM_Spawn,
485 :     FM_Think,
486 :     FM_Use,
487 :     FM_Touch,
488 :     FM_Blocked,
489 :     FM_KeyValue,
490 :     FM_SetAbsBox,
491 :     FM_ClientConnect,
492 :    
493 :     FM_ClientDisconnect,
494 :     FM_ClientKill,
495 :     FM_ClientPutInServer,
496 :     FM_ClientCommand,
497 :    
498 :     FM_ServerDeactivate,
499 :    
500 :     FM_PlayerPreThink,
501 :     FM_PlayerPostThink,
502 :    
503 :     FM_StartFrame,
504 :     FM_ParmsNewLevel,
505 :     FM_ParmsChangeLevel,
506 :    
507 :     // Returns string describing current .dll. E.g., TeamFotrress 2, Half-Life
508 :     // This also gets called when the server is queried for information (for example, by a server browser tool)
509 :     FM_GetGameDescription,
510 :    
511 :     // Spectator funcs
512 :     FM_SpectatorConnect,
513 :     FM_SpectatorDisconnect,
514 :     FM_SpectatorThink,
515 :    
516 :     // Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint.
517 :     FM_Sys_Error,
518 :    
519 :     FM_PM_FindTextureType,
520 :     FM_RegisterEncoders,
521 :    
522 :     // Create baselines for certain "unplaced" items.
523 :     FM_CreateInstBaselines,
524 :    
525 :     FM_AllowLagCompensation,
526 :     FM_AlertMessage,
527 :    
528 :     // NEW_DLL_FUNCTIONS:
529 :     FM_OnFreeEntPrivateData,
530 :     FM_GameShutdown,
531 :     FM_ShouldCollide,
532 :    
533 : ian 17 // LATE ADDITIONS (v1.71)
534 : ian 1 FM_ClientUserInfoChanged,
535 :    
536 :     // LATE ADDITIONS (v1.75)
537 :     FM_UpdateClientData,
538 :     FM_AddToFullPack,
539 :     FM_CmdStart,
540 :     FM_CmdEnd,
541 :     FM_CreateInstBaseline,
542 :     FM_CreateBaseline,
543 :     FM_GetInfoKeyBuffer,
544 : ian 17 FM_ClientPrintf,
545 :    
546 :     // LATE ADDITIONS (v1.80)
547 :     FM_ServerPrint
548 : ian 1 };
549 :    
550 :     enum TraceResult
551 :     {
552 :     TR_AllSolid, // int
553 :     TR_StartSolid, // int
554 :     TR_InOpen, // int
555 :     TR_InWater, // int
556 :     TR_flFraction, // float
557 :     TR_vecEndPos, // float array[3]
558 :     TR_flPlaneDist, // float
559 :     TR_vecPlaneNormal, // float array[3]
560 :     TR_pHit, // int (edict_t*)
561 :     TR_iHitgroup, // int
562 :     };
563 :    
564 :     enum KeyValueData
565 :     {
566 :     KV_ClassName, // string
567 :     KV_KeyName, // string
568 :     KV_Value, // string
569 :     KV_fHandled // int
570 :     };
571 :    
572 :     enum ClientData
573 :     {
574 :     CD_Origin, // float array[3]
575 :     CD_Velocity, // float array[3]
576 :     CD_ViewModel, // int
577 :     CD_PunchAngle, // float array[3]
578 :     CD_Flags, // int
579 :     CD_WaterLevel, // int
580 :     CD_WaterType, // int
581 :     CD_ViewOfs, // float array[3]
582 :     CD_Health, // float
583 :     CD_bInDuck, // int
584 :     CD_Weapons, // int
585 :     CD_flTimeStepSound, // int
586 :     CD_flDuckTime, // int
587 :     CD_flSwimTime, // int
588 :     CD_WaterJumpTime, // int
589 :     CD_MaxSpeed, // float
590 :     CD_FOV, // float
591 :     CD_WeaponAnim, // int
592 :     CD_ID, // int
593 :     CD_AmmoShells, // int
594 :     CD_AmmoNails, // int
595 :     CD_AmmoCells, // int
596 :     CD_AmmoRockets, // int
597 :     CD_flNextAttack, // float
598 :     CD_tfState, // int
599 :     CD_PushMsec, // int
600 :     CD_DeadFlag, // int
601 :     CD_PhysInfo, // string[256]
602 :     CD_iUser1, // int
603 :     CD_iUser2, // int
604 :     CD_iUser3, // int
605 :     CD_iUser4, // int
606 :     CD_fUser1, // float
607 :     CD_fUser2, // float
608 :     CD_fUser3, // float
609 :     CD_fUser4, // float
610 :     CD_vUser1, // float array[3]
611 :     CD_vUser2, // float array[3]
612 :     CD_vUser3, // float array[3]
613 :     CD_vUser4 // float array[3]
614 :     };
615 :    
616 :     enum EntityState
617 :     {
618 :     // Fields which are filled in by routines outside of delta compression
619 :     ES_EntityType, // int
620 :     // Index into cl_entities array for this entity
621 :     ES_Number, // int
622 :     ES_MsgTime, // float
623 :    
624 :     // Message number last time the player/entity state was updated
625 :     ES_MessageNum, // int
626 :    
627 :     // Fields which can be transitted and reconstructed over the network stream
628 :     ES_Origin, // float array[3]
629 :     ES_Angles, // float array[3]
630 :    
631 :     ES_ModelIndex, // int
632 :     ES_Sequence, // int
633 :     ES_Frame, // float
634 :     ES_ColorMap, // int
635 :     ES_Skin, // short
636 :     ES_Solid, // short
637 :     ES_Effects, // int
638 :     ES_Scale, // float
639 :     ES_eFlags, // byte
640 :    
641 :     // Render information
642 :     ES_RenderMode, // int
643 :     ES_RenderAmt, // int
644 :     ES_RenderColor, // byte array[3], RGB value
645 :     ES_RenderFx, // int
646 :    
647 :     ES_MoveType, // int
648 :     ES_AnimTime, // float
649 :     ES_FrameRate, // float
650 :     ES_Body, // int
651 :     ES_Controller, // byte array[4]
652 :     ES_Blending, // byte array[4]
653 :     ES_Velocity, // float array[3]
654 :    
655 :     // Send bbox down to client for use during prediction
656 :     ES_Mins, // float array[3]
657 :     ES_Maxs, // float array[3]
658 :    
659 :     ES_AimEnt, // int
660 :     // If owned by a player, the index of that player (for projectiles)
661 :     ES_Owner, // int
662 :    
663 :     // Friction, for prediction
664 :     ES_Friction, // float
665 :     // Gravity multiplier
666 :     ES_Gravity, // float
667 :    
668 :     // PLAYER SPECIFIC
669 :     ES_Team, // int
670 :     ES_PlayerClass, // int
671 :     ES_Health, // int
672 :     ES_Spectator, // bool
673 :     ES_WeaponModel, // int
674 :     ES_GaitSequence, // int
675 :     // If standing on conveyor, e.g.
676 :     ES_BaseVelocity, // float array[3]
677 :     // Use the crouched hull, or the regular player hull
678 :     ES_UseHull, // int
679 :     // Latched buttons last time state updated
680 :     ES_OldButtons, // int
681 :     // -1 = in air, else pmove entity number
682 :     ES_OnGround, // int
683 :     ES_iStepLeft, // int
684 :     // How fast we are falling
685 :     ES_flFallVelocity, // float
686 :    
687 :     ES_FOV, // float
688 :     ES_WeaponAnim, // int
689 :    
690 :     // Parametric movement overrides
691 :     ES_StartPos, // float array[3]
692 :     ES_EndPos, // float array[3]
693 :     ES_ImpactTime, // float
694 :     ES_StartTime, // float
695 :    
696 :     // For mods
697 :     ES_iUser1, // int
698 :     ES_iUser2, // int
699 :     ES_iUser3, // int
700 :     ES_iUser4, // int
701 :     ES_fUser1, // float
702 :     ES_fUser2, // float
703 :     ES_fUser3, // float
704 :     ES_fUser4, // float
705 :     ES_vUser1, // float array[3]
706 :     ES_vUser2, // float array[3]
707 :     ES_vUser3, // float array[3]
708 :     ES_vUser4 // float array[3]
709 :     };
710 :    
711 :     enum UserCmd
712 :     {
713 :     // Interpolation time on client
714 :     UC_LerpMsec, // short
715 :     // Duration in ms of command
716 :     UC_Msec, // byte
717 :     // Command view angles
718 :     UC_ViewAngles, // float array[3]
719 :    
720 :     // Intended velocities
721 :     // Forward velocity
722 :     UC_ForwardMove, // float
723 :     // Sideways velocity
724 :     UC_SideMove, // float
725 :     // Upward velocity
726 :     UC_UpMove, // float
727 :     // Light level at spot where we are standing
728 :     UC_LightLevel, // byte
729 :     // Attack buttons
730 :     UC_Buttons, // unsigned short
731 :     // Impulse command issued
732 :     UC_Impulse, // byte
733 :     // Current weapon id
734 :     UC_WeaponSelect, // byte
735 :    
736 :     // Experimental player impact stuff
737 :     UC_ImpactIndex, // int
738 :     UC_ImpactPosition // float array[3]
739 :     };
740 :    
741 :     enum AlertType
742 :     {
743 :     at_notice = 0,
744 :     at_console, // same as at_notice, but forces a ConPrintf, not a message box
745 :     at_aiconsole, // same as at_console, but only shown if developer level is 2!
746 :     at_warning,
747 :     at_error,
748 :     at_logged // Server print to console (only in multiplayer games)
749 :     };

Contact
ViewVC Help
Powered by ViewVC 1.0.4