2 #include "Quaternions.h"
13 #include "TGALoader.h"
15 #include "Constants.h"
21 bool visibleloading = 0;
22 FSOUND_SAMPLE *samp[100] = {0};
23 FSOUND_STREAM * strm[20] = {0};
24 int channels[100] = {0};
26 float volume = 0;bool buttons[3] = {0};
27 bool oldbuttons[3] = {0};
28 bool ismotionblur = 0;
29 float usermousesensitivity = 0;
37 float targetblurness = 0;
39 float precipdelay = 0;
41 float oldgamespeed = 0;
42 float tintr = 0,tintg = 0,tintb = 0;
45 float realmultiplier = 0;
46 float screenwidth = 0,screenheight = 0;
47 float viewdistance = 0;
56 Animation animation[animation_count];
57 Skeleton testskeleton;
65 SDL_Surface *sdlscreen;
67 AGLContext gaglContext;
69 #error Define your platform.
75 float realtexdetail = 0;
76 float terraindetail = 0;
81 GLubyte bloodText[512*512*3] = {0};
82 GLubyte wolfbloodText[512*512*3] = {0};
83 float colors[3] = {0};
86 float camerashake = 0;
93 bool damageeffects = 0;
94 //apvector<Person> player(maxplayers);
95 Person player[maxplayers];
97 bool ambientsound = 0;
101 float flashamount = 0,flashr = 0,flashg = 0,flashb = 0;
104 float motionbluramount = 0;
105 bool keyboardfrozen = 0;
106 int newnetmessages = 0;
107 char netmessages[256] = {0};
108 char mapname[256] = {0};
109 bool loadingstuff = 0;
110 bool stillloading = 0;
114 bool velocityblur = 0;
121 GLubyte texturearray[512*512*3] = {0};
122 int loadscreencolor = 0;
123 int whichjointstartarray[26] = {0};
124 int whichjointendarray[26] = {0};
125 int kBitsPerPixel = 0;
129 int hotspottype[40] = {0};
130 float hotspotsize[40] = {0};
131 char hotspottext[40][256] = {0};
132 int currenthotspot = 0;
139 int numdialogues = 0;
140 int numdialogueboxes[max_dialogues] = {0};
141 int dialoguetype[max_dialogues] = {0};
142 int dialogueboxlocation[max_dialogues][max_dialoguelength] = {0};
143 float dialogueboxcolor[max_dialogues][max_dialoguelength][3] = {0};
144 int dialogueboxsound[max_dialogues][max_dialoguelength] = {0};
145 char dialoguetext[max_dialogues][max_dialoguelength][128] = {0};
146 char dialoguename[max_dialogues][max_dialoguelength][64] = {0};
147 XYZ dialoguecamera[max_dialogues][max_dialoguelength]; //l = {0};
148 XYZ participantlocation[max_dialogues][10]; // = {0};
149 int participantfocus[max_dialogues][max_dialoguelength] = {0};
150 int participantaction[max_dialogues][max_dialoguelength] = {0};
151 float participantrotation[max_dialogues][10] = {0};
152 XYZ participantfacing[max_dialogues][max_dialoguelength][10]; // = {0};
153 float dialoguecamerarotation[max_dialogues][max_dialoguelength] = {0};
154 float dialoguecamerarotation2[max_dialogues][max_dialoguelength] = {0};
156 int whichdialogue = 0;
158 float dialoguetime = 0;
159 int dialoguegonethrough[20] = {0};
163 float slomospeed = 0;
166 int tutoriallevel = 0;
167 int tutorialstage = 0;
168 float tutorialstagetime = 0;
169 float tutorialmaxtime = 0;
170 float tutorialsuccess = 0;
174 float damagedealt = 0;
175 float damagetaken = 0;
179 int editoractive = 0;
180 int editorpathtype = 0;
182 bool reversaltrain = 0;
186 bool skyboxtexture = 0;
190 float skyboxlightr = 0;
191 float skyboxlightg = 0;
192 float skyboxlightb = 0;
194 float bonusnum[100] = {0};
197 float hostiletime = 0;
199 XYZ envsound[30]; // = {0};
200 float envsoundvol[30] = {0};
201 float envsoundlife[30] = {0};
208 bool proportionweird = 0;
209 bool vertexweird[6] = {0};
215 float bonusvalue = 0;
216 float bonustotal = 0;
217 float startbonustotal = 0;
221 int accountactive = 0;
222 int accountdifficulty[10] = {0};
223 int accountprogress[10] = {0};
224 float accountpoints[10] = {0};
225 float accounthighscore[10][50] = {0};
226 float accountfasttime[10][50] = {0};
227 bool accountunlocked[10][60] = {0};
228 char accountname[10][256] = {0};
229 float accountcampaignhighscore[10] = {0};
230 float accountcampaignfasttime[10] = {0};
231 float accountcampaignscore[10] = {0};
232 float accountcampaigntime[10] = {0};
233 int accountcampaignchoicesmade[10] = {0};int accountcampaignchoices[10][5000] = {0};
242 int numresponded = 0;
243 int numstaffattack = 0;
244 int numswordattack = 0;
245 int numknifeattack = 0;
246 int numunarmedattack = 0;
249 int numwallflipped = 0;
250 int numthrowkill = 0;
251 int numafterkill = 0;
252 int numreversals = 0;
256 bool gamestarted = 0;
258 //TextureList textures;