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