2 #include "Quaternions.h"
13 #include "TGALoader.h"
15 #include "Constants.h"
17 bool visibleloading = 0;
18 FSOUND_SAMPLE *samp[100] = {0};
19 FSOUND_STREAM * strm[20] = {0};
20 int channels[100] = {0};
22 float volume = 0;bool buttons[3] = {0};
23 bool oldbuttons[3] = {0};
24 bool ismotionblur = 0;
25 float usermousesensitivity = 0;
33 float targetblurness = 0;
35 float precipdelay = 0;
37 float oldgamespeed = 0;
38 float tintr = 0,tintg = 0,tintb = 0;
41 float realmultiplier = 0;
42 float screenwidth = 0,screenheight = 0;
43 float viewdistance = 0;
52 Animation animation[animation_count];
53 Skeleton testskeleton;
61 AGLContext gaglContext;
67 float realtexdetail = 0;
68 float terraindetail = 0;
73 GLubyte bloodText[512*512*3] = {0};
74 GLubyte wolfbloodText[512*512*3] = {0};
75 float colors[3] = {0};
78 float camerashake = 0;
85 bool damageeffects = 0;
86 //apvector<Person> player(maxplayers);
87 Person player[maxplayers];
89 bool ambientsound = 0;
93 float flashamount = 0,flashr = 0,flashg = 0,flashb = 0;
96 float motionbluramount = 0;
97 bool keyboardfrozen = 0;
98 int newnetmessages = 0;
99 char netmessages[256] = {0};
100 char mapname[256] = {0};
101 bool loadingstuff = 0;
102 bool stillloading = 0;
106 bool velocityblur = 0;
113 GLubyte texturearray[512*512*3] = {0};
114 int loadscreencolor = 0;
115 int whichjointstartarray[26] = {0};
116 int whichjointendarray[26] = {0};
117 int kBitsPerPixel = 0;
121 int hotspottype[40] = {0};
122 float hotspotsize[40] = {0};
123 char hotspottext[40][256] = {0};
124 int currenthotspot = 0;
131 int numdialogues = 0;
132 int numdialogueboxes[max_dialogues] = {0};
133 int dialoguetype[max_dialogues] = {0};
134 int dialogueboxlocation[max_dialogues][max_dialoguelength] = {0};
135 float dialogueboxcolor[max_dialogues][max_dialoguelength][3] = {0};
136 int dialogueboxsound[max_dialogues][max_dialoguelength] = {0};
137 char dialoguetext[max_dialogues][max_dialoguelength][128] = {0};
138 char dialoguename[max_dialogues][max_dialoguelength][64] = {0};
139 XYZ dialoguecamera[max_dialogues][max_dialoguelength] = {0};
140 XYZ participantlocation[max_dialogues][10] = {0};
141 int participantfocus[max_dialogues][max_dialoguelength] = {0};
142 int participantaction[max_dialogues][max_dialoguelength] = {0};
143 float participantrotation[max_dialogues][10] = {0};
144 XYZ participantfacing[max_dialogues][max_dialoguelength][10] = {0};
145 float dialoguecamerarotation[max_dialogues][max_dialoguelength] = {0};
146 float dialoguecamerarotation2[max_dialogues][max_dialoguelength] = {0};
148 int whichdialogue = 0;
150 float dialoguetime = 0;
151 int dialoguegonethrough[20] = {0};
155 float slomospeed = 0;
158 int tutoriallevel = 0;
159 int tutorialstage = 0;
160 float tutorialstagetime = 0;
161 float tutorialmaxtime = 0;
162 float tutorialsuccess = 0;
166 float damagedealt = 0;
167 float damagetaken = 0;
171 int editoractive = 0;
172 int editorpathtype = 0;
174 bool reversaltrain = 0;
178 bool skyboxtexture = 0;
182 float skyboxlightr = 0;
183 float skyboxlightg = 0;
184 float skyboxlightb = 0;
186 float bonusnum[100] = {0};
189 float hostiletime = 0;
191 XYZ envsound[30] = {0};
192 float envsoundvol[30] = {0};
193 float envsoundlife[30] = {0};
200 bool proportionweird = 0;
201 bool vertexweird[6] = {0};
207 float bonusvalue = 0;
208 float bonustotal = 0;
209 float startbonustotal = 0;
213 int accountactive = 0;
214 int accountdifficulty[10] = {0};
215 int accountprogress[10] = {0};
216 float accountpoints[10] = {0};
217 float accounthighscore[10][50] = {0};
218 float accountfasttime[10][50] = {0};
219 bool accountunlocked[10][60] = {0};
220 char accountname[10][256] = {0};
221 float accountcampaignhighscore[10] = {0};
222 float accountcampaignfasttime[10] = {0};
223 float accountcampaignscore[10] = {0};
224 float accountcampaigntime[10] = {0};
225 int accountcampaignchoicesmade[10] = {0};int accountcampaignchoices[10][5000] = {0};
234 int numresponded = 0;
235 int numstaffattack = 0;
236 int numswordattack = 0;
237 int numknifeattack = 0;
238 int numunarmedattack = 0;
241 int numwallflipped = 0;
242 int numthrowkill = 0;
243 int numafterkill = 0;
244 int numreversals = 0;
248 bool gamestarted = 0;
250 //TextureList textures;