Commit graph

224 commits

Author SHA1 Message Date
Bill Currie
27465bc765 bring in Despair's (Ragnvald Maartmann-Moe IV, rmmiv@earthlink.net) clean up
of the gl setup code.
2000-10-26 06:08:09 +00:00
Zephaniah E. Hull
b9c0c95729 Misc cleanups. 2000-10-24 17:03:09 +00:00
Bill Currie
d295f183ba remove va from commdef.h and fix the consequences 2000-10-21 07:34:56 +00:00
Bill Currie
63fc732758 clean up the includes ov vid.c and bring over va.h from nuq 2000-10-21 07:20:57 +00:00
Bill Currie
dcd1201131 create VID_GetWindowSize in vid.c and use it elsewhere for window size
selection.  in_x11.c just had refs to scr_width and scr_height removed.
2000-10-21 07:15:30 +00:00
Jeff Teunissen
afae879d2e dga_check.h: DGA and VidMode check functions return qboolean, not
int. Cleaned up prototypes to not include variable names.

dga_check.c: Fix bug in DGA detection that lead to segfault.

in_x11.c: Better DGA input support for X targets; The -nodga parameter is
gone, it is now the in_dga Cvar, which is dependant on the _windowed_mouse
Cvar. in_dga is archived.
2000-10-21 05:30:34 +00:00
Jeff Teunissen
17ea696c0d One of the biggest things keeping -mem/-heapsize numbers up is the video
memory in software mode. This is now taken care of, the memory is now
grabbed using calloc.

On Unix systems and all systems using SDL, the default video memory is now
8MB. This should now be enough for almost everybody, unless you have some
truly huge maps and boatloads of sounds. The minimum memory allowable is
now down to 4MB, but complex maps and/or models can cause the game to quit
-- not like this wasn't a problem already with the old 5.3MB lower limit,
but there it is.
2000-10-18 10:16:11 +00:00
Bill Currie
1dd0f7ed0f Conditionally disable bunny hopping (speed jumping). To disable bunny hopping
on your server, put `serverinfo no_pogo_stick 1' into your server.cfg. It's
called no_pogo_stick for two reasons: the effect is called "pogo stick" in the
source code in a comment from the original id source code and also as a minor
(and very week:/) obfustication for `cheaters' trying to set it in their
clients. However, the client checks for no_pogo_stick in the server info and
forces it on when appropriate and having them in disagreement would only make
prediction a little screwy anyway :). BTW, when enabled this actually fixes the
original bug that allowed bunny hopping in the first place (though you still
get a jump grunt when you try to bunny hop; minor bug).
2000-10-15 04:26:09 +00:00
Jeff Teunissen
ced3051b20 Rev for beta 3 2000-10-14 07:11:53 +00:00
Jeff Teunissen
8903d650d2 Makefile.am: misc. fixes to changelog building.
input.h: Use int_val for freelook
cl_input.c: Use freelook macro instead of in_mlook.state
in_svgalib.c: freelook support and whitespace
in_win.c: whitespace and minor optimization in mouse support
in_x11.c: freelook support
vid_ggi.c: joystick support and minor opt in mouse support
vid_sdl.c: joystick support, freelook support, minor mouse opt, spaces->tabs
2000-10-13 05:36:46 +00:00
Bill Currie
4e1ea06a0d add locs.h 2000-10-06 23:47:11 +00:00
Bill Currie
c91fd814e9 turns out some like interpolated, others don't. snd_interp conrols this.
Defaults to on so those used to 11k sampling won't be too suprised.
2000-10-06 18:42:02 +00:00
Zephaniah E. Hull
70657119f3 Would help if I added locs.h and locs.c. 2000-10-06 16:31:53 +00:00
Zephaniah E. Hull
760dfb8541 %l %a %A %h, for say and say_team, not quite finished yet. 2000-10-06 16:30:37 +00:00
Bill Currie
21787a552f Add Qgetline for Mercury. Safely read in a random lenght line from a file. 2000-10-06 07:05:22 +00:00
Dabb
496de868dc Zlib support for BC win32. 2000-10-03 15:05:24 +00:00
Jeff Teunissen
85e0b2b6aa X11 targets have runtime caption setting now. 2000-10-03 07:10:48 +00:00
Jeff Teunissen
5b97739385 Rev Win32 config.h for beta 2, my last commit revved the Unix builds'
version numbers.
2000-10-03 02:55:35 +00:00
Bill Currie
677b7de94d %s/HAS_ZLIB/HAVE_ZLIB/g 2000-09-30 05:56:00 +00:00
Zephaniah E. Hull
e4c9ccff8f Cvar audit 1, all unused cvars are gone, with the exception of software
rendering, and the server.
2000-09-30 04:08:40 +00:00
Bill Currie
8601bc905b more fixes 2000-09-29 23:36:16 +00:00
Bill Currie
5c524ba2f0 server now compiles from make dist 2000-09-29 22:13:19 +00:00
Bill Currie
294b991cdc missing file from make dist 2000-09-29 21:59:00 +00:00
Zephaniah E. Hull
01a5c65e52 More cleanup, now working on the rendering line as a whole.
Con_SafePrintf is no longer needed, as Con_Printf is safe.
2000-09-29 19:29:22 +00:00
Thad Ward
c8e95a85fd added zlib support in the VC projects.
WARNING: re-read readme.win for instructions on getting this working
on your system, since it depends on zlib being installed on your system,
similar to the way mgl is done.
2000-09-28 19:52:46 +00:00
Dabb
6307c488f2 BC compile fixes. inline = __inline 2000-09-28 15:02:30 +00:00
Zephaniah E. Hull
d02d9e140b Oops, frogot the header.
Minor whitespace cleanup in gl_rmain.c
2000-09-28 08:05:09 +00:00
Bill Currie
1aa9084aa9 add support for COMPRESSED downloads!!! Of course, both client and server must
both support this. The client tells the server it can support compressed
downloads by setting the z flag in the *cap userinfo. If the server detects
that the client supports compression, and the file to be downloaded is
compressed (more accurately, has the .gz extension), the server sends a special
download packet with a size of -2 (-1 indicates error),, percent of 0, followed
by the new name of the file (eg maps/foo.bsp.gz for maps/foo.bsp). The client
WILL NOT accept a new filename that doesn not match the old name for the length
of the old name. The client also will not accept a new name if there are . or
.. path components. If the client rejects the new name, it prints a warning
message and aborts that download.
2000-09-28 06:11:55 +00:00
Zephaniah E. Hull
f6bfcfc82d State change cleanup, but saner code! 2000-09-28 00:22:24 +00:00
Bill Currie
86f87122c0 zlib support (gzipped pack contents). if you have a probelm with gzgets, you
have 3 choices: remove /usr/X11R6/lib/libz.a, --diable-zlib, or fix configure.
I do intend on fixing it myself.
2000-09-27 19:44:26 +00:00
Jeff Teunissen
50abe6080e Joystick support generalized, autoconfiscated. Systems without joystick
support are built with joy_null.c. To create a joystick driver for a new
system, take a look at joystick.h and joy_null.c for the driver
interface. I'd like to see a Windows driver using this interface, it would
probably simplify in_win.c greatly.
2000-09-26 14:16:09 +00:00
Zephaniah E. Hull
68a4e60eaf Behold, the great state audit, and a few other things.
First off, a cleanup in alias model rendering.
Then we have R_CullBox, which is now a inline function.
Then the big one, the state change cleanup, right now GL_BLEND.
2000-09-26 09:03:21 +00:00
Bill Currie
fb55453675 David Jeffery's linux joystick support ala nuq 2000-09-26 03:21:06 +00:00
Bill Currie
9a4e650790 port over int_val from nuq. much better for integer cvars 2000-09-26 03:17:09 +00:00
Jeff Teunissen
bf2ec8da6d glquake.h: Comment out <GL/glu.h> -- may be used in the future, but we
don't use libGLU right now.

gl_draw.c: brightness/contrast are created in r_view.c, I'm a little
surprised this didn't cause a crash.

menu.c: Use bound() for sliders.
2000-09-25 04:12:58 +00:00
Bill Currie
9ece49b4e8 fix for Bug #105221 though it seems repeats were ignored anyway. this was done
by backporting the glx/x11 changes from nuq
2000-09-24 03:43:06 +00:00
Bill Currie
b88799880f fix alias model loading for when the model has groups. gdbinit added to ease
debugging
2000-09-24 02:34:35 +00:00
Jeff Teunissen
830d6e044e debian/*: Yaay, Debian packages. They're not perfect, but they should do
the job. -3dfx doesn't get a package built right now, there
are...obstacles.

acinclude.m4, configure.in, Makefile.am: -sgl is detected separately from
-sdl now, and HAVE_XMESA is no longer in use.
2000-09-23 08:06:40 +00:00
Zephaniah E. Hull
210ba16069 First off in gl_draw.c we have some nice cleanup code for the upload
code.

Then we have the completely purge of treating 'unsigned' as a type, it
is NOT a type, it is a TYPE MODIFIER!

Under gcc for x86 it happens to try and do something sane, just treat it
as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds
code which uses unsigned as a type in itself I /WILL/ harm them!!!
2000-09-22 09:08:08 +00:00
Bill Currie
ddef594b2e gl bmodel fullbrights implemented. I hope. I'll find out for sure when I get
home.
2000-09-20 23:06:26 +00:00
Bill Currie
96aba78186 forgot to rename Mod_LoadMMNearest to Mod_ProcessTexture 2000-09-20 22:21:25 +00:00
Bill Currie
b55b0264b5 model loading reorg ala nuq. once again, gl hasn't been tested (will test when
I get home tonight). This is in preparation for bmodel fulbrights.
2000-09-20 22:11:17 +00:00
Jeff Teunissen
a3e19d5cc2 gl_screen.c: Minor tweaks, contrast gets clamped to 0.1-1 instead of 0.2-1
view.h: Add brightness, contrast cvars as extern
menu.c: Change brightness scroller to use the brightness cvar, add
contrast scroller.
r_view, sw_view.c: Add brightness/contrast cvars to software, and make
them work.
2000-09-20 04:06:12 +00:00
Anton E. Gavrilov
66a91044bb cl_parsesay --- parse $\ (fake); $[, $]; $R $G $B $Y (ocrana leds);
Note that this cvar is different from QWF's cl_parsesay.
cl_nofake --- unhide fake messages from other players
2000-08-22 18:54:01 +00:00
Anton E. Gavrilov
d46f19e7ae Add "overloaded" impulse command (e.g. impulse 5 4 1) --- a hack that
only works correctly in standard deathmatch but may be useful in TF too
2000-08-22 17:53:48 +00:00
Maddes Buecher
b72492afd3 EndFrame function by FrikaC/Maddes 2000-08-20 19:47:37 +00:00
Zephaniah E. Hull
b5e459d224 FULLBRIGHT SUPPORT FOR MODELS!
Yes, this means that your standard grenades, the pipebombs, proxys,
sents, etc will all have fullbright pixels!

As a added bonus they are toggable with the gl_fb_models cvar! But
there is more! This comes at a almost unnoticeable cost! Thats right!
For you get this all for only 2 FPS!

Repeat, thats 2 FPS! PRACTICALLY NOTHING!

So order now! Available from the quakeforge newtree CVS.
2000-08-16 09:26:22 +00:00
Zephaniah E. Hull
0b7385ca76 We need a slightly larger MAX_INFO_STRING, boosted to 512. 2000-08-15 02:41:36 +00:00
Zephaniah E. Hull
23d81824dc Old draw cleanups, frogot I had them around..
Clean up of Dabb's mess, he dies.
2000-08-14 04:53:45 +00:00
Dabb
afc467b84f Basic DoS flood attack protections. Use sv_netdosprotect 1 to turn them on.
(quite experimental, these might break something...)
Cvars added: sv_allow_log, sv_allow_status, sv_allow_ping, sv_netdosprotect
Commands added: netdosexpire, netdosvalues
2000-08-13 14:26:20 +00:00