Bill Currie
851d203916
work towards a more secure qfs
2003-02-14 22:36:10 +00:00
Bill Currie
6a687f5e45
rename all the globals in quakefs.[ch] to be QFS_* or qfs_*
2003-02-14 19:46:07 +00:00
Brian Koropoff
3c522a83bc
Various cleanups and bugfixes. Added proper line number reporting to
...
errors. A few new builtin functions, such as slice::find and thread::list.
2003-02-14 08:06:01 +00:00
Bill Currie
21d8b4f8dc
link in hw, move the qw and nq networking code into libs/net and make
...
hw-master use libnetchan. there are evil include hacks that will need to be
taken care of in net*.[ch]
2003-02-11 22:48:57 +00:00
Bill Currie
4bd1718475
re-arrange viewsize handling to fix the hud bug in glx
2003-02-11 21:24:27 +00:00
Bill Currie
eaa82b1439
IPv6 compile fixes from doneill (slightly modded)
2003-02-11 05:59:08 +00:00
Bill Currie
f4fdbeee4d
make the low level network code and packet logging less incentuous
2003-02-10 21:41:22 +00:00
Bill Currie
6df2c9679b
white space
2003-02-10 21:04:08 +00:00
Bill Currie
92fc8109e6
change the master timeout to 10 minutes. 5 is too tight as that's the
...
heartbeat time on a server
2003-01-31 04:56:11 +00:00
Bill Currie
bf3da64c43
flush the output each log call
2003-01-31 04:49:31 +00:00
Bill Currie
cd553342e6
give qw-master timestamped logging
2003-01-31 04:11:06 +00:00
Bill Currie
b668134f25
reset the client's msecs when resetting the rest of the network stats
2003-01-30 20:31:44 +00:00
Brian Koropoff
1668dd5c1a
Whoops, missed these.
2003-01-28 22:37:34 +00:00
Bill Currie
0ec386dc76
create the demo path `properly'
2003-01-21 22:19:07 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Bill Currie
a4dfef63c3
make all files with rcsid include config.h
2003-01-14 20:18:29 +00:00
Bill Currie
3b9e7db882
fix the skins dowload location issue (not really to my satisfaction, but it
...
will do for now)
2003-01-10 23:07:04 +00:00
Bill Currie
2e0ed3377c
basic (very!) implementation of the new filesystem directory struture code.
...
All the details of game directories will be fully configurable (search
paths and gamecode file name currently supported). Downloading of skins to
qw/skins only currently broken (will download to $gamedir/skins for now).
2003-01-10 22:47:18 +00:00
Bill Currie
33365ef00d
Hurricane's patch for correcting time kick. ( Closes : #67 )
2003-01-10 18:09:09 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Brian Koropoff
c522970a88
Added a GIB event system for registering GIB callback functions to be
...
started when a named event occurs. Added a few test events to the qw
client and server. Cleaned up the range GIB builtin a bit.
2003-01-03 04:30:38 +00:00
Bill Currie
d02d502d30
check for socklen_t evailability
2002-12-20 23:53:34 +00:00
Bill Currie
dbd5b16883
rename the convenience libs to avoid problems with libx11 vs libX11 on
...
darwin (damn case insensitive file systems :P)
2002-12-20 23:40:47 +00:00
Bill Currie
a84b6bba5d
make stuff static that can be and nuke some useless stuff
2002-12-16 23:26:14 +00:00
Bill Currie
15655c23cd
get snaps working properly
2002-12-10 18:24:38 +00:00
Bill Currie
b62795217a
make m_forward, m_side, m_yaw get saved in qw clients
2002-12-09 22:34:18 +00:00
Brian Koropoff
714f2ced4c
Fixed several GIB bugs, optimized Cbuf_Execute_Stack a bit, changed QW
...
clients to use a separate buffer for stufftext commands.
2002-12-01 07:22:42 +00:00
Brian Koropoff
05bee9dc59
Use Cbuf_Execute_Stack instead of Cbuf_Execute. This guarantees that GIB
...
scripts executed from server.cfg will be run immediately.
2002-11-30 21:12:45 +00:00
Brian Koropoff
034af573c0
User info keys besides *ver are no longer explicitly set to default values
...
because registering their respective cvars already does this. Closes bug
#42 .
2002-11-23 07:00:59 +00:00
Bill Currie
8d35d67997
clean up the multiple definitions of the DF_* flags
2002-11-22 17:45:30 +00:00
Bill Currie
a089934338
fix a really nasty wrong index bug that would cause SIGFPE when recording demos
2002-11-22 05:22:07 +00:00
Bill Currie
ee30860cef
fix a bunch of ;; typos
2002-11-20 21:44:04 +00:00
Brian Koropoff
625e1e36d6
Added Sys_PathType, which reports whether a path is absolute, relative
...
below, or relative above (uses .. to ascend the filesystem). Changed
file functions in GIB to use this. GIB can now be initialized in a
non-sandboxed mode, which at the moment means that GIB scripts run with
carne can access the entire filesystem.
2002-11-14 05:28:54 +00:00
Bill Currie
836c469737
sys.[ch]:
...
handle SIGFPE and allow the registered signal handler to do recovery
rather than bail
progs.h, pr_exec.c, pr_load.c:
if pr_faultchecks is 1 (0 is default), handle division by 0 gracefully
by loading the maximum representable number into the answer
Closes : #58
the rest:
kill the SIGFPE stuff
2002-11-13 19:26:44 +00:00
Bill Currie
f561d25a84
show what console says
2002-11-11 21:29:05 +00:00
Brian Koropoff
0f71b02fd7
Changed the name of GIB builtins from string.length to string::length, etc.
...
Made a few miscellaneous cleanups and enhancements to builtins and changed
all the GIB scripts in CVS to reflect the new naming conventions.
2002-11-11 01:57:34 +00:00
Brian Koropoff
b40400d59c
Moved GIB into libs/gib and made util no longer depend on it. Cleaned up
...
some cruft from a previous incarnation of GIB.
2002-11-09 07:13:52 +00:00
Bill Currie
3d44623b57
change Cmd_Exec_File's api so it can conditionally use normal or quake
...
file system accesses. fixes the map.cfg exec problem
2002-11-08 16:39:28 +00:00
Bill Currie
864b181b99
d'oh, COM_FOpenFile could probably do with a re-design of its api :P
2002-11-08 03:27:05 +00:00
Bill Currie
ec0273e3dc
do a pre and post pass for maps/mapname.cfg and use maps_default.cfg if
...
maps/mapname.cfg doesn't exist.
2002-11-08 02:43:04 +00:00
Bill Currie
8d736d7424
uptime (via status) for qw-server and map time and auto map start for
...
nq-server
2002-11-07 16:43:05 +00:00
Bill Currie
ca4b3acd6c
big protototype cleanup. Now, except for a few cases, all non-static
...
prototypes are in headers files.
2002-11-05 19:12:51 +00:00
Bill Currie
d605394a8d
fix a nasty buffer overflow found by OptiMus
2002-10-25 21:07:20 +00:00
Bill Currie
bbb4574f01
need skill, too! :P
2002-10-24 04:38:59 +00:00
Bill Currie
9298204208
support tonik's single player/coop qw port
2002-10-24 02:45:16 +00:00
Bill Currie
3f8920e5a3
apply Lorenzo Colitti's IPv6 mask patch ( Closes : #57 )
2002-10-23 22:55:28 +00:00
Bill Currie
cfffd05c71
missed these for mvd writing :P
2002-10-23 02:44:42 +00:00
Bill Currie
65033cbe64
make no_pogo_stick 3 force friction whether or not jump is active
2002-10-18 17:47:31 +00:00
Bill Currie
ef33b9754b
support as many packet entities in demos as qwex does (ie, 196). Makes me
...
wonder if I should make the server support sending 196 packet entities to
qf clients.
2002-10-17 16:03:18 +00:00
Bill Currie
ce2cfbcf45
clear beam end time when beams expire
2002-10-11 22:13:40 +00:00
Bill Currie
eb8302170d
hmm, missed that one
2002-10-11 20:54:34 +00:00
Bill Currie
9f7c669370
various win32 compile fixes for the latest mingw (not fully working due to
...
LPCWAVEFORMATEX)
2002-10-11 20:47:17 +00:00
Bill Currie
c1cad316fd
fix some missing windows files
2002-10-11 17:43:51 +00:00
Bill Currie
347815f3e3
Call CL_UpdateScreen a few extra times to make sure the screen gets updated
...
before any lengthy pauses occur
2002-10-11 03:40:41 +00:00
Bill Currie
5f8118ce1f
bah
2002-10-10 03:35:45 +00:00
Bill Currie
5e13394afc
rewrite the user matching to assume a clean number refers to uid rathern
...
than an leet matched name (Closes : #56 )
2002-10-10 02:17:11 +00:00
Bill Currie
8591a4cddb
print the current map time with the map name for "map"
2002-10-09 22:41:07 +00:00
Bill Currie
95d504fade
make sv_maxrate changes effective immediately
2002-10-08 04:08:07 +00:00
Bill Currie
80d2f8e27d
make it so the demo recorder and normal protocol use common code to
...
calculate the client stats
2002-10-07 22:15:19 +00:00
Bill Currie
cb368e0b3a
support writing the extended stats to mvds
2002-10-07 18:58:54 +00:00
Bill Currie
fb8a5afda5
fix a bunch more potential message writes while playing demos
2002-10-07 03:58:08 +00:00
Bill Currie
a0f49816e5
cl_parse.c:
...
print the name of the last svc parsed when a badread happens
sv_ents.c:
allocate enough space for the svc_nails2 nails
2002-10-06 04:30:50 +00:00
Bill Currie
afad07b8e7
never print the rcon password given as it may be a legitimate password for
...
another server (ie, confused person :)
2002-10-06 03:54:54 +00:00
Bill Currie
9145388750
/never/ write to the message buffers when playing a demo. This avoids the
...
"SZ_GetSpace: overflow" messages when playing denis (especially mvd in 1st
person mode).
2002-10-05 04:52:09 +00:00
Bill Currie
6e015bba1a
d'oh, forgot to fix the FIXME :) fixes the seg on demo record start when
...
more than 1 player is invovled
2002-10-04 03:36:51 +00:00
Bill Currie
e698af0208
cut some spam
2002-10-04 03:02:38 +00:00
Bill Currie
212e40b54a
mvd recording :) (thanks to qwex 0.165b and highlander)
2002-10-04 02:29:03 +00:00
Bill Currie
30c8646e70
bring in sv_demo.c from qwex. This is only the beginning of the mvd server
...
side support.
2002-10-03 21:00:35 +00:00
Bill Currie
d5117e27ee
read excess nails correctly for nail2
2002-10-03 15:10:29 +00:00
Bill Currie
d70caac6d5
whitespace
2002-10-02 22:56:34 +00:00
Bill Currie
2383340031
mvd playback support. seems to work (get some weird entities hanging around
...
but I suspect that's the mod used in the demo I was testing with), but
probably needs some cleanup.
2002-10-02 21:56:45 +00:00
Bill Currie
533a74aa75
don't segfault if the client player temp info key is null (can happen in
...
mvd)
2002-10-02 15:42:39 +00:00
Jeff Teunissen
510ac98c9b
PF_Fixme(): better error message.
2002-09-30 16:47:41 +00:00
Ragnvald Maartmann-Moe IV
eb54acf140
Whitespace.
2002-09-28 02:33:39 +00:00
Bill Currie
5397ca66ca
bring back the timekick code but make it an alternative (default) to the
...
new timecheck code.
2002-09-27 03:32:20 +00:00
Bill Currie
6bf98db650
kill most of the diffs
2002-09-26 20:58:03 +00:00
Bill Currie
ef49e4cf17
get the skybox serverinfo working
2002-09-18 04:23:58 +00:00
Bill Currie
6fa4205675
tidy up SV_Serverinfo_f, move Cvar_Info from sv_cver.c to sv_ccmds.c and
...
make the client no_pogo_stick cvar properly reflect the serverinfo
2002-09-17 05:11:28 +00:00
Ragnvald Maartmann-Moe IV
5547c56342
Fix fps limiting.
2002-09-14 20:16:15 +00:00
Bill Currie
d9eff16941
allow players to run down ramps normally when no_pogo_stick bit 1 is set
2002-09-14 03:34:33 +00:00
Bill Currie
f7b4dffcc0
get larger player skins working in gl
2002-09-13 05:32:28 +00:00
Bill Currie
e8baa18abd
correct a spelling error
2002-09-13 04:31:10 +00:00
Bill Currie
a6318a3baf
enhanced no_pogo_stick control
2002-09-13 04:30:18 +00:00
Bill Currie
028202ce3f
silence the MAX_PACKET_ENTITIES warning for general use
2002-09-13 00:58:42 +00:00
Ragnvald Maartmann-Moe IV
7bf16df448
More QSG2 work.
2002-09-12 22:09:55 +00:00
Ragnvald Maartmann-Moe IV
17a71cc151
Allow float cl_maxfps settings, clean up code a bit.
2002-09-12 20:49:40 +00:00
Brian Koropoff
7f4cd09e9d
Removed the old timecheat protection and added a system that adjusts
...
time to what the server thinks is correct when too much inaccuracy
builds up. This nearly eliminates all speed cheating, both normal and
reverse, except for a brief burst before the protection kicks in. Might
need cleaning up/tweaking.
2002-09-12 04:57:40 +00:00
Bill Currie
f0c96dd15c
fix a segfault causing silly
2002-09-11 19:26:44 +00:00
Ragnvald Maartmann-Moe IV
0b47b60129
Whitespace.
2002-09-11 18:58:19 +00:00
Bill Currie
9f6f50699d
remove vid_basepal, creating vid.palette (current palette) and host_basepal
2002-09-10 03:51:10 +00:00
Ragnvald Maartmann-Moe IV
ceb264ce87
Make nq lightning handling match qw, which also gets some cleanups.
2002-09-09 20:02:52 +00:00
Bill Currie
4001d2574b
be sure to use the correct key for allocating effects dlights on players
2002-09-09 16:26:39 +00:00
Bill Currie
82b2f30a20
actually check that the entities match before returning the overridden beam
2002-09-09 15:56:29 +00:00
Bill Currie
cc6c82007c
clear validsequence on disconnect so we don't do prediction before we get a
...
world model when reconnecting
2002-09-09 04:20:15 +00:00
Chris Ison
460ce5c0e6
clear cl.worldmodel on disconnect. make sure we don't parse server messages when we are disconnected
2002-09-08 03:21:53 +00:00
Bill Currie
2cd6b68669
fix a redefined #define
2002-09-06 21:59:02 +00:00
Bill Currie
67b01ca5ba
cleanup the output of connectionless prints a bit
2002-09-04 19:13:45 +00:00
Bill Currie
5597dc2408
make maplist work over rcon
2002-09-04 18:56:53 +00:00
Bill Currie
4373e4b4de
just bail from SV_Map_f if the requested map doesn't exist so play doesn't
...
get interupted.
2002-09-04 18:26:34 +00:00
Bill Currie
7af8e2952e
zinx' klik mod makes heavy use of makestatic and that was causing the
...
singon buffer to overflow. call SV_FlushSignon before writing the static
entity data.
2002-09-04 15:12:05 +00:00
Bill Currie
ea7576286a
diff--
2002-08-30 02:18:53 +00:00
Bill Currie
d8c1c735a6
up MAX_PHYSENTS from 32 to (32 + MAX_PACKET_ENTITIES) (ie, 96). While this
...
will potentially slow down both client and server, player collision physics
will be more accurate as more entities will be clipped against (and the
client should never complain about physent overflow again).
2002-08-29 17:32:16 +00:00
Ragnvald Maartmann-Moe IV
92f3e230af
Physics bugfix.
2002-08-29 15:42:37 +00:00
Bill Currie
d15177988d
we haven't sent heartbeats to the id masters by default for a long time
2002-08-28 21:13:13 +00:00
Bill Currie
3be502630c
don't call SV_FinalMessage in SV_Error until networking has been
...
initialized so bogus error messages don't get printed
2002-08-28 21:12:22 +00:00
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