Bill Currie
a7380fef66
nuke msg_suppress_1 in favor of Sys_DPrintf
2002-08-27 18:05:59 +00:00
Bill Currie
bb1adf63a9
fix the command appended to f_reply message (so-and-so: Average percent
...
fullbright for all loaded skins is 4.9%+forward 101) and make the cl_freply
time check work closer to properly
2002-08-27 16:28:58 +00:00
Bill Currie
a0807c762f
fix the handling of escape when in the console before ever connecting
2002-08-27 08:33:21 +00:00
Bill Currie
ec47e08e1c
go back to using QFile, quakeio.h and quakefs.h
2002-08-27 07:16:28 +00:00
Brian Koropoff
98fc04e041
Added threads and callbacks to GIB, as well as several QW callbacks dealing
...
with player status.
2002-08-27 04:47:49 +00:00
Brian Koropoff
5595cb848b
Blue armor? Guess I shouldn't code too late at night...
2002-08-26 01:10:02 +00:00
Brian Koropoff
876eaa467c
Added a few useful builtins and began adding GIB hooks into quakeworld.
...
The player global branch variable is now updated with useful information
and the location.get builtin is available to return the current location
of the player based on loc files. Fixed a bug with zooming out in zoom.gib.
2002-08-24 05:14:46 +00:00
Ragnvald Maartmann-Moe IV
0085cd698f
Lots of whitespace in sv_user.c, plus fix sv_timekick help strings, and up sv_timekick_fuzz from 15 to 30 ms.
2002-08-22 23:04:44 +00:00
Bill Currie
498eac3e90
hmm, missed that one
2002-08-21 03:57:36 +00:00
Bill Currie
5009213564
Move the signal handling code from video/targets/* to sys.c (I'm leaving
...
the SDL target files for Despair since he's working on the currently). Also
make progs segfault handling much more robust (and general: sigill etc too:)
2002-08-20 23:04:57 +00:00
Bill Currie
099e2739b5
various msvc fixes thanks to muzzy (hope he doesn't give up:)
2002-08-20 19:16:11 +00:00
Ragnvald Maartmann-Moe IV
c91f1a2aea
Rename Length to VectorLength.
2002-08-20 02:22:40 +00:00
Bill Currie
2b1fd8e8c0
fix the menu keybinding not working bug
2002-08-19 02:48:38 +00:00
Bill Currie
f068b47c0c
complain when MAX_PACKET_ENTITIES gets hit to see if this is our problem
2002-08-15 21:11:57 +00:00
Ragnvald Maartmann-Moe IV
c86565307b
Use function pointers for DeathmatchOverlay, instead of a ridiculous if/else tangle. Bulkier, but considerably faster.
2002-08-15 09:38:23 +00:00
Bill Currie
0ebaa9834b
fix a vim snafu
2002-08-15 03:22:58 +00:00
Bill Currie
bfd02b6412
mess around with the builtin comments
2002-08-14 22:33:10 +00:00
Ragnvald Maartmann-Moe IV
520a3c0a90
Tiny speedup, cleanup.
2002-08-14 10:49:38 +00:00
Bill Currie
ff02dfbbbc
make the sdl clients link reliably (some versions of binutils don't cope well
...
with no .o files)
2002-08-12 16:42:26 +00:00
Ragnvald Maartmann-Moe IV
a69b172f6f
Cache grappling hook beam model loading, should speed up CTF beam handling. For mods with no beam model, wastes a pointer on a lightning bolt model. Better than crashing... ;)
...
Also copy the sound effects LUT for spikes into nq, which I never got around to.
2002-08-10 02:53:44 +00:00
Bill Currie
b5783866ad
fix model_t issues for solaris (now that I know which headers cause the
...
problem...:)
2002-08-09 02:44:23 +00:00
Bill Currie
1354975692
clean out some unneeded includes and fix up model_t for sun (again:P)
2002-08-08 22:24:02 +00:00
Bill Currie
ad03adb133
fix a couple of sillies with sdl
2002-08-08 01:47:32 +00:00
Bill Currie
0963c2476d
improved server logging. "logfile" is gone from qw-server to be replaced
...
with "sv_logfile" and thus giving nq-server logging as well.
2002-08-07 18:46:53 +00:00
Bill Currie
64b608b20d
put *sys_sdl.c into a lib so it doesn't get compiled more than once and do
...
more macroizing
2002-08-07 18:20:23 +00:00
Brian Koropoff
5c60be3a49
If and while now work, and embedded commands use backticks instead of <> now
...
to prevent conflicts with math expressions. All clients and servers are set
to create buffers with the normal parser. However, scripts ending in .gib
are now executed in a GIB buffer, and the export command can be used to
make specific GIB functions available to normal command buffers (i.e. the
console).
2002-08-07 06:17:50 +00:00
Ragnvald Maartmann-Moe IV
e56404d242
Use LUT instead of case for spike sound effects. Faster and more compact, though less legible.
2002-08-06 19:46:13 +00:00
Bill Currie
bd9092a626
per map config files (eg, maps/start.cfg for maps/start.bsp)
2002-08-06 05:45:03 +00:00
Bill Currie
abf1ef37dc
convert the flag offset calculation from switch to a lookup table. this
...
should be a touch faster avoiding the extra jumps
2002-08-06 03:52:38 +00:00
Ragnvald Maartmann-Moe IV
f0be492c75
Optimize CTF flag handling.
2002-08-03 17:20:07 +00:00
Brian Koropoff
cf48363c6e
More of GIB done: builtins, functions, various cleanups, math, etc.
2002-08-03 06:04:00 +00:00
Brian Koropoff
3c3844d2ac
Checked in the beginnings of GIB mark III and modified qw-server to use
...
it for its console.
2002-08-02 04:07:25 +00:00
Bill Currie
5f4c21d796
casting from (signed) char to int does not one whit of good towards avoiding
...
the problems associated with signed chars being used to index arrays. must
cast to usigned char so the bit expansion is done on an unsigned value to
avoid the sign extension.
2002-08-02 03:22:32 +00:00
Bill Currie
a13a2283ae
forgot to remove this
2002-08-01 19:49:52 +00:00
Bill Currie
2ce0f2ded2
we now require modern autoconf (2.52+), automake (1.6+) and libtool (1.4+).
...
This gives us a bunch more flexibility. plugins no longer have the "lib"
prefix or the version suffix, they're now installed in
$fs_sharepath/QFplugins,, builds should take much less time (in general,
only one of pic or non-pic versions are build), bins and libs can have
individual CFLAGS
2002-08-01 19:49:10 +00:00
Brian Koropoff
439f9838d3
Whoops, missed some stuff that needed to be in idparse.h
2002-07-31 22:13:15 +00:00
Brian Koropoff
a93b221272
Split off the old console parser into idparse.[ch] and prepared the cbuf
...
struct and support functions for GIB mark III.
Oh yeah, I'm back.
2002-07-31 22:03:53 +00:00
Bill Currie
0bb6769204
fix the non-parsing of quakeforge.conf
2002-07-31 06:06:44 +00:00
Bill Currie
ad6e025a91
take cmd.[ch] back to basics. the gib code is temporarily gone pending
...
renovations. cmd_source handling is a little hacky in nq, but it's working.
2002-07-31 05:19:03 +00:00
Ragnvald Maartmann-Moe IV
c4cb25a83c
LOTS of cleanups. Couple little optimizations, plus add cl_showscoresuid 2
to show both pings AND uid.
2002-07-29 17:36:01 +00:00
Ragnvald Maartmann-Moe IV
4d74b80a38
Dead code removal.
2002-07-27 02:50:41 +00:00
Ragnvald Maartmann-Moe IV
227491d929
Remove cl_predict_static, it doesn't need a cvar to control it anymore. Also some minor related cleanups.
2002-07-27 00:44:54 +00:00
Bill Currie
81af9b14e9
move the VID_SetCaption call into CL_SetState where it belongs and fix
...
CL_SetState for when connecting to the server (dunno how I mangled that one)
2002-07-26 20:50:53 +00:00
Ragnvald Maartmann-Moe IV
587de27849
Another step towards QSG2 compliance.
2002-07-25 14:43:36 +00:00
Bill Currie
de22355371
use P_* for params and R_* for return values in builtins code
2002-07-24 21:42:33 +00:00
Bill Currie
dd08f4ff58
fix some operation order issues (might fix the stuck key issue)
2002-07-22 21:47:01 +00:00
Bill Currie
4cc39a07bc
hopefully make CL_SetState a little more sensible
2002-07-22 21:25:51 +00:00
Ragnvald Maartmann-Moe IV
0d95bc71ff
Fix cl_predict_static default!
2002-07-15 09:29:50 +00:00
Ragnvald Maartmann-Moe IV
6cef69545e
Whitespace, prune dead code.
2002-07-07 02:33:00 +00:00
Bill Currie
7e052a5cc7
certain standard user commands (eg, say) can now be overriden by the progs,
...
but only once (ie, it's an error for the progs to try to add a command twice)
2002-07-05 21:15:19 +00:00
Bill Currie
e85b3a3d97
blah, not all automake versions support that
2002-07-05 07:10:39 +00:00
Bill Currie
a918790c2d
evil hack, but this gets around the issue of libQFcsqc wanting the renderer
2002-07-05 07:05:52 +00:00
Bill Currie
b4f9652535
give the server progs access to the Cmd api
2002-07-05 06:55:38 +00:00
Bill Currie
cb814165f8
allow progs to register user commands (but not override any of the standard
...
ones (yet))
2002-07-05 06:43:47 +00:00
Bill Currie
73b68e788e
close a small security hole where a malicious challenge could potentially
...
wreak havoc with info strings.
2002-07-03 18:29:36 +00:00
Ragnvald Maartmann-Moe IV
64df22aa8c
Whitespace, dead code removal, and a couple of tiny cleanups.
2002-07-03 05:40:33 +00:00
Ragnvald Maartmann-Moe IV
c8fcdd5813
Re-enable rendering lights on the player you are viewing from...
2002-07-03 00:37:28 +00:00
Ragnvald Maartmann-Moe IV
1478dcd9c9
Prune dead code.
2002-07-02 21:37:22 +00:00
Ragnvald Maartmann-Moe IV
e1854315ac
Clean out DDActive, except from -mgl, which isn't supported ATM. Clean up vid_mgl.c comments and dead code a bit.
2002-07-02 20:34:51 +00:00
Ragnvald Maartmann-Moe IV
5e5fdb7bc2
Kill MSG_WriteChar.
2002-07-02 19:13:53 +00:00
Ragnvald Maartmann-Moe IV
ec5440fccc
Whitespace, plus a sprinkling of FIXME markers...
2002-07-02 18:35:36 +00:00
Ragnvald Maartmann-Moe IV
1ca1154964
Speed up client nail packet parsing.
2002-07-02 18:07:51 +00:00
Ragnvald Maartmann-Moe IV
aeab38fe4f
Minor cleanups.
2002-06-30 16:19:37 +00:00
Ragnvald Maartmann-Moe IV
d2dd6db51f
More nail speedups for qw.
2002-06-29 18:28:32 +00:00
Ragnvald Maartmann-Moe IV
2a3c31edbe
More nail fixes, more MSG_* cleanups.
2002-06-29 03:25:25 +00:00
Ragnvald Maartmann-Moe IV
1555324e0d
Whitespace, and fixes for SV_EmitNailUpdate.
2002-06-28 02:11:13 +00:00
Ragnvald Maartmann-Moe IV
00d72be48d
Whitespace.
2002-06-26 06:33:00 +00:00
Bill Currie
8ddca92dd9
fix a few allskins bugs
2002-06-25 17:07:52 +00:00
Chris Ison
70d8026067
Removing -3dfx's dependancy on clide
2002-06-24 15:56:01 +00:00
Bill Currie
a83ecbd23a
make sure we don't get stuck in the console when the server is in
...
intermission mode. As far as I can tell, it's pure luck wether the
svc_intermission comes before or after the first pass through the prediction
code, and if it comes before, the prediction code will never run and thus
never realise that it's ok to start rendering, so force the issue if in
intermission mode.
2002-06-21 05:15:16 +00:00
Bill Currie
e5c470d5e4
realtime should not be affected by pause and also should not be used for
...
physics and progs, that's what sv.time is for. Things seem to work nicely,
including map changing, and this /should/ make long uptime servers work so
long as the map gets changes occasionally.
2002-06-20 16:38:16 +00:00
Bill Currie
7ab3095024
back out Misty's realtime reset work. It did achieve its goal, but winding
...
realtime back caused the problems with clients not reconnect on map change
and after my preliminary mucking around with time, I'm convinced there's a
better way.
2002-06-20 16:15:27 +00:00
Bill Currie
8234988835
yet more cleanup
2002-06-19 23:16:41 +00:00
Bill Currie
a397ef953a
Nuke Netchan_AckPacket because it didn't really achieve its goal ('twas a
...
server bug anyway), broke qizmo (not that I really care: that's still qizmo's
bug) and (most importantly) broke recording demos across map changes.
(Closes : #14 )
2002-06-19 19:58:36 +00:00
Ragnvald Maartmann-Moe IV
a246015053
Order of operations fix for R_AddEfrags.
2002-06-19 17:32:39 +00:00
Bill Currie
f1ced33e92
a little more cleanup
2002-06-19 17:16:13 +00:00
Ragnvald Maartmann-Moe IV
1ebc5e6fa1
Whitespace.
2002-06-19 17:01:31 +00:00
Bill Currie
5e9baaa7c2
optimise PF_aim for when sv_aim is >= 1 or when the client's noaim is 1
2002-06-19 16:03:01 +00:00
Bill Currie
b4d7f0ec96
move the pps code into it's own function
2002-06-19 05:03:24 +00:00
Bill Currie
85a6c5aa06
remove a redundant call to IN_Move
2002-06-19 04:11:27 +00:00
Bill Currie
5052e3db1f
add qsg support for players and actually send EFFECTS2 and FRAME2 for
...
packet entities
2002-06-19 02:55:57 +00:00
Ragnvald Maartmann-Moe IV
d2fadb2978
Temporary workaround for invisible players.
2002-06-18 23:50:53 +00:00
Ragnvald Maartmann-Moe IV
c8bc5dfb4c
QSG2 glows almost working. Plus lots of typos killed.
2002-06-18 21:41:24 +00:00
Ragnvald Maartmann-Moe IV
632683e703
Change sv_maxrate 0
to unlimited. Change default to 10000. Remove forced ceiling of 10000.
2002-06-17 16:18:34 +00:00
Ragnvald Maartmann-Moe IV
3900c75cbb
Spelling correction in printf.
2002-06-17 05:40:56 +00:00
Bill Currie
9482c151c2
fix the missing view model
2002-06-14 07:55:19 +00:00
Bill Currie
c23a74ecd9
fix the recvfrom address size
2002-06-12 20:26:30 +00:00
Ragnvald Maartmann-Moe IV
2da6bd4907
Rename cl_nopred to cl_predict, cl_nostatpred to cl_predict_static, and disable prediction of static players by default.
2002-06-12 04:45:21 +00:00
Ragnvald Maartmann-Moe IV
bc4c4588cc
Minor cleanup.
2002-06-10 23:05:29 +00:00
Ragnvald Maartmann-Moe IV
dd52072c9c
Whitespace.
2002-06-10 23:04:34 +00:00
Timothy C. McGrath
ee3f85cf55
Whoops! I got slap happy with ()'s. I'll learn, just let me make more
...
bugs ;)
Tim McGrath (Misty)
2002-06-09 02:44:11 +00:00
Timothy C. McGrath
814b1b5f2b
Reworked logging and heartbeats so they use realtime again, instead of
...
directly calling sys_doubletime () - managed to remove six calls. Proboably I
should look through the code some more and find more ways to remove more calls
... The server works fine with them on my system as is, but I've gotten the
impression from people in the know that spamming the clock this often is bound
to cause non x86 arches to have problems.
Tim McGrath (Misty)
2002-06-08 23:29:19 +00:00
Bill Currie
1747c07da6
rename cl_demospeed to demo_speed and add demo_gzip (yeah, compressed demos)
2002-06-08 23:22:26 +00:00
Bill Currie
442ccc3deb
no more Sys_* functions defined in nq or qw :)
2002-06-07 15:46:15 +00:00
Bill Currie
ebfdbd9285
the fpu manipulation stuff seems to be better off in the one place that
...
actually uses it...
2002-06-07 15:09:20 +00:00
Bill Currie
4e07810f0d
a little cleanup of unneeded lines
2002-06-07 14:44:02 +00:00
Ragnvald Maartmann-Moe IV
ceb73449bb
Order of operations cleanup, QSG2 alpha is now colormod[3] in entities.
2002-06-07 11:25:47 +00:00
Ragnvald Maartmann-Moe IV
90f4bf5fa7
Improve dlight flag combination behaviors, plus some more dlight initialization cleanups.
2002-06-07 05:21:53 +00:00
Timothy C. McGrath
b552aceced
This should fix bans and heartbeats to work with realtime resets.
...
Also of note, I found a line I missed for logging from the last checkin. Doh.
Did not test heartbeats, although the code is so dead simple it ought to
function.
I did not test logging, although the code is rather simple so unless I missed
something, it ought to work this time. ;)
Tim McGrath (Misty)
2002-06-06 23:38:35 +00:00
Timothy C. McGrath
c848bf5c0c
Fixed logging to work with realtime resets.
...
Tim McGrath (Misty)
2002-06-06 23:15:26 +00:00
Timothy C. McGrath
bd82405643
Fixed automatic muting/mute to work properly with realtime resets.
...
Timothy C. McGrath (Misty)
2002-06-06 23:05:57 +00:00
Timothy C. McGrath
8f2b541b25
This fixes cuffs so they work with realtime resets.
...
Tim McGrath (Misty)
2002-06-06 22:41:34 +00:00
Ragnvald Maartmann-Moe IV
f6c6d9f03e
Add EF_DIMLIGHT to qw, make it work identically in nq.
2002-06-06 04:14:23 +00:00
Timothy C. McGrath
25ec0b8efd
I figured out why realtime 0 caused progs to crash }:) ph33r me. Or
...
not. Your choice.
if sv_frametime is less than or equal to zero, progs does not enjoy life.
Don't make progs suicide, join the > 0 club today!
Tim McGrath (Misty)
2002-06-06 00:32:04 +00:00
Ragnvald Maartmann-Moe IV
46949068a2
Check return value on R_AllocDlight. Small optimization, people cutting r_dlight_max heavily should like it.
2002-06-05 22:07:38 +00:00
Brian Koropoff
7369224f25
Added the getinfo command to grab client info keys in GIB. I might add
...
the ability to grab info about any user, but this has potential abuses.
I'll need to think it over.
2002-06-05 00:13:46 +00:00
Bill Currie
0f9adc182d
win32 compile fixes
2002-06-04 16:17:10 +00:00
Timothy C. McGrath
6ead7c9ad4
Removed an unneeded check now that realtime = 0 in sv_init.c while map is
...
loading went byebye.
Tim McGrath (Misty)
2002-06-03 23:11:09 +00:00
Bill Currie
4039452297
more sys cleanup. server consoles may be broken for non-curses.
2002-06-03 19:11:48 +00:00
Jeff Teunissen
b1ccfce60a
Remove the resetting of realtime -- there's a better solution coming, and this
...
breaks a lot of stuff subtly.
2002-06-03 03:01:46 +00:00
Bill Currie
f00e892d4e
mingw gcc 3.1 is freaking weird
2002-06-02 05:27:32 +00:00
Timothy C. McGrath
9a18bda805
Gee, I seem to have had time reset *after* progs was loaded. ...
...
Fixed. This was dumb.
Timothy McGrath. (Misty)
2002-06-02 05:20:42 +00:00
Bill Currie
3b7ddfb22a
fix a silly typo
2002-06-01 03:04:11 +00:00
Bill Currie
9630a23391
more Sys_* cleanup
2002-06-01 03:00:13 +00:00
Bill Currie
fc0bb7e175
move Sys_DebugLog
2002-05-31 22:50:43 +00:00
Bill Currie
e8026d9c76
touch, think and blocked now support methods
...
also a little whitespace cleanup
2002-05-31 21:05:58 +00:00
Bill Currie
cf9e1de5a6
sv_progs_zone controls the size of the zone for the progs. defaults to
...
256kb (64k `globals').
2002-05-31 15:27:56 +00:00
Bill Currie
c25051e60e
link the obj runtime into the servers' progs engines
2002-05-31 15:04:23 +00:00
Bill Currie
7a3b63418b
`adequate' temporary fix for r_lightmap_components 1
2002-05-28 04:11:40 +00:00
Bill Currie
37335f4ec3
alpha doesn't like 0 for va_list :/
2002-05-28 00:02:59 +00:00
Bill Currie
7ebede0517
don't run a physics frame if sv_frametime is 0
2002-05-27 20:49:16 +00:00
Timothy C. McGrath
9666243498
Fixed my mistake - Had added a bracket which caused physics only to be
...
done every maxtic instead of every *mintic* which is what it was supposed
to be doing. Ooops.
Also minor whitespace cleaning in sv_init.c
Tim McGrath (Misty)
2002-05-26 20:30:12 +00:00
Timothy C. McGrath
8ebd2c6243
This hack makes realtime get reset on map load (in sv_init.c, set to 0)
...
and also prevents old_time in sv_main.c from getting screwed up in the head
and pausing the physics indefinitely (check and see if there is a faster way
to do it :)
What does this let us do? LEAVE THE SERVER RUNNING! Imprecision due to the
server being on for long periods of time should now no longer be a problem,
so long as you have a map rotation going at least once a day. :)
I plan on committing updated versions of my glspeed cfgs next, and then
looking at timeleft - just to make sure when sys_dead_sleep is 1 it can't
overflow accidentally.
Tim McGrath (Misty)
2002-05-25 21:54:41 +00:00
Bill Currie
030b8a7a05
add ' fps' to the std deviation line
2002-05-24 02:59:10 +00:00
Bill Currie
33e055209e
Semi-major (more than minor:) progs convenience macro cleanup. There will
...
be more to come.
2002-05-22 22:35:37 +00:00
Bill Currie
69c6bb767b
forgot to fix the server error printing
2002-05-21 21:06:27 +00:00
Bill Currie
fe866e264e
hopefully fix the nq-wgl crash
2002-05-14 21:30:23 +00:00
Bill Currie
6a5bbf6f0a
memory allocation checking cleanup
2002-05-14 06:37:28 +00:00
Bill Currie
44dcf74627
strip the \n from all(?) of the Sys_Error calls (Sys_Error itself will be
...
adding \n).
2002-05-14 06:12:29 +00:00
Bill Currie
6240c62cec
this should fix the problems with building the master server on bsd systems
2002-05-13 21:53:52 +00:00
Brian Koropoff
3fffa26fb4
Added thread support to GIB and cleaned up escape characters yet again.
...
With any luck it should actually work this time. Added the getimpulse
command so that GIB scripts can check if an impulse command is pending
before sending their own. Fixed all the memory leaks I could find.
QuakeC and GIB seem to be clean except for maybe one or two sneaky leaks
I can't track down.
2002-05-11 00:36:12 +00:00
Bill Currie
c04785fe0f
move sys/types.h
2002-05-10 18:39:59 +00:00
Bill Currie
b93f37fb00
a nother tiny optimisation: no nead to recalculate non-player beams every
...
frame
2002-04-27 04:08:30 +00:00
Bill Currie
8a8e62f4c2
turns out that beams coming from the player entity get their start position
...
updated which can cause the beam to shrink which can cause lightning ents
to get stranded.
2002-04-27 03:22:09 +00:00
Bill Currie
a1c6547f16
when comparing addresses, it helps if the /whole/ address is compared :P
2002-04-26 16:05:24 +00:00
Bill Currie
7ca3ea20b1
got a little too agressive with that optimisation :P (I'm surprised it worked
...
at all)
2002-04-25 19:38:15 +00:00
Bill Currie
0deb11eeae
this might fix the lightning bug (produces better code anyway)
2002-04-25 19:04:25 +00:00
Bill Currie
4223aaa4c0
a couple of very minor optimisations
2002-04-25 17:16:40 +00:00
Jeff Teunissen
b2579dca98
WOOHOO! The hardcoded framerate cap is gone! cl_maxfps 0 now allows an
...
unbounded frame rate (you can still set it to clamp your fps to, for example,
your monitor's refresh rate), and cl_maxnetfps 0 is now based on your network
rate.
The NetQuake-compatible targets now also have an unbounded framerate. This is
OK, because the built-in server uses its own tick rate.
2002-04-25 16:50:56 +00:00
Jeff Teunissen
7c134a6f95
Fix up the watervis stuff. Whoops! :)
2002-04-25 14:34:15 +00:00
Jeff Teunissen
13071a2d23
Clear up some comments.
2002-04-25 12:53:42 +00:00
Jeff Teunissen
6126eeeb1d
Clarify the meaning of the watervis serverinfo/Cvar in the server help
2002-04-25 12:52:11 +00:00
Jeff Teunissen
5b069de40c
Redo r_wateralpha so that it doesn't force its value based on the watervis
...
serverinfo. Instead, create a new cl_wateralpha float variable that is set to
r_wateralpha->value in Host_Frame, and use that float during rendering.
2002-04-25 12:51:04 +00:00
Bill Currie
2b2c0401cf
stuff player, beam and explosion entities into the map (rather than
...
building the render entity lists directly) so they get vis-clipped. The
benefits of this to newer gl cards/drivers or sw is negligable, but is a
pretty serious boost for the voodoo2 (~24%).
2002-04-25 04:30:03 +00:00
Brian Koropoff
7f295d61ee
Added the getserverinfo command to return the value of a server info key
...
to GIB. Fixed a bug in dstring_replace that was causing too much data to
be copied when the incoming string was larger than what was being replaced.
Very minor reorganization in cmd.c (1 function moved around I think).
cmd.c should probably get broken up into separate files soon.
2002-04-23 07:47:24 +00:00
Bill Currie
44a905e98c
forgot to delete the (commented out) calls to Cmd_Process
2002-04-20 03:22:14 +00:00
Bill Currie
4ccc9d6322
dstring.c dstring.h:
...
add dstring_replace. this replaces a string of lenth rlen at position
pos with data of lenth len, growing, shrinking and shuffling data as
appropriate. At this rate, the dstring `class' will get buffer gap
editing capabilities :)
cmd.c:
Cmd_TokenizeString builds cmd_active_buffer->line again.
Cmd_Process bails out instantly if cmd_active_buffer is a legacy buffer
and uses dstring_replace to modify the parameters in
cmd_active_buffer->line. This last change results in drastic
simplification (and accuracy) of the commandline reconstruction code,
both in Cmd_TokenizeString and Cmd_Process.
2002-04-19 22:54:27 +00:00
Bill Currie
1ff8c715b9
currently, Cmd_Process needs to be called after Cmd_TokenizeString, even
...
for legacy buffers. I'm not terribly happy with this, but it fixes the
broken "say" problem.
2002-04-19 21:18:25 +00:00
Bill Currie
97029c0689
rearrange the svc_stufftext code so stuffbuff doesn't even get allocated if
...
it's not needed. This should speed things up fractionally for well behaved
mods/servers that send atomic svc_stufftext packets (ie, always ending in
\n).
2002-04-19 17:58:52 +00:00
Brian Koropoff
ea3c2f0d78
Changed stufftext behavior so that commands are built up until a \n is
...
found at the end of the string. This works around a stupidity in some
servers where stufftext commands are sent in pieces and might not reach
the client before execution occurs, resulting in parse errors.
2002-04-19 06:26:08 +00:00
Bill Currie
d4cc899d33
even id has that blasted bug :/
2002-04-16 17:18:28 +00:00
Bill Currie
ed0342e996
clean up the mess of {send,recv}msg vs {sendto,recvfrom}
2002-04-15 19:06:25 +00:00
Bill Currie
4ac2fc0a52
add the -b dotted.quad option so qw-master can bind to a specific address.
...
Useful on multi-homed machines where either you want qw-master to listen on
only one address or your operating system is lame.
While (currently) ugly, compiles for win32 again.
2002-04-15 18:13:17 +00:00
Bill Currie
9fa9f6af52
need to explicitly include sys/uio.h on older libc
2002-04-15 14:35:10 +00:00
Bill Currie
599e0f4b0a
make sure reply packets go out the same interface they cam in on.
...
This breaks win32 builds :/
2002-04-14 03:44:16 +00:00
Bill Currie
c310cd2235
correct some email addresses
2002-04-12 17:54:12 +00:00
Bill Currie
a974eb2333
move buildnum.c to util and make nq and qw init more similar
2002-04-11 18:42:55 +00:00
Bill Currie
0d525189f4
fix some problems with error printing, especially when using the curses
...
console
2002-04-10 21:03:02 +00:00
Bill Currie
76d004f9cf
fix confim_quit
2002-04-09 17:00:39 +00:00
Bill Currie
63909922d7
damn sun's model_t :P
2002-04-07 05:03:54 +00:00
Brian Koropoff
676bf39d9d
Beautified GIB, improved looping and backtraces slightly. Old buffers are
...
now recycled, not freed. Fixed some bugs in exp.c. Ready to add embeded
functions (read: function calls with return values) and for loops.
Probably some other misc. fixes, I tend to go on debugging streaks.
2002-03-27 06:24:19 +00:00
Robin Redeker
264e9b1617
Added teamname to the playerconfig dialog.
...
Made noskins a archived var.
Added a network menu.
-> just realized, that menu-code is still to blown
and still sucks too much. i am thinking about a
more templated menu-code. (tanwha: i will design something nice ;)
2002-03-20 16:13:32 +00:00
Bill Currie
e386a02292
make sure unused player slots are skipped when linking (should fix elmex'
...
segfault)
2002-03-15 16:49:40 +00:00
Robin Redeker
54037f1115
Fixed cl_fraglog and fs_fraglog cvar for being archived.
...
Fixed fraglogging when playing demos.
2002-03-15 13:31:05 +00:00
Bill Currie
bde0f94d1a
don't process server packets when a client packet has been read from a demo
...
file. this was causing server packets to sometimes be processed multiple
times.
2002-03-15 07:35:22 +00:00
Bill Currie
777495e069
hopefully fix our rocket trail problem
2002-03-14 21:33:56 +00:00
Robin Redeker
706de39c06
Made fraglogging switchable. And added it to the features-menu.
...
cl_fraglog is the new cvar for toggling fraglogging.
2002-03-14 19:41:49 +00:00
Bill Currie
33513ce67b
demo autorecord patch from RvB
2002-03-14 18:48:04 +00:00
Robin Redeker
650912e75a
Added my fancy automatic fraglog to the qw-client.
...
Cvar fs_fraglog is a new cvar for the filename of the fraglog (default: qw-score.log)
Any devel should take a look at qw/source/cl_parse.c and qw/source/sbar.c to verify
the place where the function is placed and called, i am not shure if its correct there.
2002-03-14 15:43:08 +00:00
Bill Currie
6aa4a690d6
demo auto-naming patch from RvB
2002-03-13 18:09:33 +00:00
Bill Currie
7c3f58e08e
this should fix elmex's segfault
2002-03-12 19:44:10 +00:00
Bill Currie
87e4148ffc
fix the client getting stuck trying to download (eg) "skins/ .pcx"
2002-03-11 18:47:14 +00:00
Brian Koropoff
e0e9084ad7
Merged in the new command parser. No major bugs or incompatibilities could
...
be found.
2002-03-05 21:51:12 +00:00
Brian Koropoff
8d124f9c2b
Implemented variable substitution and did various cleanups to the parser.
...
Changed Cmd_TokenizeString to accept a flag that controls the application
of filters (tags, variables, escape characters) to the tokens and modified
a few places in the source that called it. Added a secondary command
buffer that is parsed without filters for legacy command support.
Currently, it is only used for commands stuffed into the console from the
server. It is hacky, and I hope to eventually generalize the console
interface to support any number of buffers and audit the rest of the code
to recognize it. For now, the legacy buffer at least keeps escape
character parsing from destroying info strings.
2002-03-03 23:28:57 +00:00
Brian Koropoff
f78ec56975
Added escape characters, the <i> tag to ignore tags enclosed within it, and
...
generally cleaned the parser up. If a line begins with |, it will be
stripped off by the tokenizer and no tags or escape characters will be
processed. Commands stuffed into the console from the server are prepended
with | to ensure backward compatibility. This can also be used anywhere
backward compatibility is needed, such as where info strings are stuffed
into the console, or as an alternative to using escape characters in the
entire string.
2002-03-03 08:29:28 +00:00
Bill Currie
26d7463be7
the majority of raptor's sgi build patch. I'll look at the last two bits
...
(server.c and vid_sdl.c) later.
2002-03-03 06:03:51 +00:00
Bill Currie
5d3830eeb1
move SV_SetMoveVars
2002-02-26 07:32:23 +00:00
Bill Currie
6ba5e823b2
use sv_gravity->value instead of movevars.gravity
2002-02-25 23:11:39 +00:00
Bill Currie
3e4c200430
more evil hacks to get nq's and qw's sv_phys.c similar.
2002-02-25 22:57:17 +00:00
Bill Currie
676527a0d3
if the velocity is 0, don't bother clipping it.
2002-02-25 18:40:51 +00:00
Bill Currie
da1f9fcf44
cut&paste + 1am = crippled quakeguy. d'oh :P
2002-02-25 17:41:21 +00:00
Bill Currie
9ea013888b
eliminate GetEdictFieldValue, mostly merge SV_AddGravity, and clean up
...
some whitespace in sv_phys.c
2002-02-25 07:44:17 +00:00
Bill Currie
cd29f8b9a0
remove an unneeded prototyp
2002-02-25 06:34:06 +00:00
Bill Currie
d5ed3bea75
when touching entities, it is possible for the next linked entity to be
...
freed, and thus unlinked. when this mappens, make sure the pointer to the
next entity to be touched gets updated appropriatly.
2002-02-25 03:24:46 +00:00
Bill Currie
8e31211266
don't link in a MOVETYPE_NONE edict that has freed itself via its think
...
function.
2002-02-25 03:22:32 +00:00
Bill Currie
3e4422a9f3
ok, the usleep is back, but it's controlled via cl_usleep which defaults to
...
off.
2002-02-22 05:48:59 +00:00
Bill Currie
96d3a997c9
bring sv_phys.c closer to being mergable. I've temporarily(?) disabled
...
Maddes' max velocity `fix' (yeah, it's physicly correct, but...). I'll
probably cvar it.
2002-02-22 05:28:17 +00:00
Bill Currie
5a1c0af8ca
more cloning :)
2002-02-20 20:53:41 +00:00
Bill Currie
87cb9647ab
reduce the fluffy diffs
2002-02-20 20:21:08 +00:00
Bill Currie
c9432fd92d
remove unneeded stuff
2002-02-20 20:20:17 +00:00
Bill Currie
8ee5acb208
redo Sys_Error so it's more usable throughout quake
2002-02-20 19:22:52 +00:00
Bill Currie
ea79349c2d
nq world.c and qw world.c are now identical ignoring the $Id line
2002-02-20 18:35:49 +00:00
Bill Currie
b6c331736a
give nq host_mem_size so -mem can be a cvar (similar to sv_mem_size and
...
cl_mem_size in qw).
2002-02-19 20:47:45 +00:00
Bill Currie
9aace57b07
fix a core dump when failing to allocate the hunk
2002-02-19 19:24:18 +00:00
Timothy C. McGrath
301eb4b8fd
Changed show_fps, show_time, show_pl and show_ping into archived cvars. They
...
were archived originally, but apparently some insane little gremlin keeps
reverting my change without telling me why :)
Tim/Misty/Misty-chan
2002-02-19 00:58:17 +00:00
Bill Currie
70194567fe
kill the usleep. I don't know why, nor do I really care, but it causes qw to
...
not run at full speed even though it shouldn't.
2002-02-18 19:21:53 +00:00
Bill Currie
234305f0ab
make sure networking is initialized before doing /anything/. this should
...
fix the host lookup failurs for win32 when using -f.
2002-02-13 17:58:30 +00:00
Bill Currie
2c1173aadf
totally zap a client slot when the server sends an svc_updateuserinfo with
...
a blank info string as the only way this should ever happen is when the
server is dropping the relevant client so our client might as well drop it
too.
2002-02-13 17:52:53 +00:00
Bill Currie
f1ea286a44
don't bother writing client info for unused client slots. If demo
...
compatability breaks, this is one place to check for why (but I don't think
it will).
2002-02-13 17:50:47 +00:00
Bill Currie
2e8f780e03
return "" from PF_infokey when the client the key is being requested from
...
has been dropped. This fixes a nasty crash at the end of a match in tf 2.8+
2002-02-13 05:49:24 +00:00
Bill Currie
b4000200e3
move the getopt files from qfcc/source to libs/util, link qw-master against
...
libQFutil and enable the option parsting in qw-master for win32.
2002-02-12 17:44:41 +00:00
Bill Currie
a9547414f3
compile fixes for win32
2002-02-12 04:17:31 +00:00
Bill Currie
6f7b3fa0ef
more magic number nukage and add a couple comments
2002-02-11 21:28:18 +00:00
Bill Currie
7c0d8f2345
remove some evile magic numbers
2002-02-11 21:23:28 +00:00
Bill Currie
6c6b8ca4c3
at rxr's request, allow the master server to read in a static list of
...
servers (qw-master -f servers.txt). These servers can not be removed from
the master server without editing the file and restarting the server. The
format of the server list file is a simple line-by-line list of the servers'
addresses and their port (optional: defaults to 27500):
servername([ :]port)?
one per line.
2002-02-11 20:50:54 +00:00
Bill Currie
0ea713eda4
redo the progs loader to allocate all the memory needed for progs in one
...
shot, allowing for caller specified alloc and edicts and zone memory sizes.
(progs + edicts + zone).
2002-01-29 20:53:44 +00:00
Bill Currie
2aa2066019
FPH column for the score list from RvB
2002-01-27 21:19:29 +00:00
Bill Currie
7dc9a93d46
clear the download name on failures
2002-01-23 19:01:19 +00:00
Bill Currie
e8f6fced0b
call BI_Init in the clients
2002-01-20 04:10:36 +00:00
Bill Currie
14ac3acc17
add a builtin (gametype) for detecting the, well, game type (ie, netquake
...
or quakeworld) which just returns the apprproate string. the single player
menu is now acessable in nq but not qw :)
2002-01-20 03:09:03 +00:00
Bill Currie
39d432b6a6
make sure force_commandline in the console data gets set appropriatly
2002-01-20 00:04:50 +00:00
Chris Ison
60e1b2caf3
fixed 3dfx not building due to mis-named lib
2002-01-19 23:06:28 +00:00
Bill Currie
786a88ba25
blah, bloody separate LDADD and DEPENDENCIES. well, this'll fix 'em :P
2002-01-19 05:45:48 +00:00
Bill Currie
6af9a5d8e6
make the builtins an array of pointers so the hash table doesn't get royally
...
screwed up
2002-01-19 03:31:51 +00:00
Bill Currie
10acad1ee4
first tie-in for the renderer (Draw_Pic: the interface will likely change
...
to better match the real interface, but this will do for now)
2002-01-18 22:35:46 +00:00
Bill Currie
bb96a5b736
first use of client side QuakeC :) (and having more than one progs instance
...
seems to work, too). The menu code gets loaded, but is currently otherwise
unused as of yet.
2002-01-18 19:19:33 +00:00
Chris Ison
e3b2bfb81a
clear key states on game start
2002-01-17 22:04:58 +00:00
Bill Currie
5a1c7ecd2b
init order cleanup
2002-01-17 04:11:36 +00:00
Bill Currie
5e8d69589d
make sure the download progress bar gets erased when a dl is done
2002-01-17 02:37:52 +00:00
Bill Currie
c86c5a78bf
finally, the client console is merged
2002-01-16 21:53:42 +00:00
Seth Galbraith
778af4276e
external tga skin loading, doesn't work for players (teamcolor stuff)
2002-01-16 20:32:39 +00:00
Seth Galbraith
93116bc827
external mip texture loading
2002-01-16 01:02:50 +00:00
Bill Currie
5c2a17f7a8
the /much/ better fix for the server crashing when dropping a client
2002-01-14 17:41:38 +00:00
Bill Currie
9d59d953bd
more cleanups
2002-01-12 05:32:21 +00:00
Bill Currie
140f806d40
more Draw_{Character,String,nString} optimisations
2002-01-10 07:48:41 +00:00
Chris Ison
2fb1d13ba9
fix potential bug in mini score display
2002-01-10 04:28:17 +00:00
Chris Ison
859c18dc07
tidy up Draw_String calls and switched to Draw_nString were needed
2002-01-10 03:54:00 +00:00
Chris Ison
f01cc24267
minor bug fixes to Draw_nString changes and Draw_Character tidy up, ie: typos and miss understanding
2002-01-09 23:51:32 +00:00
Chris Ison
6073ff8d58
added Draw_nString for displaying a non \0 terminated string
2002-01-09 21:20:22 +00:00
Ragnvald Maartmann-Moe IV
b13efc3a83
Particle updates. Some cleanups, small speedups, and reimplement id's effects. r_particle_styles 0 to see id's effects.
2002-01-04 03:32:59 +00:00
Bill Currie
013f503738
start getting const-correct on vec3_t params
2002-01-03 05:29:38 +00:00
Bill Currie
1721831b3a
fix r_netgraph_box
2001-12-20 18:07:10 +00:00
Timothy C. McGrath
0c4d220e8e
Fixed a typo in a comment, (modifiefs) changed ancient word 'Quakespy' to
...
more modern 'Gamespy' in help, fixed typos in show_ping and show_pl, (o is not
0) added a more descriptive help line to show_time so people will know it
actually has TWO settings, and localid finally has a description.
Tim (Misty-chan)
2001-12-19 00:40:34 +00:00
Bill Currie
86d05b1df0
heh, they already got dropped (zombie packets). Turns out the problem was
...
SV_DropClient not aborting processing of a client packet, so do the evilness
of using setjmp/longjmp to do so.
2001-12-15 04:58:16 +00:00
Bill Currie
cac001e035
zombied connections get their packets dropped on the floor
2001-12-15 04:13:56 +00:00
Bill Currie
9b4e21a914
minor prototype cleanups
2001-12-14 00:06:58 +00:00
Bill Currie
69e1a9aab5
bah, installed headers made my compile tests fail
2001-12-13 22:56:43 +00:00
Ragnvald Maartmann-Moe IV
2db08923e8
MSG_(Read|Write)(Coord|Angle|CoordAngle)V. Cleanups, and preparation for use of vector ops in msg.c.
2001-12-12 21:56:09 +00:00
Ragnvald Maartmann-Moe IV
f66b7a93e5
Major particle interface cleanup, several bugfixes, and minor performance improvements. Oh, check out "/help easter_eggs" (gl-only, at the moment).
2001-12-11 22:37:30 +00:00
Seth Galbraith
8a47406dcd
allow server to control player angles as in Hack and Slash mod\nclient's player model stands up straight\nmouse and joystick work properly in chase_active 2 and 3 modes
2001-12-11 20:49:10 +00:00
Bill Currie
0bb01f310f
don't crash when there are too many entities for update messages. just ignore
...
the excess.
2001-12-10 03:17:21 +00:00
Ragnvald Maartmann-Moe IV
d4a8224d9b
Change hudswap to use a callback, and instead of passing a swap variable to 10 functions, where only 2 use it, use a global variable. Make a few scr functions static inline, too. Got a totally unexpected ~0.45fps speedup.
2001-12-09 14:05:30 +00:00
Bill Currie
d222f25f0b
correct some error messages
2001-12-07 17:24:16 +00:00
Bill Currie
d4df29de02
cl_paranoid: setting to 0 will disable printing the server address for
...
connectionless packets
2001-12-05 21:56:52 +00:00
Bill Currie
e0364392c7
don't print the highchars flag
2001-12-05 21:38:08 +00:00
Bill Currie
8c9daf023e
possible optimisation for PF_findradius. needs more testing
2001-12-05 19:59:55 +00:00
Bill Currie
f6ef79b7e3
cleanup skin's namespace polution
2001-12-04 20:13:12 +00:00
Bill Currie
be4d2f57ea
clean up Con_Print a smidge
2001-12-04 17:12:16 +00:00
Bill Currie
c130d38c6c
fix more bugs caused by the Hunk_TempAlloc changes and do some more jump
...
prediction fixes for msg_t and sizebuf_t
2001-12-03 22:11:21 +00:00
Bill Currie
650d682d2c
fix some nasty security holes causes by oversized connection strings. slows
...
down overkill slightly :/
2001-12-03 21:06:57 +00:00