]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/defs.c
add "lsmaps" alias
[divverent/nexuiz.git] / data / qcsrc / client / defs.c
1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
2
3
4 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
5 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
6 //YOU HAVE BEEN WARNED.
7
8 //feel free to look though. :)
9
10
11
12
13 #define CSQC 1
14
15 /*
16 ==============================================================================
17
18                         SOURCE FOR GLOBALVARS_T C STRUCTURE
19
20 ==============================================================================
21 */
22
23 //
24 // system globals
25 //
26 entity          self;
27 entity          other;
28 entity          world;
29 float           time;
30 float           frametime;
31
32 float           player_localentnum;     //the entnum
33 float           player_localnum;        //the playernum
34 float           maxclients;     //a constant filled in by the engine. gah, portability eh?
35
36 float           clientcommandframe;     //player movement
37 float           servercommandframe;     //clientframe echoed off the server
38
39 string          mapname;
40
41 //
42 // global variables set by built in functions
43 //
44 vector          v_forward, v_up, v_right;       // set by makevectors()
45
46 // set by traceline / tracebox
47 float           trace_allsolid;
48 float           trace_startsolid;
49 float           trace_fraction;
50 vector          trace_endpos;
51 vector          trace_plane_normal;
52 float           trace_plane_dist;
53 entity          trace_ent;
54 float           trace_inopen;
55 float           trace_inwater;
56
57 //
58 // required prog functions
59 //
60 void()          CSQC_Init;
61 void()          CSQC_Shutdown;
62 float(float f, float t) CSQC_InputEvent;
63 void()          CSQC_UpdateView;
64 void(string s)  CSQC_ConsoleCommand;
65
66
67 //these fields are read and set by the default player physics
68 vector          pmove_org;
69 vector          pmove_vel;
70 vector          pmove_mins;
71 vector          pmove_maxs;
72 //retrieved from the current movement commands (read by player physics)
73 float           input_timelength;
74 vector          input_angles;
75 vector          input_movevalues;       //forwards, right, up.
76 float           input_buttons;          //attack, use, jump (default physics only uses jump)
77
78 float           movevar_gravity;
79 float           movevar_stopspeed;
80 float           movevar_maxspeed;
81 float           movevar_spectatormaxspeed;      //used by NOCLIP movetypes.
82 float           movevar_accelerate;
83 float           movevar_airaccelerate;
84 float           movevar_wateraccelerate;
85 float           movevar_friction;
86 float           movevar_waterfriction;
87 float           movevar_entgravity;     //the local player's gravity field. Is a multiple (1 is the normal value)
88
89 //================================================
90 void            end_sys_globals;                // flag for structure dumping
91 //================================================
92
93 /*
94 ==============================================================================
95
96                         SOURCE FOR ENTVARS_T C STRUCTURE
97
98 ==============================================================================
99 */
100
101 //
102 // system fields (*** = do not set in prog code, maintained by C code)
103 //
104 .float          modelindex;             // *** model index in the precached list
105 .vector         absmin, absmax; // *** origin + mins / maxs
106
107 .float          entnum; // *** the ent number as on the server
108 .float          drawmask;
109 .void()         predraw;
110
111 .float          movetype;
112 .float          solid;
113
114 .vector         origin;                 // ***
115 .vector         oldorigin;              // ***
116 .vector         velocity;
117 .vector         angles;
118 .vector         avelocity;
119
120 .string         classname;              // spawn function
121 .string         model;
122 .float          frame;
123 .float          skin;
124 .float          effects;
125
126 .vector         mins, maxs;             // bounding box extents reletive to origin
127 .vector         size;                   // maxs - mins
128
129 .void()         touch;
130 .void()         use;
131 .void()         think;
132 .void()         blocked;                // for doors or plats, called when can't push other
133
134 .float          nextthink;
135
136 .entity         chain;
137
138 .string         netname;
139
140 .entity         enemy;
141
142 .float          flags;
143
144 .float          colormap;
145
146 .entity         owner;          // who launched a missile
147
148 //================================================
149 void            end_sys_fields;                 // flag for structure dumping
150 //================================================
151
152 .float alpha;
153 .float renderflags;