extern Light light;
extern Terrain terrain;
extern float multiplier;
-extern float sps;
extern float viewdistance;
extern float fadestart;
extern float screenwidth, screenheight;
extern float motionbluramount;
extern bool isclient;
extern bool alwaysblur;
-extern int test;
-extern bool tilt2weird;
-extern bool tiltweird;
-extern bool midweird;
-extern bool proportionweird;
-extern bool vertexweird[6];
extern bool velocityblur;
extern bool debugmode;
extern int mainmenu;
extern bool campaign;
extern bool winfreeze;
-extern float menupulse;
-
extern bool gamestart;
extern bool gamestarted;
glEnable(GL_COLOR_MATERIAL);
- test = 2;
- tilt2weird = 0;
- tiltweird = 0;
- midweird = 0;
- proportionweird = 0;
- vertexweird[0] = 0;
- vertexweird[1] = 0;
- vertexweird[2] = 0;
- vertexweird[3] = 0;
- vertexweird[4] = 0;
- vertexweird[5] = 0;
-
if (!cellophane) {
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_CULL_FACE);
extern float screenwidth, screenheight;
extern float viewdistance;
extern XYZ viewer;
-extern XYZ lightlocation;
extern float fadestart;
extern float texscale;
extern float gravity;
extern Light light;
-extern Skeleton testskeleton;
-extern int numsounds;
extern Terrain terrain;
extern int kTextureSize;
extern float texdetail;
extern int netdatanew;
extern float mapinfo;
extern bool stillloading;
-extern short vRefNum;
-extern long dirID;
extern int mainmenu;
extern bool visibleloading;
extern float flashamount, flashr, flashg, flashb;
text->BuildFont();
texdetail = temptexdetail;
- numsounds = 71;
-
viewdistdetail = 2;
viewdistance = 50 * megascale * viewdistdetail;
extern bool mousejump;
extern float viewdistance;
extern bool freeze;
-extern bool keyboardfrozen;
-extern bool loadingstuff;
extern XYZ windvector;
extern bool debugmode;
static int leveltheme;
tutorialstagetime = 0;
tutorialmaxtime = 1;
}
- loadingstuff = 1;
pause_sound(whooshsound);
pause_sound(stream_firesound);
perror("Problem");
}
leveltime = 0;
- loadingstuff = 0;
visibleloading = 0;
}
displaytime[i] += multiplier;
}
- keyboardfrozen = false;
Input::Tick();
if (Input::isKeyPressed(SDL_SCANCODE_F6)) {
float viewdistance = 0;
XYZ viewer;
XYZ viewerfacing;
-XYZ lightlocation;
float fadestart = 0;
int environment = 0;
float texscale = 0;
float gravity = 0;
Light light;
Animation animation[animation_count];
-Skeleton testskeleton;
-int numsounds = 0;
Terrain terrain;
-float sps = 0;
SDL_Window *sdlwindow;
float slomodelay = 0;
GLubyte bloodText[512 * 512 * 3] = {0};
GLubyte wolfbloodText[512 * 512 * 3] = {0};
-float colors[3] = {0};
int bloodtoggle = 0;
float camerashake = 0;
float woozy = 0;
bool winfreeze = false;
float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
int flashdelay = 0;
-bool vblsync = false;
float motionbluramount = 0;
-bool keyboardfrozen = false;
-bool loadingstuff = false;
bool stillloading = false;
bool showpoints = false;
bool showdamagebar = false;
bool alwaysblur = false;
bool immediate = false;
bool velocityblur = false;
-int test = 0;
XYZ windvector;
-short vRefNum = 0;
-long dirID = 0;
int mainmenu = 0;
int whichjointstartarray[26] = {0};
int whichjointendarray[26] = {0};
-int kBitsPerPixel = 0;
int numhotspots = 0;
XYZ hotspot[40];
int currenthotspot = 0;
int killhotspot = 0;
-float menupulse = 0;
-
float smoketex = 0;
float slomospeed = 0;
float envsoundlife[30] = {0};
int numenvsounds;
-
-bool tilt2weird = false;
-bool tiltweird = false;
-bool midweird = false;
-bool proportionweird = false;
-bool vertexweird[6] = {0};
bool debugmode = false;
-
bool campaign = false;
bool gamestarted = false;
/**> HEADER FILES <**/
#include "Input.h"
-extern bool keyboardfrozen;
-
bool keyDown[SDL_NUM_SCANCODES + 6];
bool keyPressed[SDL_NUM_SCANCODES + 6];
bool Input::isKeyDown(int k)
{
- if (keyboardfrozen || k >= SDL_NUM_SCANCODES + 6) // really useful? check that.
+ if (k >= SDL_NUM_SCANCODES + 6) // really useful? check that.
return false;
return keyDown[k];
}
bool Input::isKeyPressed(int k)
{
- if (keyboardfrozen || k >= SDL_NUM_SCANCODES + 6)
+ if (k >= SDL_NUM_SCANCODES + 6)
return false;
return keyPressed[k];
}
extern int flashdelay;
extern bool showpoints;
extern bool immediate;
-extern int test;
-extern bool tilt2weird;
-extern bool tiltweird;
-extern bool midweird;
-extern bool proportionweird;
-extern bool vertexweird[6];
extern XYZ envsound[30];
extern float envsoundvol[30];
extern float envsoundlife[30];
newscreenwidth = kContextWidth = 1024;
newscreenheight = kContextHeight = 768;
fullscreen = 0;
- kBitsPerPixel = 32;
floatjump = 0;
autoslomo = 1;
decals = 1;
velocityblur = 0;
volume = 0.8f;
ambientsound = 1;
- vblsync = 1;
debugmode = 0;
crouchkey = SDL_SCANCODE_LSHIFT;
opstream << texttoggle;
opstream << "\nDebug:\n";
opstream << debugmode;
- opstream << "\nVBL Sync:\n";
- opstream << vblsync;
opstream << "\nShow Points:\n";
opstream << showpoints;
opstream << "\nAlways Blur:\n";
ipstream >> ismotionblur;
} else if ( !strncmp(setting, "Overall Detail", 14) ) {
ipstream >> detail;
- if (detail != 0)
- kBitsPerPixel = 32;
- else
- kBitsPerPixel = 16;
} else if ( !strncmp(setting, "Floating jump", 13) ) {
ipstream >> floatjump;
} else if ( !strncmp(setting, "Mouse jump", 10) ) {
ipstream >> texttoggle;
} else if ( !strncmp(setting, "Debug", 5) ) {
ipstream >> debugmode;
- } else if ( !strncmp(setting, "VBL Sync", 8) ) {
- ipstream >> vblsync;
} else if ( !strncmp(setting, "Show Points", 11) ) {
ipstream >> showpoints;
} else if ( !strncmp(setting, "Always Blur", 11) ) {
extern bool damageeffects;
extern bool texttoggle;
extern bool debugmode;
-extern bool vblsync;
extern bool showpoints;
extern bool showdamagebar;
extern bool alwaysblur;
extern bool velocityblur;
extern float volume;
extern int detail;
-extern int kBitsPerPixel;
extern int kContextWidth;
extern int kContextHeight;
extern float screenwidth, screenheight;
extern float multiplier;
extern float gravity;
-extern Skeleton testskeleton;
extern Terrain terrain;
extern Objects objects;
extern int environment;
#endif
extern float multiplier;
-extern float sps;
extern float realmultiplier;
extern int slomo;
extern bool cellophane;
fprintf(stderr, "Failed to load config, creating default\n");
SaveSettings();
}
- if (kBitsPerPixel != 32 && kBitsPerPixel != 16) {
- kBitsPerPixel = 16;
- }
if (SDL_GL_LoadLibrary(NULL) == -1) {
fprintf(stderr, "SDL_GL_LoadLibrary() failed: %s\n", SDL_GetError());