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

Annotation of /include/engine_const.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (view) (download)

1 : ian 1 /* Engine 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 _engine_const_included
9 :     #endinput
10 :     #endif
11 :     #define _engine_const_included
12 :    
13 :     #include <hlsdk_const>
14 :    
15 :     #define SPEAK_NORMAL 0
16 :     #define SPEAK_MUTED 1
17 :     #define SPEAK_ALL 2
18 :     #define SPEAK_LISTENALL 4
19 :    
20 :     #define CAMERA_NONE 0
21 :     #define CAMERA_3RDPERSON 1
22 :     #define CAMERA_UPLEFT 2
23 :     #define CAMERA_TOPDOWN 3
24 :    
25 :     /* Int */
26 :     enum {
27 :     EV_INT_gamestate = 0,
28 :     EV_INT_oldbuttons,
29 :     EV_INT_groupinfo,
30 :     EV_INT_iuser1,
31 :     EV_INT_iuser2,
32 :     EV_INT_iuser3,
33 :     EV_INT_iuser4,
34 :     EV_INT_weaponanim,
35 :     EV_INT_pushmsec,
36 :     EV_INT_bInDuck,
37 :     EV_INT_flTimeStepSound,
38 :     EV_INT_flSwimTime,
39 :     EV_INT_flDuckTime,
40 :     EV_INT_iStepLeft,
41 :     EV_INT_movetype,
42 :     EV_INT_solid,
43 :     EV_INT_skin,
44 :     EV_INT_body,
45 :     EV_INT_effects,
46 :     EV_INT_light_level,
47 :     EV_INT_sequence,
48 :     EV_INT_gaitsequence,
49 :     EV_INT_modelindex,
50 :     EV_INT_playerclass,
51 :     EV_INT_waterlevel,
52 :     EV_INT_watertype,
53 :     EV_INT_spawnflags,
54 :     EV_INT_flags,
55 :     EV_INT_colormap,
56 :     EV_INT_team,
57 :     EV_INT_fixangle,
58 :     EV_INT_weapons,
59 :     EV_INT_rendermode,
60 :     EV_INT_renderfx,
61 :     EV_INT_button,
62 :     EV_INT_impulse,
63 :     EV_INT_deadflag,
64 : ian 17 };
65 : ian 1
66 :     /* Float */
67 :     enum {
68 :     EV_FL_impacttime = 0,
69 :     EV_FL_starttime,
70 :     EV_FL_idealpitch,
71 :     EV_FL_pitch_speed,
72 :     EV_FL_ideal_yaw,
73 :     EV_FL_yaw_speed,
74 :     EV_FL_ltime,
75 :     EV_FL_nextthink,
76 :     EV_FL_gravity,
77 :     EV_FL_friction,
78 :     EV_FL_frame,
79 :     EV_FL_animtime,
80 :     EV_FL_framerate,
81 :     EV_FL_health,
82 :     EV_FL_frags,
83 :     EV_FL_takedamage,
84 :     EV_FL_max_health,
85 :     EV_FL_teleport_time,
86 :     EV_FL_armortype,
87 :     EV_FL_armorvalue,
88 :     EV_FL_dmg_take,
89 :     EV_FL_dmg_save,
90 :     EV_FL_dmg,
91 :     EV_FL_dmgtime,
92 :     EV_FL_speed,
93 :     EV_FL_air_finished,
94 :     EV_FL_pain_finished,
95 :     EV_FL_radsuit_finished,
96 :     EV_FL_scale,
97 :     EV_FL_renderamt,
98 :     EV_FL_maxspeed,
99 :     EV_FL_fov,
100 :     EV_FL_flFallVelocity,
101 :     EV_FL_fuser1,
102 :     EV_FL_fuser2,
103 :     EV_FL_fuser3,
104 :     EV_FL_fuser4,
105 : ian 17 };
106 : ian 1
107 :     /* Vector */
108 :     enum {
109 :     EV_VEC_origin = 0,
110 :     EV_VEC_oldorigin,
111 :     EV_VEC_velocity,
112 :     EV_VEC_basevelocity,
113 :     EV_VEC_clbasevelocity,
114 :     EV_VEC_movedir,
115 :     EV_VEC_angles,
116 :     EV_VEC_avelocity,
117 :     EV_VEC_punchangle,
118 :     EV_VEC_v_angle,
119 :     EV_VEC_endpos,
120 :     EV_VEC_startpos,
121 :     EV_VEC_absmin,
122 :     EV_VEC_absmax,
123 :     EV_VEC_mins,
124 :     EV_VEC_maxs,
125 :     EV_VEC_size,
126 :     EV_VEC_rendercolor,
127 :     EV_VEC_view_ofs,
128 :     EV_VEC_vuser1,
129 :     EV_VEC_vuser2,
130 :     EV_VEC_vuser3,
131 :     EV_VEC_vuser4,
132 : ian 17 };
133 : ian 1
134 :     /* Edict */
135 :     enum {
136 :     EV_ENT_chain = 0,
137 :     EV_ENT_dmg_inflictor,
138 :     EV_ENT_enemy,
139 :     EV_ENT_aiment,
140 :     EV_ENT_owner,
141 :     EV_ENT_groundentity,
142 :     EV_ENT_pContainingEntity,
143 :     EV_ENT_euser1,
144 :     EV_ENT_euser2,
145 :     EV_ENT_euser3,
146 :     EV_ENT_euser4,
147 : ian 17 };
148 : ian 1
149 :     /* String */
150 :     enum {
151 :     EV_SZ_classname = 0,
152 :     EV_SZ_globalname,
153 :     EV_SZ_model,
154 :     EV_SZ_target,
155 :     EV_SZ_targetname,
156 :     EV_SZ_netname,
157 :     EV_SZ_message,
158 :     EV_SZ_noise,
159 :     EV_SZ_noise1,
160 :     EV_SZ_noise2,
161 :     EV_SZ_noise3,
162 :     EV_SZ_viewmodel,
163 :     EV_SZ_weaponmodel,
164 : ian 17 };
165 : ian 1
166 :     /* Byte */
167 :     enum {
168 :     EV_BYTE_controller1 = 0,
169 :     EV_BYTE_controller2,
170 :     EV_BYTE_controller3,
171 :     EV_BYTE_controller4,
172 :     EV_BYTE_blending1,
173 :     EV_BYTE_blending2,
174 : ian 17 };
175 : ian 1
176 :     #if defined _jghg_enums
177 :     #endinput
178 :     #endif
179 :     #define _jghg_enums
180 :     enum {
181 :     // Edict
182 :     GL_trace_ent = 0,
183 :    
184 :     // Float
185 :     GL_coop,
186 :     GL_deathmatch,
187 :     GL_force_retouch,
188 :     GL_found_secrets,
189 :     GL_frametime,
190 :     GL_serverflags,
191 :     GL_teamplay,
192 :     GL_time,
193 :     GL_trace_allsolid,
194 :     GL_trace_fraction,
195 :     GL_trace_inopen,
196 :     GL_trace_inwater,
197 :     GL_trace_plane_dist,
198 :     GL_trace_startsolid,
199 :    
200 :     // Int
201 :     GL_cdAudioTrack,
202 :     GL_maxClients,
203 :     GL_maxEntities,
204 :     GL_msg_entity,
205 :     GL_trace_flags,
206 :     GL_trace_hitgroup,
207 :    
208 :     // String
209 :     GL_pStringBase,
210 :     GL_mapname,
211 :     GL_startspot,
212 :    
213 :     // Vector
214 :     GL_trace_endpos,
215 :     GL_trace_plane_normal,
216 :     GL_v_forward,
217 :     GL_v_right,
218 :     GL_v_up,
219 :     GL_vecLandmarkOffset,
220 :    
221 :     // Void (not supported)
222 :     GL_pSaveData
223 : ian 17 };
224 : ian 1
225 :     enum
226 :     {
227 :     usercmd_float_start,
228 :     usercmd_forwardmove, // Float
229 :     usercmd_sidemove, // Float
230 :     usercmd_upmove, // Float
231 :     usercmd_float_end,
232 :     usercmd_int_start,
233 :     usercmd_lerp_msec, // short
234 :     usercmd_msec, // byte
235 :     usercmd_lightlevel, // byte
236 :     usercmd_buttons, // unsigned short
237 :     usercmd_impulse, // byte
238 :     usercmd_weaponselect, // byte
239 :     usercmd_impact_index, // int
240 :     usercmd_int_end,
241 :     usercmd_vec_start,
242 :     usercmd_viewangles, // Vector
243 :     usercmd_impact_position, // vec
244 :     usercmd_vec_end
245 :     };
246 :    
247 :     // Used by the traceresult() native.
248 :     enum
249 :     {
250 :     TR_AllSolid, // (int) if true, plane is not valid
251 :     TR_StartSolid, // (int) if true, the initial point was in a solid area
252 :     TR_InOpen, // (int)
253 :     TR_InWater, // (int)
254 :     TR_Fraction, // (float) time completed, 1.0 = didn't hit anything
255 :     TR_EndPos, // (vector) final position
256 :     TR_PlaneDist, // (float)
257 :     TR_PlaneNormal, // (vector) surface normal at impact
258 :     TR_Hit, // (entity) entity the surface is on
259 :     TR_Hitgroup // (int) 0 == generic, non zero is specific body part
260 :     };
261 :    

Contact
ViewVC Help
Powered by ViewVC 1.0.4