CSTUNTS - 3D driving simulation with realistic physics

Author: Simon Hasur

Address of the original, unmodified version:

https://sourceforge.net/projects/cstunts/


CHANGES:

Deleted directories windows_ver_XP and screenshots.

Updated documentation, which is now in README.txt.

Renamed directory fullscreen_ver to src. The following changes were made in
src/:

Deleted makefile and replaced it with file comp, with the following contents:

CFILES="main.c  game_terrain.c  vcalc.c readfile.c";
LCFLAGS="`sdl-config --cflags --libs` -lGL -lGLU -lm -Wall -W";
gcc $CFILES -o cstunts $LCFLAGS;

Made the following changes in file main.c:

15: #include <SDL.h>
18: #define WIDTH  800
21: #define HEIGHT  600
22: #define COLDEPTH 32
870: /*printf("Key press detected by SDL functions \n");*/
873: printf("ESC KEY PRESSED: PROGRAM TERMINATED\r\n");
2272: if (woption < 5){
5879: int Look_at_my_Truck[8][128] = {
5962: float FogCol[3]={0.05f,0.0f,0.3f}; // Define a nice dark blue
5973: glFogf(GL_FOG_START, 15000.0f);
5974: glFogf(GL_FOG_END, 25000.0f);
7133: /*
7138: glEnd() ;*/
7143: /*glColor3f( 1.0, 1.0 , 1.0);
7154: }*/
7508: #if 0
7540: #endif
7757: for( yyi = Yi - 4*howm ;  yyi < Yi + 4*howm  &&  yyi < mg.map_size;...
7758  for( xxi = Xi - 4*howm ; xxi < Xi + 4*howm  &&  xxi < mg.map_size ;...
7763: glBegin(GL_TRIANGLES);
7772,7776,7780,7784: deleted
7790: glEnd();
7938: /*printf("TEST TRI: %li \n",i);*/

A few more modifications were made to eliminate compilation errors and warnings
for both gcc and g++. Original versions of main.c and vcalc.c are in directory
src/original. The viewing distance and fog are controlled by parameters found
at lines 7757, 7758, 5973 and 5974.

You should compile the program yourself, but some executable files are also
available in directory src:

GNU/Linux, 32 bits: cstunts32
GNU/Linux, 64 bits: cstunts64

To run them, type:

cd src
./cstunts32
./cstunts64

wind0wS: cstunts.exe

File cstunts64 from directory src/original is compiled with an older version of
gcc. You can try it if cstunts64 from src doesn't work and you don't want to
compile it yourself.
