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