Skip to content
Permalink
Browse files

Improve documentation in engine_const.inc (#665)

  • Loading branch information...
voed authored and Arkshine committed Feb 11, 2019
1 parent 2bc0423 commit b3980d2e5df02d87000f6bba92081b052e74b94d
Showing with 51 additions and 40 deletions.
  1. +51 −40 plugins/include/engine_const.inc
@@ -12,7 +12,7 @@
//

#if defined _engine_const_included
#endinput
#endinput
#endif
#define _engine_const_included

@@ -212,54 +212,63 @@ enum {
*/

#if defined _jghg_enums
#endinput
#endinput
#endif
#define _jghg_enums

/**
* Used by get_global_[edict/float/int/string/vector]()
*/
enum {
// Edict
GL_trace_ent = 0,

// Float
GL_coop,
GL_deathmatch,
GL_force_retouch,
GL_found_secrets,
GL_frametime,
GL_serverflags,
GL_teamplay,
GL_time,
GL_trace_allsolid,
GL_trace_fraction,
GL_trace_inopen,
GL_trace_inwater,
GL_trace_plane_dist,
GL_trace_startsolid,
// Edict
GL_trace_ent = 0,

// Int
GL_cdAudioTrack,
GL_maxClients,
GL_maxEntities,
GL_msg_entity,
GL_trace_flags,
GL_trace_hitgroup,
// Float
GL_coop,
GL_deathmatch,
GL_force_retouch,
GL_found_secrets,
GL_frametime,
GL_serverflags,
GL_teamplay,
GL_time,
GL_trace_allsolid,
GL_trace_fraction,
GL_trace_inopen,
GL_trace_inwater,
GL_trace_plane_dist,
GL_trace_startsolid,

// String
GL_pStringBase,
GL_mapname,
GL_startspot,
// Int
GL_cdAudioTrack,
GL_maxClients,
GL_maxEntities,
GL_msg_entity,
GL_trace_flags,
GL_trace_hitgroup,

// Vector
GL_trace_endpos,
GL_trace_plane_normal,
GL_v_forward,
GL_v_right,
GL_v_up,
GL_vecLandmarkOffset,
// String
GL_pStringBase,
GL_mapname,
GL_startspot,

// Void (not supported)
GL_pSaveData
// Vector
GL_trace_endpos,
GL_trace_plane_normal,
GL_v_forward,
GL_v_right,
GL_v_up,
GL_vecLandmarkOffset,

// Void (not supported)
GL_pSaveData
};


/**
* Used by [get/set]_usercmd()
*/
enum
{
usercmd_float_start,
@@ -282,7 +291,9 @@ enum
usercmd_vec_end
};

// Used by the traceresult() native.
/**
* Used by the traceresult()
*/
enum
{
TR_AllSolid, // (int) if true, plane is not valid

0 comments on commit b3980d2

Please sign in to comment.
You can’t perform that action at this time.