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
Ragnvald Maartmann-Moe IV
5a356259f5
Port a few of Tonik's networking improvements, under different names.
...
cl_maxnetfps (his cl_c2spps), controls number of frames worth of command packets sent per second. So you can now crank your cl_maxfps, and tweak networking independently.
Also, cl_spamimpulse (his cl_c2sImpulseBackup), controls number of duplicate packets spammed to attempt to make impulses reliably reach the server. 3 is default, same as id. Experiment with lowering it at your risk (higher does nothing).
2001-12-03 09:01:17 +00:00
Bill Currie
44b36e4d6b
sadly, I have to revert my low-copy code. it doesn't gain /enough/ to be
...
worth the bugs it's introduced (it's extremely difficult to do both low-copy
/and/ correct entity updates).
2001-12-03 05:36:39 +00:00
Bill Currie
a619739bab
fix the server console for static builds (hmm, non-curses only?)
2001-12-02 20:11:21 +00:00
Bill Currie
f233c9edc9
nuke an obsolete function
2001-12-02 06:27:38 +00:00
Bill Currie
b436fb62a2
print a message when quitting (to help find a misterious silent shutdown)
2001-12-02 04:14:44 +00:00
Bill Currie
27ff29214e
print a warning and recover instead of crashing when the model is null
2001-12-02 00:38:44 +00:00
Bill Currie
5b13c1a07d
fix rocket trails in demos
2001-12-02 00:18:09 +00:00
Bill Currie
13d67a4c67
fix an oopsie with low-copy and software clients
2001-12-01 22:26:17 +00:00
Bill Currie
6a51021f86
low-copy networking code. gives about 3-4% speed boost to overkill (null
...
renderer).
2001-12-01 22:16:50 +00:00
Ragnvald Maartmann-Moe IV
fc8d9417cb
Remove commented out code.
2001-11-30 22:32:17 +00:00
Ragnvald Maartmann-Moe IV
f4af73cd00
Commit serplord's camera bugfix.
2001-11-30 22:30:23 +00:00
Bill Currie
4f2f686834
r_netgraph_alpha works again
2001-11-30 03:51:43 +00:00
Bill Currie
95fe4d07b1
more PARANOID nukage
2001-11-29 07:04:31 +00:00
Ragnvald Maartmann-Moe IV
f192287a3b
U_EXTEND fixes taniwha wanted me to commit for him.
2001-11-28 23:51:49 +00:00
Bill Currie
0652a9d90c
initialize the projectiles array so nails are visible
2001-11-28 03:17:41 +00:00
Bill Currie
b5162177b2
tiny speed gain (0.1%)
2001-11-28 00:54:20 +00:00
Bill Currie
f7c90759af
clean out the non-renderer fields from entity_t. not yet a noticable gain
...
but more work needs to be done on the linking code in the client. However,
there /does/ seem to be a slight gain with possibly less variance.
2001-11-27 21:42:49 +00:00
Bill Currie
4689350283
fix qport
2001-11-27 04:50:41 +00:00
Bill Currie
c4646b9685
take care of \r*\n line endings
2001-11-26 23:23:29 +00:00
Bill Currie
e2db0ed434
allow oolormap to be set for the last client
2001-11-26 05:16:04 +00:00
Bill Currie
87d6278a87
move the physent overflow tests to the correct locations
2001-11-26 01:52:08 +00:00
Bill Currie
d99da515f7
cl_ents.c:
...
catch and moan about physents overlows (needs more work, but I don't
grok the code well enough yet to do more).
pmovetst.c:
correct a spelling error
2001-11-25 23:25:53 +00:00
Bill Currie
e99b422628
extinguish gl_fires. it's semi-broken, generally nasty (code wise) and
...
kinda tacky. also results in a slight speed boost:)
2001-11-25 06:24:26 +00:00
Ragnvald Maartmann-Moe IV
4d406337b6
Move gl_fires into gl, where it belongs.
...
Also some small cleanups in particles.
Brighten grenade smoke a tiny bit, so it's not so invisible in the typically dark quake areas.
And some minor cleanups to water rendering.
2001-11-24 08:21:07 +00:00
Bill Currie
4eebbb8ae6
take the hull/line fixes to the server internals and re-merge world.c for
...
nq and qw. This fixes the corner sticking for everything.
2001-11-23 18:58:23 +00:00
Bill Currie
7cad26038e
fix the getting stuck on corners bug
2001-11-23 06:27:32 +00:00
Bill Currie
0060c9cc91
disable denormal exceptions on alpha
2001-11-21 21:47:00 +00:00
Bill Currie
0be2a31f2e
lots of code cleanup. Merge Mod_LoadAllSkins, merge the sw32 model loading
...
code into the sw model loading code, remove all refs to r_pixbytes from the
sw renderer (it was never anything but 1), kill libQFmodels_sw32, remove
all the 16 bit code from the 8 bit sw renderer.
2001-11-21 19:13:53 +00:00
Chris Ison
3e34fc83e4
-3dfx re-enabled
2001-11-21 02:36:48 +00:00
Bill Currie
d991feb2d0
fix some compile issues
2001-11-21 02:07:55 +00:00
Bill Currie
2e97cfddac
freebsd compile fix
2001-11-20 06:27:48 +00:00
Bill Currie
4dfc6b1285
don't bother speed cheat checking spectators (does it /really/ matter?) and
...
don't use va for SV_BroadcastPrintf.
2001-11-20 01:13:30 +00:00
Bill Currie
9d0320cc89
various portability improvements
2001-11-18 23:40:01 +00:00
Bill Currie
f0c03f8331
minor cleanups of Sys_ConsoleInput. Cleaning it up properly will take more
...
work, but this removes most of the redundant instantces. nq-sdl (or -sgl)
-dedicated won't have console input, nor will dedicated servers that don't
load a console plugin.
2001-11-18 22:08:24 +00:00
Bill Currie
46835e79fe
more quakeforge compiling on alpha patches
2001-11-17 05:26:30 +00:00
Bill Currie
1a99fe74ab
fix one of who knows how many issues with gcc 2.96 (at least I don't have to
...
worry about not being able to reproduce them on a non-intel box:)
2001-11-17 04:30:51 +00:00
Bill Currie
fade981a40
spelling and grammar corrections to the spead cheat message
2001-11-16 04:41:39 +00:00
Bill Currie
cc66577f1c
fixes for building on alpha (linux)
2001-11-16 01:09:17 +00:00
Bill Currie
288ec4251c
various fractional speedups
2001-11-15 19:37:29 +00:00
Bill Currie
06622fa164
-mem now also works as a cvar (and there was much rejoycing:). sv_mem_size
...
(server) and cl_mem_size (client), in megabytes (ie, same as -mem). I haven't
done nq yet as I'm uncertain what to /call/ it :)
2001-11-14 20:18:37 +00:00
Bill Currie
748dc49218
report the type number of the bad type for temp ents
2001-11-13 03:14:34 +00:00
Bill Currie
9ca6728fa4
fix restarting timedemo from trashing itself
2001-11-12 22:50:27 +00:00
Bill Currie
2b560ad37d
replace a missing ;
2001-11-12 21:42:10 +00:00
Bill Currie
b406ea24a2
fix some oversights on my part that could cause weird output in the timedemo
...
stats
2001-11-12 21:35:48 +00:00
Bill Currie
504b804b4c
replace many Host_EndGame calls with Host_Error and make Host_Error not bail
...
out of the program in most cases
2001-11-12 20:46:11 +00:00
Bill Currie
35ae176c4a
statistics for multiple timedemo runs (avg, std deviation, min, max)
2001-11-12 07:27:44 +00:00
Bill Currie
6beb96100a
fix a seg when the chat message doesn't have : in it
2001-11-12 03:32:04 +00:00
Bill Currie
fe50e4b1e5
cache the cshifts serverinfo value for further reduction of Info_ValueForKey
...
calls.
2001-11-11 07:02:38 +00:00
Bill Currie
e435414b4b
fix a case where the userinfo is 0 that I was not expecting. This fixes the
...
crash on reconnect
2001-11-10 22:55:10 +00:00
Timothy C. McGrath
47e20a0652
Disabled f_* by default. I do not believe it should be turned on unless the
...
user explicitly enables it - I don't want people running around with this
on and them not knowing it exists nor how to disable it.
Timothy C. McGrath
(Misty-chan)
2001-11-10 00:12:04 +00:00
Bill Currie
db929ff2ef
fix a glaring security hole
2001-11-09 07:33:32 +00:00
Bill Currie
0dffb8bfcb
new command: condump <file>
...
dumps the console output to the named file in the current gamedir
2001-11-09 07:23:28 +00:00
Bill Currie
9a4a91bad4
report the error number for unknown errors
2001-11-09 07:22:34 +00:00
Ragnvald Maartmann-Moe IV
67cec900e5
cvar_t *gl_sky_divide; // not used but needed for linking
...
Umm, no, not needed. In fact, it breaks static compiles. But not anymore, since it's gone.
2001-11-08 00:45:50 +00:00
Bill Currie
c5aec15569
This prepares for moving the net_svc code to a branch allowing both network
...
code cleanups and general performance work to be developed in relative peace.
While cleaning up the networking code /is/ important, fixing QF's perfomance
issues is of much higher priority.
2001-11-07 08:24:56 +00:00
Brian Koropoff
ccd665e80c
This commit removes maplist.c and replaces it with filelist.c, which
...
contains general functions for creating lists of a type of file and
provides the commands maplist, skinlist, skyboxlist, and demolist.
2001-11-06 07:14:29 +00:00
Bill Currie
42f8b98f27
win32 compile fix
2001-11-06 04:44:26 +00:00
Bill Currie
15b381909e
move maplist from quakefs.c to console/maplist.c. Unfortunatly, until the
...
client console plugin is usable, this means the clients link maplist.o
directly.
2001-11-05 22:24:16 +00:00
Adam Olsen
e0dfa2b453
- convert ALL the remaining svc's on the client. woot, hehe
2001-11-05 20:13:27 +00:00
Bill Currie
54ddb94132
urk, I forgot Info_ParseString uses Hunk_TempAlloc :/
2001-11-05 17:19:26 +00:00
Bill Currie
6c2145f9b5
make work with the new info api and fix what looks to be a malloc bug
2001-11-05 17:09:27 +00:00
Bill Currie
b286afc7f7
don't install skin_stencil.h
2001-11-05 16:22:03 +00:00
Adam Olsen
ded1b4c057
- add some missing boundschecking to CDAudio_Play's track remap (in
...
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
Adam Olsen
d693bc27ff
- merge the svc_strings arrays for cl_parse.c and net_packetlog.c into
...
net_svc.c, and add add a NET_SVC_GetString function to access it.
As an added bonus, it actually boundschecks it!
- preexpand that annoying SHOWNET macro, which was only used twice,
and was quite small and pointless
- whitespace cleanup and a comment typo fix
2001-11-05 07:53:03 +00:00
Brian Koropoff
008b59b777
The beginnings of an f_* reply system have been added. f_version works
...
like normal, f_skins reports the average percent fullbright for all loaded
skins, and f_skins skinname reports the fullbright percent for a signle
skin. cl_freply controls the time in seconds before another query can be
made. Set it to 0 to disable them. More queries will be added later.
The table for accessing special characters from the console has been
tweaked a bit. Expect it to get tweaked more in the future.
2001-11-05 07:23:51 +00:00
Bill Currie
f91abcb3d5
fix the default for cmd_warncmd for the server
2001-11-05 02:15:30 +00:00
Bill Currie
c443e2c024
info.c:
...
support unlimited info strings when maxsize is 0
sv_main.c:
make localinfo unlimited
2001-11-05 02:08:20 +00:00
Bill Currie
ac93a620d7
remove instead of set "" info keys for localinfo
2001-11-05 02:03:37 +00:00
Bill Currie
bf4570de72
fix some reversed logic that caused the server to send the wrong info keys
...
to a connecting client.
2001-11-04 23:02:43 +00:00
Adam Olsen
87a0a4d7d6
- a TODO item
...
- converted svc_packetentities and svc_deltapacketentities
- added some convenience defines for U_foo grouping
- tweaked Host_NetError's "please report this" print, but it still
doesn't work
2001-11-04 21:23:22 +00:00
Bill Currie
7c5c53774f
cache some info strings (team and skin from client user info) and values
...
(no_pogo_stick and teamplay from server info) to cut down on the calls to
Info_ValueForKey (from over 550k to 23.5k in spam2.qwd).
2001-11-04 19:06:50 +00:00
Bill Currie
dcd9b0040e
rewrite the info strings to use hash tables instead of a static string.
...
This required changes to the api (info_t instead of char *) but should be
a net gain in speed (not a lot, admittedly: it was pretty fast to begin
with, but this paves the way for some other changes I have in mind).
2001-11-04 07:50:39 +00:00
Adam Olsen
c5f4af0109
- convert svc_playerinfo, cvs_nails, svc_modellist, and svc_soundlist
2001-11-03 10:48:55 +00:00
Bill Currie
6daf712d5f
turns out the server can send MAX_MSGLEN + 8 bytes, so handle this when
...
reading demo packets.
2001-11-03 00:54:18 +00:00
Bill Currie
e1e56c417d
Host_NetError is not appropriate for an oversize packet as that packet's data
...
has not yet been read.
2001-11-02 23:57:22 +00:00
Adam Olsen
d7e5f88ee3
- conver svc_spawnstaticsound, svc_updateuserinfo, svc_setinfo,
...
svc_serverinfo, and svc_download
I havn't tested svc_download, since I don't want to play with having
seperate dirs for the client vs server on one computer.
2001-11-02 14:52:29 +00:00
Adam Olsen
9f088567d1
- convert svc_sound, svc_spawnbaseline, svc_spawnstatic, and
...
svc_tempentity
there isn't actually anything in the server that uses svc_tempentity,
only the progs do, so it's currently unused.
2001-11-02 10:40:20 +00:00
Adam Olsen
a77619f665
- convert svc_damage and svc_serverdata emitting
2001-11-02 08:10:41 +00:00
Adam Olsen
56f1d6f49b
Begin phase 2 :)
...
- link net_svc.c to the server
- add a NET_SVC_Print_Emit function
- make the server use the above instead of svc_print manually
It's actually kind of ugly, because of how backbuffers are
implimented. Hopefully I'll be able to clean that up later.
2001-11-02 07:32:19 +00:00
Adam Olsen
f9ab09356e
- make nails, soundlist, and modellist return NET_ERROR when there's
...
too many items in the block
2001-11-02 06:39:51 +00:00
Adam Olsen
1c30d89149
- add a net_status_t enum, containing NET_OK, NET_SHORT, and
...
NET_ERROR.
- change all the NET_SVC_*_Parse return values from qboolean to
net_status_t
- make NET_SVC_{,Delta}PacketEntities_Parse return NET_ERROR instead
of 1 (NET_SHORT now) if the struct size is exceeded
2001-11-02 06:00:21 +00:00
Adam Olsen
c79294f57d
- consider ':' and '"' to be special characters in names, just in case
...
- make sure to update the infostrings if they tried changing a name
and it was the same after sanitizing
2001-10-31 03:05:59 +00:00
Adam Olsen
388c3a78ee
- fix handling of highbit whitespace in names, as well as stripping
...
all highbits from names
2001-10-31 02:18:09 +00:00
Adam Olsen
2bbb759232
- change the sv_kickfake default to 0, so it replaces \r with #
...
instead of kicking
2001-10-31 00:30:31 +00:00
Ragnvald Maartmann-Moe IV
c174188c0c
Remove local len, use mathlib's Length, among other cleanups.
2001-10-30 20:00:05 +00:00
Adam Olsen
c0f363e05c
it seems that map changes generate from mismatches, so change that
...
back to a silent warning (but also make it drop the packet)
2001-10-30 09:15:09 +00:00
Adam Olsen
61f819b5c9
- further error checking rearangements, putting the "old packet" check
...
first, and making it a Con_DPrintf that just invalidates that packet
2001-10-30 02:29:04 +00:00
Adam Olsen
950331a1f4
clean up a few error messages, rearange error checks, and change some
...
"impossible" warnings into errors.
2001-10-30 00:24:25 +00:00
Bill Currie
ddd7989b85
turns out I was wrong about how U_REMOVE gets into an update packet (thanks
...
Rhamph) but the change from short to int in words does a nice bit to the
speed.
2001-10-29 21:46:00 +00:00
Bill Currie
5819fc200c
shrink the packet entities word arrays down to MAX_PACKET_ENTITIES + 1 and
...
ensure the array is always terminated with a 0. This seems to give -x11 a
0.03 fps (0.06%) boost.
2001-10-29 19:15:29 +00:00
Bill Currie
85c9e0ab1e
more externs cleaned up
2001-10-29 17:46:03 +00:00
Bill Currie
d04edfaaf2
whitespace
2001-10-29 05:42:10 +00:00
Adam Olsen
36b8256b3a
- fixed net_packetlog to use Con_Printf when there's no logfile open,
...
rather than a stdout hack (which had problems with buffering)
- actually parse net_deltapacketentities
- print offset within net_{,delta}packetentities blocks for each
entity
- fix indenting in Log_Delta
- fix off-by-one for packet offset printing
- fix a miss-parsing of svc_deltapacketentities
(MAX_PACKET_ENTITIES does NOT include U_REMOVE entities)
- remove "full update" handling for CL_ParseDeltaPacketEntities, since
that only happens with svc_packetentities
2001-10-29 00:32:16 +00:00
Bill Currie
78a3e398d5
* taniwha gets medieval on extern
2001-10-28 04:23:37 +00:00
Adam Olsen
f3fe1cec87
- add a request to send any errors to quake-devel in Host_NetError
...
- cleanup CL_ParseDeltaPacketEntites a little bit
- change some warnings in CL_{,Delta}PacketEntites to errors, as well
as full updates with delta*, so that they can either be debugged or
shown not to be needed
2001-10-28 00:51:14 +00:00
Bill Currie
d62c381262
Con_Printf -> SV_Printf for some cases that should be
2001-10-27 22:33:42 +00:00
Bill Currie
aa6472da2b
cleanup qport usage a little
2001-10-27 08:28:15 +00:00
Brian Koropoff
05f35f9cd4
This adds the ability to access special characters in console commands by proceeding certain characters with $. See libs/util/cmd.c for the conversion table. Preceeding a character by # will shift it up or down by 128, which basically is useful for accessing the brown letters and numbers. All special characters were removed from Team_ParseSay, and variable substitution now takes the form of ${var} to prevent conflicts with special character substitution. Special character access is controlled by cmd_highchars, which defaults to off.
2001-10-27 04:34:53 +00:00
Adam Olsen
b8eb324ded
- make CL_ParseServerMessage's loop break if we disconnected while it
...
was running
2001-10-26 16:01:59 +00:00
Bill Currie
7910fe026b
nuke FlushEntityPacket and CL_ParseDelta as they are both redundant and
...
FlushEntityPacket now causes a crash.
2001-10-26 15:04:51 +00:00
Adam Olsen
b5856e8be0
- audit of the net_svc.c users' sanity checking
2001-10-25 23:26:33 +00:00
Adam Olsen
3bba5398ba
- audit malloc usage. now everything checks the return value :)
2001-10-24 22:50:06 +00:00
Adam Olsen
dd19f7b500
- convert svc_deltapacketentities
...
- add a Host_NetError that dumps a packet log and disconnects, and use
it instead of Host_EndGame in most cases
- fix a couple multiply-defined vars
2001-10-24 15:23:02 +00:00
Bill Currie
4ae92c8d42
new cvar: sv_hide_version_info. This hides QuakeForge specific info strings
...
from progs.
2001-10-24 02:50:11 +00:00
Bill Currie
b5341f0d13
we now compile and link with -fno-common. this cleans up the multiple,
...
uninitialized declarations of variables.
2001-10-23 16:55:23 +00:00
Adam Olsen
818f5de658
- rename CL_ParsePacketEntities to CL_ParseDeltaPacketEntities
...
- fix various spots in the above that called Host_EndGame but didn't
return
- switched the order of modellist and soundlist in net_svc*, to
conform with the rest of the files
- create a new CL_ParsePacketEntities, that only handles
svc_packetentities (so it's much simpler). it uses net_svc*
2001-10-21 14:21:30 +00:00
Bill Currie
cc89fb23c8
fix for win32 (need to init winsock)
2001-10-21 00:48:38 +00:00
Adam Olsen
d69c8013aa
- convert svc_spawnbaseline and svc_spawnstatic
...
Only notable ones left now are packetentities and deltapackentities :)
2001-10-20 11:59:42 +00:00
Adam Olsen
f779a03254
- hopefully a fix for master's socket errors on windows
...
- start of static server support
2001-10-20 08:20:27 +00:00
Adam Olsen
32fbdba399
- move the MAX_PROJECTILES def from cl_ents.c to bothdefs.h
...
- convert svc_nails
2001-10-20 08:10:25 +00:00
Adam Olsen
a4d9507895
- roast the unnecesary MAX_STYLESTRING def from bothdefs.h
...
- rename the message argument of NET_SVC_*_Parse to msg
- rename the other argument to block, for brevity
- convert svc_spawnstaticsound
- convert svc_serverinfo
- convert svc_playerinfo
- fix a exploitable buffer overflow with svc_lightstyle
2001-10-19 21:20:49 +00:00
Adam Olsen
c2807a6da1
- and svc_temp_entity too. Probably the last I'll do today.
2001-10-18 18:48:49 +00:00
Bill Currie
6ea400fb30
d'oh, forgot to compile test :P
2001-10-18 17:03:50 +00:00
Bill Currie
00bfc128a0
more printf elimination
2001-10-18 16:49:40 +00:00
Adam Olsen
9cef5a1edc
- svs_sound too of course
2001-10-18 13:33:12 +00:00
Adam Olsen
eb9c515c2a
- yada svc_damage, svc_serverdata
...
- remove a no longer valid commit from NET_SVC_UpdateUserInfo_Parse,
and make it always set name/data to 0 if they're unused
2001-10-18 08:57:03 +00:00
Adam Olsen
cf8380b528
- change NET_SVC_*_Parse to return qboolean, indicating if they had a
...
bad read
2001-10-18 07:34:38 +00:00
Adam Olsen
d2fe052d59
- convert svc_setinfo, bla bla, you know hte drill
2001-10-18 07:23:33 +00:00
Adam Olsen
634c2c6acf
- rename CL_UpdateUserinfo to CL_ParseUpdateUserInfo for uniformness
...
- rework svc_updateuserinfo/CL_ParseUpdateUserInfo like everything
else
2001-10-18 07:01:40 +00:00
Adam Olsen
7d26e6e2b9
- move the svc_print handling into a seperate function (CL_ParsePrint)
...
- add NET_SVC_{Print,Download}_Parse functions and assosiated
net_svc_{print,download}_t structs.
- make CL_Parse{Print,Download} use the above stuff
2001-10-18 06:35:28 +00:00
Bill Currie
6c0d760102
msg.h:
...
give mst_t a buffer to hold unterminated message strings
kill MSG_ReadStaticString and MSG_ReadStringLine
msg.c:
kill MSG_ReadStaticString and MSG_ReadStringLine
MSG_ReadString: implement the buffer for unterminated message strings
and update readcount on badread
cl_main.c:
go back to MSG_ReadString and fix up the resulting const char * issues
cl_parse.c:
rewrite the cl_mofake code all because of an uninitialized variable :)
sv_main.c:
use MSG_ReadString instead of MSG_ReadStringLine because
Cmd_TokenizeString really doesn't care about a terminating \n
2001-10-18 06:23:26 +00:00
Adam Olsen
18036b63d9
- change MSG_ReadString to return const char * and return a pointer
...
directly into the packet data.
- change a bunch of char *'s to const char *'s for the above. Only
thing that had trouble was the cl_nofake handler, which I changed to
use a local buffer.
- add MSG_ReadStaticString which acts like the old MSG_ReadString,
specifically that it uses a static buffer and tollerates
unterminated strings.
- add a Q_strnlen function, and make strnlen use it if strnlen is
undefined.
- Add a net_svc.h and net_svc.c which will preparse svc messages into
structs, for easier handling. Currently only soundlist and
modellist are done.
2001-10-18 04:44:58 +00:00
Bill Currie
3ab66f5e75
remove the non-qw code and the ifdef QUAKEWORLD stuff
2001-10-18 03:19:04 +00:00
Bill Currie
f9fcf2f09f
freebsd fixes
2001-10-17 18:49:25 +00:00
Bill Currie
7883280d9a
whitespace
2001-10-16 22:55:37 +00:00
Bill Currie
2d068c0745
massive windows.h and WIN32 cleanup.
2001-10-16 21:40:45 +00:00
Bill Currie
6ad55725c2
chase cam seems to work properly now
2001-10-11 16:26:09 +00:00
Bill Currie
a7abedccbb
fix a woopsie that brok playdemo
2001-10-11 04:54:50 +00:00
Bill Currie
c0f0dcb4b8
sort of apply Serplord's chasecam fix (it wasn't complete)
2001-10-11 04:43:40 +00:00
Bill Currie
3c4e094493
timedemo looping. "timedemo overkill 10" will give 10 runs
2001-10-10 22:00:26 +00:00
Adam Olsen
9f7e1f864e
- add a pr_double_remove cvar, that either ignores (0), warns about
...
(1), or causes a fatal error (2) when the progs remove an already
removed entity. default is 1.
- fix a segfault in FFnickFF parsing that causes a segfault
2001-10-09 22:47:14 +00:00
Bill Currie
3a366f4f7e
break out the backtrace code from PR_RunError into PR_DumpState and use
...
PR_DumpState instead of PR_RunError in seg_fault_handler so we get both a
progs trace /and/ a core file (ulimit allowing)
2001-10-08 03:46:44 +00:00
Bill Currie
5b8aca001b
diff snr--
2001-10-07 18:45:23 +00:00
Adam Olsen
0785610296
- fix a little mistake in SV_PrintToClient that'd cause it to
...
segfault if your first call was with "". Probably could cause
crashes too
- add a string.c file to libQFutil, with a Q_strcasestr function,
which strcasestr is defined to if it's not already defined. (we'd
get that with glibc if we defined __USE_GNU, but we don't)
- make client_t and SV_ExtractFromUserinfo both use NAME_MAX for
their name arrays, instead of 32 for one and 80 for the other
- rewrite almost all of SV_ExtractFromUserinfo's name handling.
- \r, \n, and \t are all converted to spaces
- leading/trailing spaces are stripped
- consecutive spaces are reduced to a single space
- empty names are considered bad
- user-* nicks are considered bad (unless forced to them)
- a name containing console or admin is considered bad
- a name that already exists is considered bad
- if they have a bad name it gets forced to user-%d, where %d is
their userid
- netname in the progs is now updated properly
- name changes are always reported unless it's the initial setting,
rather than only if they're full connected and not a spectator
- finally, if the name change fails (info string exceeded), give
them the boot. (before this was only done for duplicate names)
That's about it :)
2001-10-04 19:11:39 +00:00
Bill Currie
1929797cc9
get nq-server so it runs. part of this involved renaming cl_warncmd to
...
cmd_warncmd
2001-10-03 21:25:43 +00:00
Bill Currie
bbc83c30ca
hey, it segs, but who cares? so does nq-glx -dedicated :P
2001-10-03 19:52:03 +00:00
Bill Currie
a1d2cf3532
duplicate file name cleanup and make dist works
2001-10-03 17:50:36 +00:00
Ragnvald Maartmann-Moe IV
450dd9f504
5.2 time and fps in demo output, for both nq and qw.
2001-10-02 19:43:25 +00:00
Adam Olsen
362e4eefc9
- make the fallback console use stdin
...
- don't draw scores overlay if the screen is less than 244 wide.
2001-10-02 03:24:36 +00:00
Bill Currie
7fcdffb42e
mirror the chase and watervis serverinfo keys in the cl struct so
...
Info_ValueForKey doesn't get hit so often.
2001-10-01 01:51:36 +00:00
Bill Currie
e9c420c749
nuke SV_RecursiveHullCheck from cl_cam.c and use PM_RecursiveHullCheck
...
instead. Also add prototype for PM_RecursiveHullCheck to pmove.h
2001-10-01 00:20:57 +00:00
Bill Currie
f505e8630c
fixes for rh 7.1
2001-09-30 23:24:53 +00:00
Bill Currie
5e82c0cac7
correct a spelling error in a comment
2001-09-30 03:58:24 +00:00
Bill Currie
138a4a1c14
rename console_t to old_console_t in preparation for a better version and
...
temporarily disable the client console plugin as it currently doesn't
compile.
2001-09-29 04:24:04 +00:00
Bill Currie
9f612ec82a
this fixes the rendering of the player when not in chasecam mode. not sure
...
what it does for chasecam mode.
2001-09-28 22:07:26 +00:00
Bill Currie
cca3e4c203
fix a coupld d'ohs for pr_checkextensions
2001-09-28 21:39:13 +00:00
Bill Currie
5eb35f0b2a
fix a tiny case&paste (?) error that prevented players from being drawn.
2001-09-28 21:15:48 +00:00
Bill Currie
4a8eb5e7cf
more namespace issues
2001-09-28 16:50:35 +00:00
Bill Currie
514a4a56cb
fix a win32 namespace issue
2001-09-28 16:29:34 +00:00
Bill Currie
8e27422c72
partial fixes for mingw cross builds. still have issues with ar :(
2001-09-28 16:03:45 +00:00
Bill Currie
89fbacdc78
make sv_progs CVAR_NONE rather thatn CVAR_ROM so it can be set in server.cfg.
2001-09-28 15:29:22 +00:00
Bill Currie
c78edb3a36
Apply Seth Galbraith's <sgalbrai@linknet.kitsap.lib.wa.us> chasecam patch
2001-09-28 07:51:15 +00:00
Bill Currie
b1f4a778f9
the rcsid commit from hell }:>
2001-09-28 06:26:31 +00:00
Jeff Teunissen
343bb529b4
And this fixes QW.
2001-09-28 05:40:14 +00:00
Ragnvald Maartmann-Moe IV
2941c07b0a
Add small cyan light to lightning impacts. And restore particle direction use in nq. Greatly improves blood effects.
2001-09-27 00:43:46 +00:00
Adam Olsen
376f05d357
- add some conversion builtins, now we have ftoi, ftos, itof, itos,
...
stof, stoi, stov, and vtos.
- fix PF_sprintf
- add FFnameFF support, where it tacks <userid> after the nick on the
console.
2001-09-26 22:26:31 +00:00
Bill Currie
dec9503620
set the default rcon_address port to 27500 rather than 0
2001-09-26 21:06:51 +00:00
Bill Currie
694619cd70
thou shalt not use strlen as a boolean value!
2001-09-26 20:57:40 +00:00
Jeff Teunissen
e110f6da83
-3dfx is gone, pending someone to work on it again. Most of the stuff it
...
did specially will be folded into -glx.
2001-09-25 23:58:23 +00:00
Chris Ison
0d0f0a7f73
bootstrap now works in cygwin
2001-09-25 23:47:13 +00:00
Jeff Teunissen
27b6bac88f
do the same for QW.
2001-09-25 23:32:11 +00:00
Bill Currie
df330f33fd
expernimental code to get window resizing working
2001-09-25 20:16:24 +00:00
Bill Currie
06da30ac89
mingw build fixes again (including mostly working in sid: got some link issues)
2001-09-25 06:18:30 +00:00
Bill Currie
36de3c147e
move Sys_Quit and Sys_Error totally into libQFutil. They will call a list
...
of pre-registered (Sys_RegisterShutdown) function before actually exiting
the program. This should take care of the pain when an ncurses server
crashes.
2001-09-24 21:00:23 +00:00
Bill Currie
169f1ceac2
thou shalt not rely on order of evaluation
2001-09-24 19:12:05 +00:00
Adam Olsen
5d757c0d85
- fix our favorite svc_updatefrags overflow bug! weeeeee
2001-09-24 18:26:23 +00:00
Adam Olsen
b52d7fd3d9
- when a client overflows print out the backbuf too, not just
...
netchan.message
- tweak the svc_print netlog spacing
2001-09-24 16:25:49 +00:00
Adam Olsen
19b6ce83a1
- fix overflow packet dumping. Oops :)
2001-09-24 14:47:36 +00:00
Adam Olsen
7ff069c931
- when the progs cache a model, copy it onto the hunk, so the gc can't
...
squash it
- ditto for sounds, just in case
2001-09-23 15:14:08 +00:00
Adam Olsen
a159e852e6
- add some comments to libs/console/inputline.c
...
- rename pr_deadbeef to pr_deadbeef_ents
- add pr_deadbeef_locals, which does uninited locals. (crashes from
it are undeniably buggy code, unlike pr_deadeef_ents)
- add a missing break to packetlog printing's switch
- add sv_kickfake, which kicks people for attempting to fake messages,
or replaces the ^Ms with # if disabled.
2001-09-23 00:36:21 +00:00
Bill Currie
ea966952be
segmentation fault handler from kkqwsv (thanks, Bill;) but with a couple
...
minor improvements (you get a core file if the seg wasn't triggered by progs).
2001-09-23 00:15:53 +00:00
Bill Currie
0425afb190
'rcon localinfo motd "hi there"' now works
2001-09-22 02:24:46 +00:00
Bill Currie
49a85718f8
total nukage of Con_*Printf calls from libs (except for video). Sys_*Printf
...
(Sys_DPrintf is new) is now used exclusively for all lib printing. Con_Init
sets the sys printf recirection to Con_Print (which has been revamped
appropriatly) and the server sets it to SV_Print (which was SV_Printf and
the new SV_Printf calls /it/). This should fix the rcon print redirection
issues.
2001-09-21 04:22:46 +00:00
Bill Currie
4416404982
total nukage of Sys_Printf calls in the client and server source. this paves
...
the way for libQFutil using Sys_Printf exlusively.
2001-09-21 03:01:14 +00:00
Adam Olsen
bff5a4b4b4
make "Client foo connected" be a normal print instead of a dprint, and
...
make both that and spectator prints include the ip.
2001-09-20 19:50:24 +00:00
Adam Olsen
ca51e3be02
- cleanup of up/down key handling, as per suggestions from james
...
- add a sv_console_plugin cvar (guess what it does)
2001-09-20 15:14:44 +00:00
Adam Olsen
0977b555f3
- build fix for without curses (untested, but should fix the problem I
...
had when I last tried)
- fix sv_filter_automask so it's not inverted (doh, again!)
- cleanups of ip filter prints
2001-09-20 06:51:25 +00:00
Adam Olsen
780cc26b37
- add a sv_filter_automask cvar to automatically get /16 for 1.2.0.0
...
- update writeip to include filter types. It makes them all permanent
though, since addip can't take an absolute expiration time :/
2001-09-19 12:58:02 +00:00
Adam Olsen
893c8b784b
- tweak the cl_maxfps sleeping to be more finely grained
...
- treat empty snd_render/snd_output strings as "don't load"
2001-09-19 05:32:20 +00:00
Ragnvald Maartmann-Moe IV
6053f1feac
Add gitignore for qw-master and qw-master.exe.
2001-09-19 00:06:56 +00:00
Adam Olsen
ce7e6ac4a5
idontthinkimobsessivedoyouthinkimobsessive?
2001-09-18 08:58:51 +00:00
Adam Olsen
f2cf4388d9
- improvements of how message contents are printed, which is #if 0'd
...
anyway :)
2001-09-18 07:26:12 +00:00
Adam Olsen
e3bf60bda3
- fix the parsing of player numbers. oops :)
2001-09-18 07:00:41 +00:00
Adam Olsen
915674733c
- much formatting cleanups
...
- made it use #if HAVE_FOO_H like the rest of QF
- a couple bug fixes
- cleaned up what it prints, including adding sequence numbers and
player counts in the heartbeats
2001-09-18 06:47:02 +00:00
Bill Currie
8b8ce51085
GameSpy, eat your heart out :) (thanks, James)
2001-09-18 03:24:26 +00:00
Adam Olsen
8f4d39002c
- add support for ipv4 embedded in ipv6 addresses. filtering should
...
now be fully functional for ipv6. I really oughta test ipv6 sooner
or later ;)
2001-09-17 07:31:15 +00:00
Adam Olsen
d77fcc8695
- fix /0 and /9 masks to not give an error
...
- consolidate some duplicate code into SV_PrintIP, which returns a
readable ip address allocated from a static buffer
- remove some debugging prints (addip is now silent on success)
2001-09-17 06:10:39 +00:00
Adam Olsen
de716f07e7
- fix an off by one error with implicit masks
...
- don't attempt to ban/mute/cuff non-existant clients :)
2001-09-17 05:41:17 +00:00
Adam Olsen
dcbc9ada26
- rework the parser to regain support for 1.2 ips. No longer uses
...
inet_pton for ipv4.
These are untested (other than compiling), as I've got issues with the
console I need to sort out.
2001-09-17 05:08:13 +00:00
Ragnvald Maartmann-Moe IV
a7d8e2c0ea
TE_EXPLOSION2 now does colored lighting. And spark showers brightened up a bit. Sparks all yellow now, none of the weird dingy grey ones. ;)
2001-09-16 20:07:28 +00:00
Adam Olsen
f90fcf855e
Massive cleanups of ip filtering
...
- addip now supports a ban time, and a ban/cuff/mute paramter
- addresses now can have /8 for the mask, instead of it being implicit
- removes support for 1.2 which meant 1.2.0.0/16. use 1.2.0.0/16 or
1.2.0.0 (implies a /16)
- ipv6 should mostly be supported, but there's a few places that
aren't finished. currently gives a compile error
(it WAS working, but now I cvs up'd and I gotta wait for a long test
build. I don't feel like waiting any longer)
2001-09-16 15:40:21 +00:00
Bill Currie
aade80a8d7
/finally/, libQFconsole is being used (qw-server only so far). Still has
...
some minor nits with ncurses and probably has some isues without ncurses
(quit didn't seem to work when I tried).
2001-09-16 05:41:28 +00:00
Adam Olsen
bdfa1830fe
- add a match command, which prints out who would be matched with a
...
ban/cuff/mute/kick command, but without actually doing them :)
- fix 'leet nick matching of eet in 37337, and a segfault, as well as
simplifying the code :)
2001-09-11 07:10:45 +00:00
Bill Currie
4bc167c5aa
evil hack, but can build from "make dist" again
2001-09-11 06:34:03 +00:00
Bill Currie
410783025e
misc fixes forwarded from 0.3
2001-09-11 06:04:10 +00:00
Adam Olsen
75cb4c1c5a
Make match_char handle a bunch more 'leet characters. There's also a
...
cvar to disable it, called sv_3133735_7h4n_7h0u ;)
2001-09-11 05:43:58 +00:00
Bill Currie
def8bb3cd5
LordHavoc's VectorIsNull changes from 0.3 but as VectorIsZero (no such thing
...
as a `null' vector) plus a couple of other bits from his patch.
2001-09-11 05:18:15 +00:00
Bill Currie
1a27ded797
don't bother predicting if disconnected (forward port of Dabb's work)
2001-09-11 04:53:20 +00:00
Adam Olsen
65e5a7a4fc
fix userinfo filtering in PF_setinfokey
2001-09-11 04:52:29 +00:00
Bill Currie
1717747eda
more make dist
2001-09-11 04:45:48 +00:00
Bill Currie
e27878e156
bring forward the sv_extentions and stdver changes from 0.3
2001-09-11 03:50:24 +00:00
Bill Currie
74e9f89e8c
forward port the client info string filtering from 0.3 and remove info.h from
...
a couple of c files that no longer need it.
2001-09-11 03:10:29 +00:00
Ragnvald Maartmann-Moe IV
05d3aaa0bb
Whitespace.
2001-09-10 17:32:22 +00:00
Bill Currie
a7b402031f
make nick matching case insensitive and 1 == i
2001-09-10 05:04:00 +00:00
Bill Currie
882adf295a
implement KK's ban, mute and cuff
2001-09-09 04:51:08 +00:00
Bill Currie
1757dfcc75
make Cmd_StuffCmds_f get called if cl_quakerc is 0
2001-09-09 01:58:16 +00:00
Adam Olsen
de83dfb587
Change the networking timeout down from 1 second to 0.01 seconds.
...
The CPU usage will seem higher with only 1 or 2 people connected, but
that's only when they have low framerates. It should be the same when
there's enough incoming network data to keep it from waiting a long
time anyway.
2001-09-08 16:48:40 +00:00
Bill Currie
714f429276
cl_predict_players2 is gone (cl_predict_players is still there)
2001-09-07 17:44:02 +00:00
Ragnvald Maartmann-Moe IV
0d0e570676
Small particle trail speedup/legibility/flexibility improvement, at price of redundant code in sw/sw32. Tradeoffs. *sigh*
2001-09-07 05:37:11 +00:00
Bill Currie
e9cf5b4eba
include sys/types.h for freebsd
2001-09-07 04:41:13 +00:00
Bill Currie
3b5969df1e
don't call the packet acker when running a demo
2001-09-07 03:49:30 +00:00
Bill Currie
3a9191760f
some minor improvements
2001-09-07 00:11:22 +00:00
Adam Olsen
22075ac46f
Add a cl_quakerc cvar, for disabling the execution of the default
...
config.
2001-09-06 23:58:28 +00:00
Bill Currie
d7675ada7a
move the particle count multiplication out of the renderer and into the clien
...
(for blood and gunshot, anyway).
2001-09-06 05:41:15 +00:00
Bill Currie
008d80df67
s/IMT_DEFAULT/IMT_0/g for the constant and move the name-enum entry for
...
IMT_DEFAULT to the bottom of the list so that IMT_0 gets written as such
rather than IMT_DEFAULT.
Also, clean up nq's EF_* dlight creation a bit (haven't touched
EF_MUZZLEFLASH: undecided on what to do).
2001-09-05 21:22:55 +00:00
Bill Currie
6c8a112cb8
get "make dist" working again
2001-09-04 21:00:08 +00:00
Adam Olsen
f1a016c8a5
- Refine the Cache_Get callback, to use a void * instead of a char *
...
- Switch alias models over to Cache_Get/Cache_Release
2001-08-31 12:22:45 +00:00
Bill Currie
a1f4187786
don't force r_wateralpha to one when not connected
2001-08-30 18:50:30 +00:00
Bill Currie
3656d6fd59
compile fixes for win32 and take the pruning shears to *sys*.c in qw and nq
...
(they're not done yet, though)
2001-08-29 17:45:53 +00:00
Adam Olsen
05bd18bf6d
- Fix a DIR* memleak when crudefile builds the initial quota.
2001-08-29 09:27:30 +00:00
Adam Olsen
4deed9245a
- Add CACHE_WRITE_{,UN}LOCK macros, and calls to them in Cache_*. No
...
effect until other things are done.
- Make Qalloc treat no callback as a failed callback
- Add a Qstrdup
- Fix a memory leak in cl_slists.c
2001-08-29 09:14:18 +00:00
Ragnvald Maartmann-Moe IV
2f5e0cf603
whitespace and headers.
2001-08-29 02:12:57 +00:00
Ragnvald Maartmann-Moe IV
ade99607cc
header/whitespace sweep continues.
2001-08-28 23:05:45 +00:00
Bill Currie
d1a7649ba0
these too
2001-08-28 06:06:59 +00:00
Bill Currie
66997816e9
forgot to nuke these with the mak files
2001-08-28 06:05:59 +00:00
Ragnvald Maartmann-Moe IV
b1c0bb7626
Header/whitespace rampage continues.
2001-08-28 03:47:10 +00:00
Ragnvald Maartmann-Moe IV
f4fd3178f4
More header and whitespace horror reduction.
2001-08-28 02:43:24 +00:00
Bill Currie
a9d6bc9a30
total nukage of #ifdef QUAKE2 (R_DarkFieldParticles is present, just unused)
2001-08-27 23:21:09 +00:00
Bill Currie
330044ec72
don't need sv_misc anymore
2001-08-27 22:36:28 +00:00
Bill Currie
b90ef925b0
old bagage removal
2001-08-27 22:30:00 +00:00
Bill Currie
74dfef5cd1
sort-of merge world.h and (mostly: Sys/Con vs SV) world.c this winds up
...
bringing rotated bboxes into nq :)
2001-08-27 22:16:11 +00:00
Bill Currie
3edd4550d2
heh, nor do we need PROGHEADER_CRC
2001-08-27 21:13:00 +00:00
Bill Currie
9d27a12df7
progdefs? where we're going we dont need... progdefs
2001-08-27 21:09:13 +00:00
Ragnvald Maartmann-Moe IV
500b5c09d3
More header fixes, whitespace cleanups.
2001-08-27 21:00:37 +00:00
Bill Currie
272332bb2c
make Sys_HighFPPrecision and Sys_LowFPPrecision available in sdl
2001-08-27 06:16:43 +00:00
Ragnvald Maartmann-Moe IV
50190403fa
.gitignore update for sdl32.
2001-08-25 04:40:40 +00:00
Ragnvald Maartmann-Moe IV
c6266aba36
sw32. Flee in terror. This'll break compilation for everything until -sdl32 compiles. sw32 wont work for a while either, so don't get overly excited yet.
2001-08-25 02:47:11 +00:00
Bill Currie
1ccccc654e
ipv6 compile fixes from Damm
2001-08-24 04:09:56 +00:00
Bill Currie
5253030d27
move the CL_SetState call to the bottom of Host_Init
2001-08-22 22:51:06 +00:00
Adam Olsen
3177d9c7eb
Readd the aim builtin, which I must have accidentally removed earlier.
...
Ooops :)
2001-08-22 21:13:04 +00:00
Adam Olsen
ea063a1e0f
having duplicate functions is bad.
2001-08-22 05:50:01 +00:00
Adam Olsen
17ba7ef92f
- move alot of the builtins to libQFgamecode_builtins
...
- move the init into qw and nq
2001-08-22 03:24:25 +00:00
Adam Olsen
1314c89b6c
- add libs/gamecode/builtins subdir, with libQFgamecode_builtins.la
...
- add .gitignore files
- fix building :)
2001-08-21 22:34:20 +00:00
Adam Olsen
cd99a6a4b6
timeframes patch I made so long ago. use cl_timeframes 1 before
...
running a demo, and when it stops it'll print out the time spent on
each frame (in microseconds) to timeframes.txt.
2001-08-21 05:35:35 +00:00
Adam Olsen
a276e87fbc
Change lightning bolt rotation to be time-based. It's kinda ewwy, but
...
it seems to work ok.
2001-08-21 05:03:14 +00:00
Adam Olsen
770fecd4bc
Replace sv_gc with pr_gc and pr_gc_interval. pr_gc has 0 for off, 1
...
for on, and 2 for auto (on for newer progs, off otherwise).
2001-08-20 21:06:25 +00:00
Bill Currie
121bd09eef
explicitly set the client state after startup to ensure everything related
...
to the state is current.
2001-08-19 21:19:42 +00:00
Bill Currie
7cda1c6705
put in some comments about future player dlight improvements
2001-08-19 05:41:56 +00:00
Bill Currie
7aa7bb663a
centralize client state setting so ancilliary operations can be guaranteed
...
to happen (eg, key binding table selection for console).
2001-08-19 03:51:52 +00:00
Adam Olsen
d5fa2cc321
Major diff reduction in *sys_*.c files. Don't think I broke anything,
...
but hard to test it all..
I skipped a couple files, because they contained *alot* of
platform-specific functions.
2001-08-18 21:57:45 +00:00
Zephaniah E. Hull
80696badc7
kgt->imt, and imt now displays the current IMT.
2001-08-17 07:06:01 +00:00
Zephaniah E. Hull
20adccc9e4
A few things, first is that I removed the (rather broken) serial
...
networking support.
Second, I moves keys.c from qw and nq to libs/video/targets when I did
the next thing.
Existing user configs which do binds, sledge hammer. Sledge hammer,
existing user configs which do binds. *WHACK* *WHACK* *WHACK*
See, much nicer now.
Someone should document it, and fix all targets which don't use SDL for
input. (I honestly don't expect svgalib and the like to ever be fixed.)
2001-08-16 09:19:36 +00:00
Adam Olsen
c02f4ed59e
show_ping while disconnect == bad. SZ_Getspace bug fixed.
2001-08-16 02:32:50 +00:00
Bill Currie
7047f2da36
fix some missing ()s that got lost due to the () forrest that got chainsawed
...
(ie, the previous code was /a mess/)
2001-08-16 02:08:22 +00:00
Zephaniah E. Hull
eab8ff6e25
Just some MASSIVE speed boost for PF_findradius.
2001-08-15 23:03:37 +00:00
Jeff Teunissen
339ec3c0d8
Misc. cleanups.
2001-08-15 22:37:11 +00:00
Bill Currie
a22fd5a172
sdl 1.1.5 fixes
2001-08-15 21:29:18 +00:00
Bill Currie
59e50d933d
sdl and sgl clients now build
2001-08-15 20:55:22 +00:00
Bill Currie
8d0acf7630
remove some unneeded -L.s. it seems some versions of binutils don't like it
2001-08-15 06:12:38 +00:00
Adam Olsen
b277881832
Don't try to write freed entities to the client
2001-08-14 11:15:47 +00:00
Adam Olsen
f9f1e053a4
use 0 instead of sv_highchars when setting the *cheats serverinfo,
...
since sv_highchars isn't initialized at that point.
2001-08-13 09:14:15 +00:00
Bill Currie
a290afd2b5
back out the dynamic allocation so prozac will still work
2001-08-12 19:50:23 +00:00
Adam Olsen
eed71f2803
err, and of course we want *line* buffered, not *un*buffered. hehe, I
...
thought the output looked kinda slow..
2001-08-12 11:30:08 +00:00
Bill Currie
bbef4b0b6f
ugh, I hate the need for this, but it's needed. sv_old_entity_free is my
...
compromise :) set it to 1 to allow progs like MegaTF to work (reload crash).
2001-08-12 04:14:25 +00:00
Bill Currie
3d30361595
show_ping and show_pl. pretty much like show_fps.
2001-08-11 04:14:58 +00:00
Ragnvald Maartmann-Moe IV
ca4d4791c9
Fix a severe braino, and get less excessively parenthetical in one spot.
2001-08-10 03:07:34 +00:00
Ragnvald Maartmann-Moe IV
b868a09661
Kill off gl_view.c and sw_view.c. Renderer merge is more or less complete now. Software and gl renderers now calculate color shifts the same way, and sw looks a bit different now. Powerups don't shift enough in sw right now, IMO.
2001-08-10 00:28:57 +00:00
Adam Olsen
4cd037f025
Make the console line-bufered. woot.
2001-08-09 12:19:15 +00:00
Adam Olsen
0c63c11b4b
diff noise reduction. mostly just "progs_t * pr" to "progs_t *pr".
...
Only code change is copying qw's variable-size PF_VarString in place
of nq's 256 char "I wanna be a buffer-overflow exploit!" version.
2001-08-09 06:05:43 +00:00
Bill Currie
fb42199637
change all the SVFIELD calls to SVtype. this should make the code a little
...
easier to read.
2001-08-08 20:28:53 +00:00
Ragnvald Maartmann-Moe IV
2ccebbfd5c
Exit early on common case, rather than go through all checks. Minor speedup, but measurable on higher framerate demos.
2001-08-07 18:53:22 +00:00
Bill Currie
b3d20d834a
fix for compiling under freebsd. thank's, stu
2001-08-07 17:43:49 +00:00
Bill Currie
014e36dece
viewangles in the client doesn't seem to get updated for the client, so
...
use cl.viewangles instead.
2001-08-06 00:27:41 +00:00
Adam Olsen
9f00601b82
change checkfunction and getfunction to checkbuiltin and getbuiltin
2001-08-05 06:02:33 +00:00
Adam Olsen
040345bc60
Change all our new functions to use dynamically allocated builtin
...
numbers, except checkextension, checkfunction, and getfunction. Yes,
this may break some stuff. :)
2001-08-04 23:58:03 +00:00
Adam Olsen
dc98a63098
Add a getfunction, which gives an error if it's not found
2001-08-04 23:44:50 +00:00
Bill Currie
1a73a4789b
make /sure/ ^h is covered. seems ncurses is a tad on the weird side
2001-08-04 23:19:16 +00:00
Adam Olsen
d241e8dd64
Make sure all the function names passed to PR_AddBuiltin are
...
lowercase, for sanity reasons.
2001-08-04 22:14:45 +00:00
Adam Olsen
c218ede288
Add support for checkfunction, which is a builtin that searches for
...
another builtin by name, and returns it.
Soon I'll change all our new builtins to by allocated dynamically, as
well as changing the number checkfunction uses, and happily break
everything that uses them :D
2001-08-04 09:11:50 +00:00
Adam Olsen
484edfde55
Some of an aforementioned function to search for functions by name.
...
Guess it's not as trivial as I thought.
2001-08-03 07:37:21 +00:00
Adam Olsen
ae133d0a90
Modify progs to add builtins at runtime. It should be trivial to
...
lookup functions by name, and make all our new QC builtins allocate
numbers automatically.
2001-08-03 06:40:28 +00:00
Adam Olsen
19387f0801
diff noise reduction, cleaned up the comments somewhat
2001-08-02 23:27:45 +00:00
Bill Currie
0a4caac3c6
mingw compile fixes
2001-08-02 23:00:39 +00:00
Bill Currie
b455458629
exit cleanup. Sys_Error and Sys_Quit should be used whenever possible.
2001-08-02 17:16:12 +00:00
Bill Currie
79eb948127
for some reasone, building the rpms wanted an explicit stdio.h inclusion
...
*shrug*
2001-08-02 03:24:18 +00:00
Adam Olsen
513347effd
Fix that classic "playing without joining a team" TF cheat :)
2001-08-01 00:38:16 +00:00
Bill Currie
828e8b60b6
bloody builtin prototypes
2001-07-31 19:03:00 +00:00
Bill Currie
fb26d8b18a
make Info_Set* take flags indicating wether funchars should be stripped or not
2001-07-31 18:27:49 +00:00
Bill Currie
2b19252d73
fix PF_hullpointcontents and the clip_mins/maxs setting in PF_rotate_bbox
...
NOTE: the api to PF_hullpointcontents has changed!!!
2001-07-31 17:09:42 +00:00
Bill Currie
30f93439a0
/tiny/ optimisations
2001-07-31 08:06:27 +00:00
Bill Currie
368468dce0
revert the changes to cl_demo.c as they are a serious (10%) speed hit in qw.
...
While lost in the noise for nq for the standard demos, it seems like a good
idea to revert it too.
2001-07-31 07:29:44 +00:00
Bill Currie
c3e3f8182d
the hull growing seems to work now.
2001-07-30 22:53:01 +00:00
Bill Currie
6cb2cb5bdc
start making the rotated bounding box (really dynamic clipping huls) more
...
generice, and also more in line with the rest of quake's clipping system
(ie, support the entity size selected hulls). I'm not /entirly happy with
what's here, but it's a start, and the force fields in customtf work /much/
better :)
2001-07-30 04:33:59 +00:00
Bill Currie
dbb339651d
make the hull plane setup a loop
2001-07-29 00:12:14 +00:00
Bill Currie
097f38d594
return a null edict properly
2001-07-27 23:22:21 +00:00
Bill Currie
e69c1e8918
correct a typo in a comment
2001-07-27 23:07:38 +00:00
Bill Currie
219c58bd98
wrappers for SV_TestEntityPosition and SV_HullPointContents
2001-07-27 23:05:58 +00:00
Bill Currie
0b576e42a1
fix a small bug
2001-07-27 19:48:46 +00:00
Bill Currie
65475fbd6e
make a rotated_bbox override the model hulls
2001-07-27 19:48:15 +00:00
Bill Currie
a3368d0f82
move the rotated_bbox hull checks into SV_HullForEntity and move the
...
check == ent test in SV_TestPlayerPosition to before the abs bbox check.
2001-07-27 16:06:42 +00:00
Bill Currie
27dde8cefe
sv_pr_cmds.c:
...
find the full bounding box for the rotated bounding box and put this
into hull's clip_mins and clip_maxs. Also, provide:
vector (integer hull, integer max) getboxbounds = #94
to retrieve these values (max != 0 for clip_maxs, max == 0 for clip_mins)
world.c:
SV_TestPlayerPosition now checks for a rotated_bbox hull
2001-07-27 06:39:06 +00:00
Bill Currie
6b43d4543d
the C side of the fix for the field gen weird spot for a standing player
2001-07-27 04:50:53 +00:00
Bill Currie
c834185fbb
forgot to clear pe->hull if rotated_bbox is non-existant or 0
2001-07-27 02:45:01 +00:00
Bill Currie
6000b06de3
support arbitrary hulls for players, too
2001-07-26 21:37:34 +00:00
Bill Currie
44daa25fe6
force the software clients to use the static renderer so asm is used
2001-07-26 20:55:42 +00:00
Bill Currie
df2f517146
put in a couple of comments
2001-07-26 17:36:57 +00:00
Bill Currie
517be0adbb
change rotate_bbox's `prototype'
...
void (integer hull, vector right, vector forward, vector up,
vector mins, vector maxs) rotate_bbox = #97
2001-07-26 16:32:01 +00:00
Bill Currie
a44da38e04
rotate the bounding box points, not just the planes
...
fix a really nasty bug with allocating a hull
2001-07-26 16:24:47 +00:00
Adam Olsen
725653ce2a
Delete the check in download file names for a leading slash, since
...
it's harmless and some maps (such as engwar1) use it. (the map may
be considered broken because of it, but everything ELSE works fine
with a leading slash, since it's relative anyway)
2001-07-26 15:50:54 +00:00
Bill Currie
88eb9e118a
forgot to subtract 1 from the incoming hull `handle'
2001-07-26 15:33:55 +00:00
Bill Currie
5ebee4a28b
rotated bounding box support. this is so totally untested it's not funny
...
(though it does compile). Keeps things simple and only checks touched.
.integer rotated_bbox;
ent.rotated_bbox = getboxhull ();// be sure to check for failure (0)
rotate_bbox (ent.rotated_bbox, ent.angles, ent.mins, ent.maxs);
...
freeboxhull (ent.rotated_bbox); // when freeing entity. box hulls are limited
integer () getboxhull = #95
void (integer hull) freeboxhull = #96
void (integer hull, vector angles, vector mins, vector maxs) rotate_bbox = #97
2001-07-26 04:26:54 +00:00
Bill Currie
22219fdeb0
fix a slight oopsie in Rhamph's checkin:)
2001-07-26 00:08:42 +00:00
Adam Olsen
619b12375c
Start of support for rotated bboxes. shouldn't do anything yet
2001-07-26 00:01:13 +00:00
Adam Olsen
8fc5e5e372
replace strncmp (name, "maps/", 6) with strncmp (name, "maps/", 5)
2001-07-25 23:59:56 +00:00
Bill Currie
64a2f8d277
rearrange the comments for the builtins table, and put a comment with the
...
builtin number (and prototype where appropriate) on every element
2001-07-25 23:33:06 +00:00
Zephaniah E. Hull
08bc0e987b
New PF_checkmove! A direct interface to SV_Move, but named better.
...
(This is #98.)
2001-07-25 22:14:42 +00:00
Bill Currie
d12a0a930d
return of UserInfoCallback is now ignored and SV_Userinfo_f just returns as
...
PR_setuserinfo now does the extract from userinfo.
2001-07-24 22:11:44 +00:00
Bill Currie
06b9f44741
prepend a 0ed header to the overflowed packet being dumped
2001-07-24 17:51:07 +00:00
Bill Currie
c7390e4d53
diff_snr-- :)
2001-07-23 18:36:36 +00:00
Bill Currie
22c9716b56
rename int_var to integer_var
2001-07-22 20:20:46 +00:00
Adam Olsen
2f223924f4
Add a set of "crudefile" file io functions. Reads or writes an
...
entire C string (including terminating nul). Read the source for
more details :)
2001-07-22 19:03:26 +00:00
Bill Currie
77694855e7
fix some off-by one errors I induced last night
2001-07-22 18:44:55 +00:00
Bill Currie
735cd909c0
make SV_Prespawn use the backbuffers if needed to help prevent overflows
2001-07-22 06:55:09 +00:00
Bill Currie
e010356e8f
break out the two chunks of almost identical backbuffer code into
...
PushBackbuffer()
2001-07-22 06:27:05 +00:00
Adam Olsen
1422163099
Minor typo fix ("(%d0" to "(%d)")
2001-07-22 04:53:19 +00:00
Adam Olsen
43c8763de0
change host_client to sv_player. I *hope* this is the right thing.
2001-07-20 08:08:46 +00:00
Bill Currie
cf10da8120
fix the double "foo changed name to bar" messages for foo
2001-07-20 05:35:55 +00:00
Bill Currie
abf34ac2d3
send the right one
2001-07-20 05:30:51 +00:00
Bill Currie
a09705953f
forgot to send the updates to the clients
2001-07-20 05:29:45 +00:00
Bill Currie
743fd9cc19
rename SetUserInfo to UserInfoCallback.
...
set self to the client entity for UserInfoCallback.
add void (entity ent, string key, string value) setinfokey = #102 ;
similar usage to infokey.
2001-07-20 05:05:47 +00:00
Bill Currie
d30f1ee0c2
add an /optional/ SetUserInfo qc callback to allout the progs to take over
...
userinfo setting.
float (string key, string value) SetUserInfo;
key = infostring key
value = new value
returs: 0 for key not changed, non-0 to broadcast the change
2001-07-20 04:30:33 +00:00
Bill Currie
aa7500cac7
add the DOUBLEQUOTE key name as per mechanix' request
2001-07-19 21:54:12 +00:00
Bill Currie
46176e1094
azerty kb patch from Filip Van Raemdonck <mechanix@digibel.org>. includes some
...
misc fixes, too
2001-07-19 21:46:34 +00:00
Bill Currie
b23786880a
check for hitting the maximum number of masters and print a message if so.
2001-07-19 07:07:32 +00:00
Bill Currie
5e81d80d8c
optionally disable the curses server console, bringing back the old behaviour
2001-07-19 05:13:32 +00:00
Adam Olsen
a771b5bd6c
Make edicts command support a search string, so it only prints edicts
...
with matching classnames. Makes it easy to print out the type you want
for debugging :)
2001-07-19 03:18:11 +00:00
Bill Currie
086084c1fa
fix a sign extention error
2001-07-19 00:24:24 +00:00
Bill Currie
40dfde55a1
don't try to use curses before things have been initialized
2001-07-19 00:07:20 +00:00
Bill Currie
47a6f2c9b5
pr_debug.c:
...
capitolise CRC and add a \n to the message
sv_progs.c (both nq and qw):
don't bother checking the progdefs.h crc: it's just not needed any more
pr_imm.c:
use r instead of rep when checking the hash tables.
main.c (quaq):
make developer work and set com_filesize (otherwise, progs crc doesn't
get set properly (com_filesize, not developer:))
2001-07-18 21:28:41 +00:00
Bill Currie
159bc6147c
create an "input line" object for the console so Con_ProcessInput can be used
...
in verious contexts
2001-07-17 16:46:51 +00:00
Bill Currie
bab80a0648
move the special keys out of the way of ascii codes (unless they represent
...
ascii codes (eg, K_ENTER)) and remove the magic number for the number of keys.
2001-07-17 15:51:56 +00:00
Bill Currie
104701a8c5
the beginnings of the console lib (using plugins for the client/server type
...
consoles). Currently, doesn't affect anybody other than the need to
re-bootstrap.
2001-07-16 20:41:10 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00
Adam Olsen
155b46b8c8
More diff noise reductions. yay!
2001-07-15 01:48:03 +00:00
Adam Olsen
08cb34e0e0
Diff noise reduction. Stop me if I break it :)
2001-07-15 00:21:48 +00:00
Adam Olsen
fb0fe95e7e
Diff noise reduction
2001-07-15 00:03:11 +00:00
Adam Olsen
484f5494b8
Add my strlen and charcount functions as quakec builtins. strlen
...
returns the total string length, and charcount returns the number of
times the given character appears.
2001-07-13 22:58:31 +00:00
Adam Olsen
dcaa0b205f
Make coop play possible in qw. Create a progs variable called 'current_skill'
...
and you'll get the nq edict pruning behavior.
2001-07-13 22:47:11 +00:00
Bill Currie
7a06a2254a
rename the Con_Printf in sv_send.c to SV_Printf and change all the calls to
...
Con_Printf in the server code to SV_Printf.
nuke Con_DPrintf from sv_send.c
2001-07-11 23:11:29 +00:00
Bill Currie
7ca4383790
move a Key function out of console and into keys.
...
replace a Con_Print call with Con_Printf ("%s", ...) (I want to make Con_Print
private)
2001-07-11 19:17:58 +00:00
Bill Currie
4cf5648fcc
no longer need /that/ hack as SV_Frame does it now
2001-07-11 03:19:18 +00:00
Bill Currie
eb66aa03ee
sv_console.c:
...
/finally/, the input line works to my satisfaction
sv_main.c:
call Con_ProcessInput to get the cursor in the right position on the
screen (yeah, horrible kludge until someone figures out a nice console
api)
2001-07-11 03:11:53 +00:00
Bill Currie
038e2c9287
the input line is almost perfect: just some problems with the scroll
...
indicators
2001-07-11 00:19:39 +00:00
Bill Currie
5642ac87cb
cursor keys now work (per window keypad mode, hmm)
2001-07-10 23:03:13 +00:00
Bill Currie
f9f31ad4b3
ncurses console for the server. input handling is currently a nasty bit of
...
code duplication, but it seems to work nicely (except for cursor movement
keys) and even gives tab completion to the server :)
2001-07-10 22:36:22 +00:00
Bill Currie
ecff96258f
cmd.[ch]:
...
api change: Cmd_Args () now takes a parameter inidcating which arg to
start at for grabbing the un-parsed command line
qw/source/sv_ccmds.c:
implement kk's tell command and user name matching (though # is used for
the wildcard and it's still case sensitive)
everything else:
adjust for the new Cmd_Args protype
2001-07-10 18:25:54 +00:00
Bill Currie
001f178e86
rcon and say improvements from kkqwsv
...
server.h:
add rcon_from_user
sv_ccmds.c:
add SV_ConSay_Info_f (sayinfo) for quiet info messages and revamp the
rest of SV_ConSay_f accordingly. Also include deactivated commands for
cuff, mute, tell and ban (coming soon).
sv_main.c:
revamp the rcon system to support both `root' rcon and admin rcon and
provide better logging. admin_password is the cvar holding the password
for admin access (used the same way as rcon_password)
2001-07-09 23:33:35 +00:00
Bill Currie
41e07f08a4
oops, re-using freed memory is a nono :/
2001-07-06 20:04:05 +00:00
Bill Currie
bb084d5f14
fix the case when the expansion is both an exact match and a sub-string
2001-07-06 19:47:44 +00:00
Bill Currie
e3c38e7774
rework tab completion a bit so that it expands as much as possible
2001-07-06 19:43:01 +00:00
Bill Currie
03c0216dde
force_centerview is back
2001-07-06 17:42:04 +00:00
Bill Currie
0fddfe4931
just typing map will give the current map name. In nq, doesn't work too well
...
during a demo (doesn't die, just gives "map is ", or likely the last map
actually played on).
2001-07-06 17:38:17 +00:00
Bill Currie
fc09d2b00f
port Bruce Momjian's patches from newtree with a less incestuous
...
implementation of his sound/focus patch. NOTE: only alsa 0.9 is tested
(Rhamph, can you test 0.5, please?) and only the alsa drivers stop the
hardware right ow.
WARNING!!! you /will/ have to re-install your plugins, or you will get
segfaults when the window gains/loses focus.
How do you tell if a window has focus on first mapping in X11?
2001-07-05 20:18:23 +00:00
Bill Currie
b4ac2446a1
Put knghtbrd's sys cleanup changes back in, but with Sys_MakeCodeWriteable
...
in sys/util.c rather than limbo (the crux of the problem that caused the
previous reversal). I'll look into his Sys_Printf changes next.
2001-07-05 03:28:40 +00:00
Bill Currie
e659c2a44f
revert kntbrds recent sys changes as they break sw static builds
2001-07-05 00:12:43 +00:00
Bill Currie
ce3eddb89c
move the node number validation out of RecursiveHullCheck and into the bsp
...
loader
2001-07-04 16:28:54 +00:00
Joseph Carter
eb71edb5d4
taniwha, please have a look at this to make sure I'm doing it the "right"
...
way.. Sys_Printf is now Sys_StdPrintf for now. Sys_Printf is a function
pointer and will end up replacing Con_Printf as well. Names will change
to something intelligent when I'm done. Win32 is not yet touched, but I
haven't forgotten it.
The reason for this is the assumption that Con_Printf and Sys_Printf do
not overlap. The new server console WILL change that, requiring that we
change how we handle both functions. The plan: Default to using stubs
and swap them for full-featured functions on Console init which do all
the things we expect. Will also do a stderr version later.
2001-07-02 18:11:34 +00:00
Joseph Carter
d478e6b1d9
These aren't used anymore as their functions have moved to libs/util
2001-07-01 00:14:46 +00:00
Bill Currie
c350bb2b1b
a slight oopsie on the location of WriteFloat and friends :P plus nq is now
...
endian/size clean.
2001-06-29 06:50:29 +00:00
Bill Currie
39872aad5b
qw's demo code is now endian and type size clean
2001-06-29 06:29:24 +00:00
Bill Currie
6eef7f2988
fix an incorrect setting of colormap when it should have been colormod
2001-06-29 04:24:01 +00:00
Bill Currie
f61ca0e321
fix the persistent fires. For sanity's sake, the non-renderer specific parts
...
of gl_dyn_fires.c have been moved to r_main.c (for now).
2001-06-29 02:43:04 +00:00
Chris Ison
85d2176bb6
make -3dfx compile again, may need fixing for mesa specific functions listed in vid_3dfxsvga.c
2001-06-29 02:10:52 +00:00
Bill Currie
443196e66b
very nice command line tab completeion from Shawn Walker
...
<eviltypeguy@qeradiant.com>
2001-06-28 04:05:14 +00:00
Zephaniah E. Hull
3715430479
This is changing more then I wanted to at once, however.
...
The major change is that we no longer require libGL to even exist on the
system at compile time for the GL targets, we dynamicly link to the
libGL of choice at run time. (This probably breaks most non-linux
systems, and all GL targets except -glx, some fixup will be needed.)
(This also kills glquake, dead dead DEAD! GONE FOREVER! WHEE!)
Some gl_draw cleanup.
Commented out equake alias model occlusion test stuff, very experimental.
Added the .lo and .la patterns to the .gitignore files.
Some minor sbar cleanup. (We don't use the disc in use symbol for
anything.)
2001-06-24 09:25:55 +00:00
Bill Currie
560b475880
gcc 3.0 compile fixes
2001-06-19 22:05:13 +00:00
Joseph Carter
d5dabdf3d8
Fix -lqfnet errors
2001-06-18 01:07:09 +00:00
Chris Ison
3456b5f479
part 1 of slist fixup, added ping and game filtering, also fixed some potential bugs. flame me later
2001-06-17 08:14:22 +00:00
Adam Olsen
0bb5db78af
Add a sv_gc cvar, which makes it run the string gc every n frames.
...
Defaults to 0 (disabled).
2001-06-16 22:39:41 +00:00
Adam Olsen
4f28b39b01
depend on libqfnet.la instead of libqfnet.a
2001-06-16 22:33:56 +00:00
Bill Currie
4901dd0a53
net_udp.c:
...
header shuffle
net_udp6.c:
get compiling under mingw. some icky hacks (and the version of the tpipv6
headers I managed to get had some errors), but it compiles cleanly.
2001-06-15 18:08:26 +00:00
Bill Currie
8c13809e9c
don't process .S files when not using asm (either --disable-asmopt or non-x86
...
platforms). Done by moving the asm objects into libasm.la (yes, there's one in
each dir that needs it) so that the Makefiles don't explode.
2001-06-14 19:52:38 +00:00
Adam Olsen
29188c9f33
typo
2001-06-14 17:31:53 +00:00
Adam Olsen
2a1f323df4
precache some lightning models
2001-06-14 17:31:15 +00:00
Chris Ison
a3d2d83e18
fixed master list to the 7 (known) working master
2001-06-12 23:53:58 +00:00
Chris Ison
3526371ff0
oops, forgot to remove debug code
2001-06-12 12:34:59 +00:00
Chris Ison
75fe232052
Sorted server list, sl_sortby 0 = by name, sl_sortby 1 = by ping
2001-06-12 12:31:01 +00:00
Chris Ison
5b16c38974
quick bug fix for slist update seg
2001-06-09 15:42:22 +00:00
Chris Ison
8d3247ff00
added set server name after refresh, and fixed slist update not resetting the list
2001-06-09 15:24:42 +00:00
Chris Ison
12ae6750af
moved slist stuff out of cl_main.c and into cl_slist.c, enabled getting server list from master servers. to switch between servers.txt list (default) and list of servers from master servers use slist switch
2001-06-09 09:12:24 +00:00
Bill Currie
b9f35283f4
make dist fixes + a --disable-asmopt fix for mingw
2001-06-08 02:47:30 +00:00
Bill Currie
62c783f47a
eval_t is no more: too many evil casts involved in using it (which can result
...
it bad code being generated by gcc).
2001-06-08 00:13:06 +00:00
Bill Currie
735a35b2f9
compile fixes from Artur Frysiak <wiget@pld.org.pl>
2001-06-05 17:23:03 +00:00
Bill Currie
e339e82c01
hash.h is now const correct as is a lot of qfcc
2001-06-04 04:52:14 +00:00
Bill Currie
4c8f84adc5
fix for CustomTF menu truncation
2001-06-03 01:28:11 +00:00
Bill Currie
652069d3f2
This one's for Mercury :) (cvar control of pmodel and emodel)
2001-06-02 23:29:41 +00:00
Bill Currie
a0796826ee
Back out Mercury's removal of emodel and pmodel. They are /required/ by some
...
servers.
2001-06-02 22:20:34 +00:00
Zephaniah E. Hull
380dcf5c9b
Some gl_draw cleanups for glpic.
...
Some sbar cleanups (still broken, suspect driver issues.).
Removal of pmodel and emodel infokeys, waste of info space.
For servers allow people downloading to hear people talking.
2001-06-02 20:39:54 +00:00
Ragnvald Maartmann-Moe IV
28638a9a98
Remove merge ghosts. Aren't there for Taniwha. cvs quirks, whee.
2001-06-02 04:35:16 +00:00
Ragnvald Maartmann-Moe IV
85333a9f96
Convert cd audio libs to plugins. Windows untested, dos and sgi not converted yet.
2001-06-01 22:55:33 +00:00
Bill Currie
7ad0f7ed2b
various compile fixes for mingw.
2001-06-01 00:39:31 +00:00
Adam Olsen
4620b8fdfd
Add the cl_showscoresuid cvar I mentioned before
2001-06-01 00:29:55 +00:00
Bill Currie
06064ec390
compat.h:
...
create a field_offset macro that takes a structure type and a field and
returns the offset of the field within the structure
everything else:
use field_offset to calculate the size of variable sized structs
2001-05-31 18:11:05 +00:00
Bill Currie
d2a4faae6e
oops :) (packet log fixes: segs aren't nice)
2001-05-31 15:38:08 +00:00
Bill Currie
323015b11a
include/QF header cleanup. including config.h (or any file from include) is
...
a nono because headers in include/QF get installed, but include don't and thus
would break quakeforge-dev.
2001-05-31 05:33:13 +00:00
Bill Currie
6bf58ab1af
no header includes cvar.h now
2001-05-31 03:41:35 +00:00
Bill Currie
a488af9bf5
add a net_packetlog_zap command (those files can get big:)
2001-05-31 03:04:39 +00:00
Bill Currie
4babd979d6
nuke --enable-packetlog in favor of a net_packetlog cvar so packetlogging is
...
always available. also change the packet log open mode from truncate to append.
2001-05-31 02:43:48 +00:00
Bill Currie
889b9ce740
try to dump the packet resulting in an overflow
2001-05-30 23:44:21 +00:00
Bill Currie
940598f240
merge pcx.c, tga.c and wad.c. util seemed the most logical place, but LoadPCX
...
had to be modified to get away from vid.h (better designe now IMO anyway)
2001-05-30 20:56:53 +00:00
Bill Currie
80be659b4a
white space
2001-05-30 20:55:28 +00:00
Adam Olsen
de4ab28d38
re-add support for changing client port (use +set cl_port foo)
2001-05-30 18:50:17 +00:00
Adam Olsen
8ca626dacc
add -export-dynamic to linker lines, so you can use sound plugins with static builds.
2001-05-30 18:35:19 +00:00
Joseph Carter
05adfd0e53
quakefs.h -> vfs.h
...
quakeio.h -> vfile.h
More diff reduction between trunk and my VFS code. Also took the time to
put some headers in order and fix a few #include's pointed out by moving
things around a bit.
2001-05-30 04:34:06 +00:00
Joseph Carter
186d577818
s/QFile/VFile/g - makes my diffs much smaller and more manageable for the
...
VFS work.
2001-05-30 03:21:19 +00:00
Bill Currie
18fd21da77
merge the particle system
2001-05-29 19:58:35 +00:00
Bill Currie
78702c07e4
make gl_dyn_part.c and sw_rpart.c independent of client.h and host.h
2001-05-29 19:43:15 +00:00
Bill Currie
7708a2ddd1
remove netlogger (unused cvar) and rename netloglevel to net_loglevel so it
...
matches the user visible name
2001-05-29 18:24:29 +00:00
Bill Currie
87bf3a2b5e
cl_main.c:
...
move the packet loging init call to the right place and remove a duplicate
PI_Init call
net_packetlog.c:
don't be so invasive when dumping packets. use a private msg_t that gets
initialized from the analysed packet, rather than net_packet (which
tended to corrupt incoming packets)
2001-05-29 18:14:12 +00:00
Bill Currie
f0cfc46cb7
model.h:
...
add a crc field to aliashdr_t
model_alias.c:
set it for all models
cl_parse.c:
set the pmodel and emodel info keys to the crcs of the player and eye
models
2001-05-29 17:37:48 +00:00
Bill Currie
d441a61bf3
make sure that the reliable packets from soundlist, modellist and the skins
...
info get acked. This is done by sending a no-op packet (0 byte didn't work
because the runt packet detector throws them out before the ack is seen).
2001-05-29 03:29:51 +00:00
Bill Currie
3c66182588
fix the sound precache lookup code in net_packetlog.c
2001-05-28 22:16:27 +00:00
Bill Currie
6eadd402ab
when I say I want packet loggin, I want packet logging, not undefined symbols
2001-05-28 21:34:27 +00:00
Zephaniah E. Hull
2ab7077e0e
Minor clipping.
2001-05-27 18:35:08 +00:00
Chris Ison
9b4f09ff0f
fix for qw skin upload every frame bug, thank deek for the fix and help
2001-05-27 09:19:24 +00:00
Bill Currie
4c5b977902
move cl_math.S into renderer/sw/transform.S (never before realised it was
...
part of the renderer)
2001-05-26 03:33:09 +00:00
Chris Ison
3035224bec
disable cl_math.S asm
2001-05-25 22:57:25 +00:00
Bill Currie
1038f88a64
disable asm in the software renderer for now. This will allow me to fix the
...
files one at a time and allow others to use software independent of asm usage
(even if a little slowly (~14% slower on my dual c450)).
2001-05-25 14:57:31 +00:00
Bill Currie
a87c4bbd93
vid.c:
...
Don't bother checking vid_gamma for CVAR_ROM becuase it is impossible to
get to VID_UpdateGamma when it is set except for when the cvar is
initially created, and we /want/ the code to execute in that case.
vid.h:
add initialized to viddef_t
vid_common_gl.c:
actually /use/ gammatable (it tends to help)
vid_*.c:
clean up rendundant decls of gammatable, vid_initialized (now
vid.initialized) and make sure vid.initialized gets set.
gl_view.c:
remove gammatable decls
2001-05-25 04:03:47 +00:00
Bill Currie
5ed553f876
more files missed in the move
2001-05-25 02:45:57 +00:00
Bill Currie
600bcfb108
forgot to remove these
2001-05-24 19:28:07 +00:00
Bill Currie
73e6e1684f
FINALLY, the nq and qw renderers are merged. the view and particle subsystems
...
are not yet merged due to their dependence on the client, but that will come
soon.
2001-05-24 19:22:35 +00:00
Bill Currie
05f9470b7c
oops, got a little too agressive with the V_CheckGamma cleanup
2001-05-24 18:50:02 +00:00
Bill Currie
f21ad90ba4
total nukage of brighten, brightness and contrast.
2001-05-24 16:30:25 +00:00
Bill Currie
a3518d44ed
Nuke V_CheckGamma, moving its sole contribution to VID_UpdateGamma in vid.c
2001-05-24 15:48:39 +00:00
Bill Currie
d87d374fcf
white space
2001-05-24 04:50:12 +00:00
Chris Ison
3cc3392a8a
fixed paused being displayed by default in gl
2001-05-23 10:20:27 +00:00
Bill Currie
1a25bc9349
gl_screen.c and screen.c are now client clean (and merged :)
2001-05-23 06:33:23 +00:00
Bill Currie
ec7335029d
gl_draw.c is now client clean.
2001-05-23 04:05:10 +00:00
Bill Currie
f49608b881
copy it to nq and clean out the commented out code
2001-05-23 03:33:39 +00:00
Bill Currie
3b7d356416
helps if I upload the texture in the correct format :)
2001-05-23 03:31:54 +00:00
Bill Currie
a8e1da5d99
make dist and compile fixes for mingw cross building
2001-05-22 19:13:23 +00:00
Zephaniah E. Hull
e65c1bd7e1
Make sure the message gets to the client.
2001-05-22 13:40:21 +00:00
Zephaniah E. Hull
98a8db2f0e
Coderjoe's fix from newtree. (The other part of the DOS fix.)
...
Prevent an infinite loop in a fairly rare case, where the infostring is
too full to accept a new name when there is a duplicate name.
2001-05-22 13:30:35 +00:00
Zephaniah E. Hull
5245f56012
Validate userinfo strings on connect. (Part of a nasty DOS fix.)
2001-05-22 12:00:45 +00:00
Joseph Carter
2b4c31b7ae
Noise reduction in draw vs gl_draw
2001-05-22 09:24:56 +00:00
Joseph Carter
954b2148f7
Fix a gcc warning in cl_ngraph.c
2001-05-22 09:19:53 +00:00
Bill Currie
4a80639556
sw and gl rmisc are now client clean. the graphing functions ahve been pulled
...
out into r_graph.c (Time and Z graph), cl_ngraph.c (Net graph), and
{gl,sw}_graph.c (R_LineGraph). gl_ngraph.c is gone. Unfortunatly, something
is rather wrong with NetGraph in gl (probably R_LineGraph).
2001-05-22 06:00:38 +00:00
Bill Currie
0a4b53c817
gl_rsurf is now client clean
2001-05-21 23:09:46 +00:00
Bill Currie
da8715f27d
sw_ralias.c and gl_rmain.c are now client clean. this involved a bit of a
...
revamp of skins. keep an eye out for broken skins (especially in nq)
2001-05-21 22:25:35 +00:00
Ragnvald Maartmann-Moe IV
ddceaf78b3
Merge most of cshift calcs from sw and gl to r_view.c
2001-05-21 19:53:57 +00:00
Ragnvald Maartmann-Moe IV
46b5ce2d09
Remove client.h from gl_sky_clip. Changed an error message to not use cl_name.
2001-05-21 15:59:02 +00:00
Ragnvald Maartmann-Moe IV
853dfceac6
Minor cleanups, not client.h or host.h clean yet, though.
2001-05-21 04:41:57 +00:00
Ragnvald Maartmann-Moe IV
4d09685df7
Remove client.h from sw_rsurf.c. Prepare gl_rsurf.c for same.
2001-05-21 03:39:41 +00:00
Ragnvald Maartmann-Moe IV
a9c9a46c37
client.h gone from gl_rlight.c and sw_rlight.c.
...
cl_lightstyle -> r_lightstyle
2001-05-21 03:08:07 +00:00
Bill Currie
ece576ed4b
reduce gl_rmain's dependency on cl*.h
2001-05-21 00:22:35 +00:00
Ragnvald Maartmann-Moe IV
1aef81e9ef
Minor makefile cleanups.
2001-05-20 23:30:16 +00:00
Ragnvald Maartmann-Moe IV
62eefb49af
Remove gl_cull cvar. Was enabled regardless of the setting of the cvar, in any case.
2001-05-20 22:02:44 +00:00
Ragnvald Maartmann-Moe IV
d9b509b885
nonintel stuff makes more sense in nonintel.c
2001-05-20 21:47:18 +00:00
Ragnvald Maartmann-Moe IV
ee8bdb0742
sw_rvars.c was just a little bit silly for a simple variable declaration.
2001-05-20 21:44:05 +00:00
Bill Currie
337430a113
sw_rmain.c is now client and chase clean.
2001-05-20 20:38:51 +00:00
Ragnvald Maartmann-Moe IV
7d008a5949
whitespace
2001-05-20 20:35:39 +00:00
Ragnvald Maartmann-Moe IV
3f816c0aa3
whitespace.
2001-05-20 18:07:39 +00:00
Ragnvald Maartmann-Moe IV
a07d05e054
whitenoise--
2001-05-20 16:29:41 +00:00
Bill Currie
44943e78de
better fix for the dlights problem (will prevent similar problems in the
...
future)
2001-05-20 06:23:46 +00:00
Bill Currie
d360b01827
move dlight stuff out of cl_* into r_main.c. nq dlights seem to be broken,
...
but that seems to have been from before this work
2001-05-20 05:42:52 +00:00
Ragnvald Maartmann-Moe IV
f7330f078e
Change meaning of gl_lightmap_components a bit. Setting 4 changed to reduce texture memory waste by a bit. Really only an optimization for nvidia drivers anyways. This also should fix a quality issue in 16bpp with it set to 4.
2001-05-20 04:36:20 +00:00
Bill Currie
cf2e098434
header order
2001-05-20 04:26:22 +00:00
Bill Currie
a41af75e56
cl.worldmodel is only remfereced once in the renderer (and that will be
...
going away shortly)
2001-05-20 04:25:36 +00:00
Bill Currie
daca64ed04
more cl*.h dependency cleanups realtime and cl.time are no longer reffed
2001-05-20 03:54:55 +00:00
Bill Currie
d1c2b0ec52
r_efrag.c no longer relies on cl*.h
2001-05-20 02:39:56 +00:00
Bill Currie
e0512e4af3
r_efrag.c is almost client.h free
2001-05-20 01:58:59 +00:00
Bill Currie
f834f99de7
diffsnr++
2001-05-20 00:34:40 +00:00
Bill Currie
916b52f24c
more diff S/N ratio improvements
2001-05-19 23:38:56 +00:00
Ragnvald Maartmann-Moe IV
2edaee8f5d
Whitespace.
2001-05-19 23:31:20 +00:00
Bill Currie
149e8477a6
Call SCR_UpdateScreen at the end of Host_Init
2001-05-19 22:27:44 +00:00
Ragnvald Maartmann-Moe IV
e9857d8213
Merges, and cl_writecfg now works in nq.
2001-05-19 20:57:29 +00:00
Ragnvald Maartmann-Moe IV
d55f9e4a4d
diff noise. blech.
2001-05-19 17:32:04 +00:00
Ragnvald Maartmann-Moe IV
0c7cc403b8
diff noise reduction.
2001-05-19 17:02:56 +00:00
Ragnvald Maartmann-Moe IV
6e3ea5cabb
whitespace
2001-05-19 16:22:35 +00:00
Ragnvald Maartmann-Moe IV
9f124853e5
whitespace
2001-05-19 02:09:08 +00:00
Bill Currie
0910c850bf
make R_LineGraph non-static
2001-05-19 01:59:04 +00:00
Bill Currie
ec5daaa764
finally merge render.h. nq will NOT currently compile. I'll fix that when I
...
get back onto my computer at home
2001-05-19 00:23:21 +00:00
Adam Olsen
9cc30959e4
Sound now uses runtime plugins. Much thanks to Deek for doing all the
...
thinking :)
set fs_pluginpath to point to the right dir, and set snd_plugin to pick a sound
plugin.
Current issues:
- alsa 0.5 won't build properly, dunno why
- segfault on exit. I think I know the cause of this, and how to fix it
- alsa 0.9, gus, sgi, sun, and win32 havn't been tested
2001-05-19 00:05:35 +00:00
Bill Currie
f0c6dfcb1a
now identical
2001-05-18 21:05:38 +00:00
Ragnvald Maartmann-Moe IV
9949108f45
draw.c now identical in qw and nq.
2001-05-18 20:52:15 +00:00
Ragnvald Maartmann-Moe IV
51cb61aea2
keys.c is now identical in nq and qw, as well as less of a whitespace mess.
2001-05-18 20:38:22 +00:00
Bill Currie
89360e5627
no need for bothdefs.h
2001-05-18 20:23:53 +00:00
Bill Currie
69ab5c981c
99% merge of d_*.[cS]. just d_polyse to look at
2001-05-18 20:19:20 +00:00
Bill Currie
664c640e42
total merge of the particle system (except r_part.c isn't in qw yet)
2001-05-18 19:58:49 +00:00
Ragnvald Maartmann-Moe IV
1dbfea351a
console.c mergable. Little bit of cleanup of client.h
2001-05-18 18:33:37 +00:00
Bill Currie
a735b92bab
kill the allowskybox varible. it wasn't ever checked anyway
2001-05-18 18:04:55 +00:00
Bill Currie
e75a2b96e9
cl_entities[0] is no longer referred to in the sw renderer. insted,
...
r_worldentity is used.
2001-05-18 17:50:19 +00:00
Bill Currie
d62ac62ff5
allow commands other than set to be executed from ~/.quakeforgerc
2001-05-17 21:32:59 +00:00
Bill Currie
011b16144e
check for the availability of usleep
2001-05-17 18:29:22 +00:00
Bill Currie
d820a6ecee
fix up the libs dependencies so the targets get relinked if any of the QF
...
libs get updated (vital for static builds)
2001-05-17 16:52:47 +00:00
Adam Olsen
65cf395fd6
make it release the CPU when framerate is too high
...
I thought I commited this already...
2001-05-17 10:10:40 +00:00
Bill Currie
a344c9fbd2
lib link order fixing so stat libs work
2001-05-17 08:29:04 +00:00
Bill Currie
44f4c688a5
whitespace
2001-05-17 07:52:37 +00:00
Bill Currie
35a52bb634
diff noise reductions + fix what looks to be a bug with surf flushing
2001-05-16 17:20:42 +00:00
Bill Currie
8f4394de4f
various merge cleanups including moving the contents of R_Textures_Init into
...
Mod_Init
2001-05-16 17:08:56 +00:00
Bill Currie
dda567a961
clean up a comment
2001-05-16 15:54:56 +00:00
Bill Currie
72cc67e863
kill r_fullbright and r_draworder
...
`merge' skin handling
2001-05-16 06:01:34 +00:00
Bill Currie
266e6b3474
put TE_BLOOD and TE_LIGHTNINGBLOOD into nq and clean up some other diffs.
...
down to just old_origin vs ent->msg_origins
2001-05-16 03:55:19 +00:00
Bill Currie
e61c33c9d9
merge of cl_tents and r_efrag.
2001-05-15 21:34:54 +00:00
Ragnvald Maartmann-Moe IV
e7c2ed82db
whitespace...
2001-05-15 21:13:07 +00:00
Bill Currie
e07f91155b
some diff cleanups: use cl.viewentity instead of cl.playernum + 1 and some
...
white space
2001-05-15 19:38:01 +00:00
Ragnvald Maartmann-Moe IV
c278652d9a
diff noise reduction
2001-05-15 19:22:39 +00:00
Ragnvald Maartmann-Moe IV
e88cdda35a
whitespace.
2001-05-15 19:19:38 +00:00
Ragnvald Maartmann-Moe IV
5d52236da1
Whitespace and comment cleanup.
2001-05-15 17:38:43 +00:00
Ragnvald Maartmann-Moe IV
dd81f9bf30
Change light setting from 256 and 200 to 255, for fullbright models.
2001-05-15 17:38:02 +00:00
Bill Currie
40cbc5ed3c
cl.items in nq is now cl.stats[ITEMS] as per qw
2001-05-15 17:22:53 +00:00
Bill Currie
350920399e
that wasn't quite the right thing to do
2001-05-15 05:38:06 +00:00
Bill Currie
ba0d0c755c
do key_dest right
2001-05-15 05:27:14 +00:00
Bill Currie
7b4e395dcb
massive merging madness mounds
2001-05-15 04:50:53 +00:00
Bill Currie
eb65d61322
more merge madness
2001-05-15 03:27:55 +00:00
Ragnvald Maartmann-Moe IV
cf7487b692
Dead cvar removal, diff noise cleanup. The usual.
2001-05-15 02:19:36 +00:00
Bill Currie
312cb5bf53
clean up the diffs again after enabling R_Mirror in nq
2001-05-14 20:57:50 +00:00
Bill Currie
1b74d305a8
diff noise reduction
2001-05-14 20:35:32 +00:00
Ragnvald Maartmann-Moe IV
0c16f56c23
diff noise reduction.
2001-05-14 19:46:16 +00:00
Ragnvald Maartmann-Moe IV
2c80bff085
Removed useless comments.
2001-05-14 06:57:38 +00:00
Bill Currie
9064530d1d
diff noise reduction
2001-05-14 06:48:59 +00:00
Bill Currie
afef935399
95% merge gl_rmain.c
...
nq is actually generally working again, except alias models are black
2001-05-14 06:47:38 +00:00
Bill Currie
0a915d3ecc
compile fix for win32
2001-05-14 05:43:35 +00:00
Bill Currie
879a133c19
forward port the x11 repeat fix
2001-05-14 05:37:47 +00:00
Bill Currie
83e0754e41
fix missing "" around cvar default
2001-05-14 05:21:27 +00:00
Ragnvald Maartmann-Moe IV
28d3937399
Some more whitespace, and fixes for disappearing cvars.
2001-05-14 05:16:59 +00:00
Ragnvald Maartmann-Moe IV
91200a862d
Whitespace.
2001-05-14 03:08:24 +00:00
Ragnvald Maartmann-Moe IV
56f76e8192
More cleanups.
2001-05-14 01:22:58 +00:00
Ragnvald Maartmann-Moe IV
924cdf917d
Fix a new bug with dlights, more cleanups.
2001-05-13 23:15:34 +00:00
Ragnvald Maartmann-Moe IV
048a80ce23
Merges and cleanups...
2001-05-13 22:57:27 +00:00
Ragnvald Maartmann-Moe IV
87894c0d39
Whitespace.
2001-05-13 17:01:17 +00:00
Ragnvald Maartmann-Moe IV
4b758624a9
Whitespace and comment cleanups.
2001-05-13 04:17:05 +00:00
Bill Currie
c7ee39acbb
rename the qw c declaration of the client name cvar from name to cl_name
2001-05-13 04:01:06 +00:00
Ragnvald Maartmann-Moe IV
220f8a6e38
Renderer merge continues. gl_rlight, gl_rmisc, gl_rmain, and gl_rsurf the current victims.
2001-05-13 00:28:50 +00:00
Bill Currie
fc456ac040
more header cleanups
2001-05-11 23:56:01 +00:00
Bill Currie
559aa4485b
split out the qw client specific skin code from skin.c
2001-05-11 22:47:15 +00:00
Bill Currie
f62ecbe90d
mild comment cleanup
2001-05-11 21:44:27 +00:00
Bill Currie
74f734df67
clean up *_skin.c's header dependencies
2001-05-11 21:23:43 +00:00
Ragnvald Maartmann-Moe IV
86b2363244
emptiness shuffled.
2001-05-11 20:50:16 +00:00
Ragnvald Maartmann-Moe IV
a2b5fe36bb
Whitespace.
2001-05-11 19:53:23 +00:00
Bill Currie
4ff86056db
pull all rendering cvar declarations and initialisations out of the misc
...
files and put them into r_cvar.[ch] getting ready for the renderer merge
2001-05-11 19:21:48 +00:00
Bill Currie
6ba3288744
more diff noise reduction. just down to the diferences in the way gl stuff
...
is handled.
2001-05-11 16:23:00 +00:00
Bill Currie
b775a6f308
remove some diff noise to ease merging
2001-05-11 06:11:17 +00:00
Bill Currie
44317f299e
merge gl_mesh.c into libQFmodels
2001-05-11 05:59:17 +00:00
Ragnvald Maartmann-Moe IV
28c809d27e
Alliteration Annoys Always
2001-05-11 01:01:27 +00:00
Bill Currie
d03e28a034
correct the link order of the libs
2001-05-10 16:29:11 +00:00
Bill Currie
2c07108c65
model loading code merge. dragged in smoe merges and cleanups of d_iface.h,
...
r_local.h, r_shared.h, client.h and render.h at the same time (couldn't get
away from that:/) verly likely to be lots of breakage (eg, player and eye
models are NOT checksummed atm), but everything builds
2001-05-10 06:01:11 +00:00
Ragnvald Maartmann-Moe IV
37a93b3e91
Merge draw.h.
2001-05-09 22:40:51 +00:00
Bill Currie
271803a568
commdef.h is dead
...
good riddance
2001-05-09 20:34:39 +00:00
Bill Currie
9b666fb26e
correct an error message
2001-05-09 20:31:21 +00:00
Bill Currie
83af1368e1
remove pcx.c's dependence on cl_parse.h
2001-05-09 18:48:55 +00:00
Ragnvald Maartmann-Moe IV
febf62ad9d
Ack, where did all the chairs go!
2001-05-09 18:45:38 +00:00
Ragnvald Maartmann-Moe IV
910e76a900
More header musical chairs chaos. You there! No eating the chairs!
2001-05-09 18:42:37 +00:00
Ragnvald Maartmann-Moe IV
7fa4b01208
More header merges.
2001-05-09 18:28:08 +00:00
Bill Currie
439eb60cb2
fix some missed refs to teamplay.h as a result of its move
2001-05-09 18:04:45 +00:00
Ragnvald Maartmann-Moe IV
7567098bc0
More header merges.
2001-05-09 17:57:57 +00:00
Bill Currie
f818392e26
cruft removal
2001-05-09 06:02:23 +00:00
Ragnvald Maartmann-Moe IV
f6374b48ce
First pass at updating nq particles. Compiles. Crashes. Taniwha wanted a look. Flee in terror.
...
Also has bunches of cleanups, including string.h/strings.h ifdefs, whitespace, and removal of pointless comments.
2001-05-09 05:41:34 +00:00
Bill Currie
80814f5437
remove these since they are no longer needed as they are in libs/util now
2001-05-08 22:29:48 +00:00
Bill Currie
b5df1c816a
move fnmatch.c and dirent.c to libQFutil
2001-05-08 20:53:25 +00:00
Bill Currie
cc68e1a12e
qf now links with NO optimisation (not even -O). R_CullBox has been moved from
...
glquake.h to mathlib.h (along with the declaration for frustum) and the
extern inline keyworws protected by an ifndef so that mathlib.c can cause
R_CullBox to be compiled publicly. The definition of frustrum has been moved
from its verious locations into mathlib.c.
2001-05-07 04:08:34 +00:00
Ragnvald Maartmann-Moe IV
4ad2644fa3
Tweaks to particle effects.
2001-05-02 18:01:14 +00:00
Zephaniah E. Hull
4b3311983b
cl_demo.c: Modified timedemo to give a little more precision with FPS.
...
gl_draw.c: Fixing gl_lightmode 1.
gl_dyn_part.c:
Fixing gl_lightmode 1.
Fixed word wrapping on comments.
Switched to using the new vertex array setup.
gl_rmisc.c: New vertex array setup.
varrays.h: New vertex array setup.
2001-05-02 13:48:04 +00:00
Zephaniah E. Hull
86a99a7cd2
Fixed how we detect 3dfx cards, AND how we set the default gl_max_size.
2001-05-02 09:27:00 +00:00
Bill Currie
1fbb62d518
hook in the plugin system
2001-04-25 00:20:23 +00:00
Ragnvald Maartmann-Moe IV
93290fcb07
Easter's over. (aww...)
2001-04-20 19:45:42 +00:00
Ragnvald Maartmann-Moe IV
b5d3508022
Small cleanups.
2001-04-20 19:39:38 +00:00
Bill Currie
4be4e5ccf6
clear not-yet allocated entities to 0xdeadbeef
2001-04-20 17:51:57 +00:00
Adam Olsen
fa4ee64984
And cshift patch here too..
2001-04-20 13:33:56 +00:00
Adam Olsen
c2044ccdbf
Fix the "Corrupted demo" error when you play a timedemo while one is already running.
2001-04-20 13:09:22 +00:00
Bill Currie
06acd3db1c
massivly speed up qw/source/Makefile creation, and Makefile.in, too. ASM_ARCH
...
and PACKETLOG are gone from Makefile.am as the first was really redundant
and the latter now is.
2001-04-18 21:02:02 +00:00
Bill Currie
9babdbdf79
correct the wording of the server init failure message
2001-04-18 04:42:09 +00:00
Bill Currie
527471a7de
*-wgl finally links (who knows if it works?:) and some more conceptual
...
cleanup
2001-04-17 15:55:33 +00:00
Adam Olsen
f9641bfadc
Make 16 megs the default, since 44khz sounds need it. Win will grab
...
up to 16 megs anyway, and nq already has 16 as the default, so no
changes for them.
2001-04-17 07:47:32 +00:00
Bill Currie
dbca31519f
qw-client-wgl and nq-wgl get to (but fail) the link stage
2001-04-17 06:55:50 +00:00
Chris Ison
ba1408d56d
fixed seg cause of uninitialized cvar in_freelook. Also remove double initialization of sensitivity and lookstrafe
2001-04-17 03:08:52 +00:00
Adam Olsen
311cbdbe59
Fix so building statically (--disable-shared) works.
2001-04-16 17:45:35 +00:00
Bill Currie
065649e488
rework VID_InitBuffers to use callback to init the draw buffers.
...
Unfortunatly, this means that VID_InitBuffers needs to be called twice during
startup (once in VID_Init, and once in D_Init).
2001-04-16 09:12:21 +00:00
Bill Currie
f9c9e4fba7
everything except *-3dfx (unknown status) now builds
2001-04-16 03:55:44 +00:00
Bill Currie
0b5b3b03a4
move GL_CheckBrightness into vid_common_gl.c
2001-04-15 21:19:05 +00:00
Bill Currie
6fcf8395ca
FBDEV GLX SVGAlib X11 all build, but nq-glx doesn't link yet due to some
...
changes between nq and qw (gl_mtexable, texture_mode and GL_CheckBrightness)
2001-04-15 21:11:41 +00:00
Bill Currie
36cbe70826
vid libs build but probably don't work yet (I KNOW x11 doesn't) lots of
...
build failures in the main source still
2001-04-15 08:04:15 +00:00
Bill Currie
7e67fd56f3
getting closer to building the vid libs.
...
in_common.c is the main input interface. in_x11 has been modified suitably
2001-04-15 07:18:04 +00:00
Ragnvald Maartmann-Moe IV
20e0961ed2
*whack* Die Mole Die!!!
2001-04-15 06:18:06 +00:00
Ragnvald Maartmann-Moe IV
778f0c129c
Finish move of vid.c to libs, kill a few stragglers.
2001-04-15 05:36:56 +00:00
Ragnvald Maartmann-Moe IV
2c282b17c4
Die, dammit!
2001-04-15 05:04:16 +00:00
Ragnvald Maartmann-Moe IV
84461e1f1f
More merging.
2001-04-15 04:45:07 +00:00
Bill Currie
6a696881b3
these are now in libs/video/targets
2001-04-15 04:40:09 +00:00
Ragnvald Maartmann-Moe IV
66fafd3e0e
First stage of video and input system merge. The city has collapsed, wreckage sifting ensues...
2001-04-15 04:18:22 +00:00
Bill Currie
bd0fab4ce1
vid_wgl in qw now uses vid_common_gl. probably doesn't work
...
compile fix for merged glquake.h in vid_wg.c in nq
2001-04-15 03:17:03 +00:00
Timothy C. McGrath
9f583076f8
Made necessary changes to includes to get files to compile, got
...
directions from despair :)
Misty-chan
2001-04-15 00:39:29 +00:00
Bill Currie
8fef64c064
V_CheckGamma WILL get called before vid_gamma gets set in gl, so protect
...
against that circumstance.
2001-04-14 02:27:19 +00:00
Jeff Teunissen
bffe67977c
Gamma cleanups. Brightness and contrast are gone from software, since they
...
won't work with proper gamma control anyway.
2001-04-13 08:02:11 +00:00
Bill Currie
9a2df9a2d5
use hash tables in Skin_Find
2001-04-13 06:56:45 +00:00
Ragnvald Maartmann-Moe IV
9ff89960f2
Fix hw gamma in -sgl.
2001-04-13 06:53:35 +00:00
Chris Ison
1b40eb715a
fixed m_filter CVAR type, started on gamma for 3dfx
2001-04-13 04:25:06 +00:00
Bill Currie
deac792513
damn, not only did that not fix the problem, I broke stuff
2001-04-13 03:33:56 +00:00
Bill Currie
ee7d43f6ae
fix the "Couldn't load skin skins/dvc-c.pcx" skins problem
2001-04-13 01:45:37 +00:00
Bill Currie
5278f9fd73
put the gamma code into vid.c where (IMO) it should have been.
...
give vid_fbdev VID_SetGamma
mame vid_common_gl and vid_common_sw of their gamma code (vid_common_sw is
now empty:/)
rewrite VID_InitGamma to do the right thing with cvars with callbacks
gl clients have [temporarily?] lost the CVAR_ROM on vid_gamma
2001-04-12 23:44:56 +00:00
Bill Currie
6b3b94bafc
sound crashing bug fixes
...
snd_dma.c, {nq,qw}/source/cl_parse.c:
change the type of snd_worldmodel from * to ** and init snd_worldmodel
with the ADDRESS of cl.worldmodel so its changes get seen by snd_dma
snd_mixa.S:
picize
2001-04-12 06:53:07 +00:00
Ragnvald Maartmann-Moe IV
3a395dd87f
Fix black screens in -sdl, and lack of gamma correction in -sgl.
2001-04-12 06:26:14 +00:00
Ragnvald Maartmann-Moe IV
f2435b8a64
Round, rather than truncate.
2001-04-12 03:48:26 +00:00
Bill Currie
f7d9c1e8fc
joy_win.c now builds, but very likely does not work AT ALL. also fix qw's
...
in_win.c for the new input api
2001-04-11 21:06:37 +00:00
Bill Currie
ebb7b6310a
view.h:
...
it seems somebody forgot to commit this. just compied direct from qw
libs/video/targets/.gitignore:
better ignore rules
nq/source/Makefile.am:
libqfsys.a is dead :)
the rest:
gamma compile fixes
2001-04-11 16:19:08 +00:00
Ragnvald Maartmann-Moe IV
f789b61c56
Merged joystick code. Great deal of cleanup in input, reduced bizarre overuse of protocol.h...
...
Maimed joy_win.c, very likely to get odd behavior there, even if it compiles.
2001-04-11 07:57:08 +00:00
Jeff Teunissen
5cd24de097
Hardware gamma support in QW. Currently, only -x11 and -glx will
...
build. Look at their vid files, as well as vid_common_{gl,sw}.c to find
out what will need to be added to the rest of the video targets.
2001-04-11 07:16:34 +00:00
Bill Currie
4ae2ad2949
qw-client-wgl now builds (nq-wgl next)
2001-04-11 05:10:42 +00:00
Bill Currie
9cd83e178f
various fixes for out-of-srcdir building
...
configure.in:
foo/Makefile MUST come before foo/bar/Makefile or foo/bar will NOT be
created.
libs/*...*/Mkaefile.am: add INCLUDES so $(top_scrdir)/include gets searched
{qw,nq}/source/Makefile.am: fix fbset compiling (and cleaning for nq)
2001-04-11 03:09:24 +00:00
Joseph Carter
75aa40276f
A few more. Also removed a couple inaccurate comments.
2001-04-11 00:10:19 +00:00
Joseph Carter
2bc55b7828
Cvar cleanups.. NULL is now used in place of 0 for callbacks, this should
...
make Cvar_Get's a lot easier to read.
2001-04-10 23:39:30 +00:00
Bill Currie
7f5d4cd7e9
clients now build (sdl, sgl, wgl), but don't link yet
2001-04-10 22:09:41 +00:00
Bill Currie
8e2d89c4c2
fix up a mis-understanding about api headers
...
*taniwha larts himself for not explaining things to Despair
2001-04-10 21:45:42 +00:00
Bill Currie
082c5ccae4
get qw-server to link in mingw
2001-04-10 21:43:57 +00:00
Ragnvald Maartmann-Moe IV
cbb4af711c
Remove duplicate sound.h, move some things down from include/QF to include.
...
Prepare for joystick merge...
2001-04-10 20:15:18 +00:00
Bill Currie
dfbfd9463c
mingw cross compile fixes. qw-server (only, so far) compiles but does not
...
yet link due to Sys_Error :/
2001-04-10 20:07:11 +00:00
Adam Olsen
dcd924c355
Removed old files
2001-04-10 09:44:36 +00:00
Adam Olsen
69022c7ffb
Move sound targets into a library. Still doesn't pick one at runtime though.
2001-04-10 09:40:09 +00:00
Bill Currie
a96536c896
nuke commdef.h and clean up the results by putting its contents where they
...
belong.
also, merge model.h and friends (MINUS render.h). this needed moving efrags_t
from render.h to model.h.
2001-04-10 06:55:28 +00:00
Bill Currie
2829f8b493
include config.h and string[s].h
2001-04-10 02:16:50 +00:00
Ragnvald Maartmann-Moe IV
d7eb585502
Merge cd. Doesn't dlopen different cd drivers or anything exciting... Yet.
2001-04-09 21:15:09 +00:00
Ragnvald Maartmann-Moe IV
0c00970ae1
Tweak particle effects extensively. Grenades and blood far cheaper, and better looking.
2001-04-08 21:41:53 +00:00
Timothy C. McGrath
9bdc1f02c4
Modified smoke trails for grenades and rockets so that we have an easter
...
egg temporarily until easter - They'll randomly choose between 255
colors. I'll eventually change this into a cvar, but for now enjoy ;)
This stuff is easily removed for the people who don't like colors: Just
remove my added lines, and uncomment the old ones :)
Misty-chan
2001-04-08 07:49:54 +00:00
Zephaniah E. Hull
7553f2b0a4
Tweaking the trails a bit more.
2001-04-08 04:56:24 +00:00
Zephaniah E. Hull
4873457160
Fixed how all particle trails are rendered, still needs a /lot/ of tweaking.
2001-04-08 04:07:19 +00:00
Ragnvald Maartmann-Moe IV
b897f96e51
Restore old grenade smoke trail, make order of texture generator mentions consistent.
2001-04-06 19:23:00 +00:00
Zephaniah E. Hull
a40130f7d7
Oops, non-smoke ring particles should work again.
2001-04-06 19:05:57 +00:00
Zephaniah E. Hull
a16b2c0070
Borrowed LH's VectorVectors.
...
Changed smoke trails a good bit.
2001-04-06 18:37:23 +00:00
Ragnvald Maartmann-Moe IV
1f25ab9ec2
New generated texture for spark particles.
2001-04-06 04:27:39 +00:00
Zephaniah E. Hull
b7ee9ba07d
gl_draw.c: gl_lightmode now uses a callback.
...
gl_dyn_part.c:
Now uses a (non-locked) vertex array to reduce GL calls.
Gives a slight speed gain, I'll optimize it a bit more soon.
gl_rlight.c:
Fixed much of the dlightframecount issues.
(This gives cleaner code and a speed up.)
gl_rmain.c: A slight reorg of the dlight call order.
gl_rmisc.c: Enable some of the vertex arrays. (vertex, texcoord, color.)
gl_rsurf.c:
Reworked R_BuildLightMap, smaller now code wise, also more optimized,
and it builds a 0-2 lightmap in more cases now.
Playing with GL_UploadLightmap.
For non-lighthalf non-mtex lightmaps use a 0-2 range.
(Makes gl_lightmode look a /lot/ better.)
gl_screen.c: More stuff with the gl_lightmode callback.
r_view.c: R_PushDlights is called elsewhere now.
sw_rmain.c:
Moved the R_PushDlights call.
Also killed the unused PASSAGES define.
2001-04-06 02:57:26 +00:00
Joseph Carter
9ea0605558
reverting this for Mercury
2001-04-06 02:12:19 +00:00
Joseph Carter
c9ecc7a9d2
The lighthalf qboolean is no more - replaced with a gl_lightmode callback
...
to do the job much more simply. Also replaced lighthalf_v with white_v on
the QW side.
2001-04-05 17:28:28 +00:00
Bill Currie
ef66808016
this was accidently deleted
2001-04-04 21:24:28 +00:00
Bill Currie
0146992d67
rename (most of) r_*.[cS] to sw_r#1.#2 (mmv rocks:) to finally fix the borked
...
naming scheme of sw vs gl
2001-04-04 21:22:23 +00:00
Ragnvald Maartmann-Moe IV
4dc5da173b
Rest of commit...
2001-04-04 05:40:29 +00:00
Ragnvald Maartmann-Moe IV
f4632ccd8b
Merge fractalnoise into noisetextures.c, which will eventually add a few more fractal noise types. Current smoke is a blend of diamond-square and plasma noise.
...
Also make smoke less dense, in an attempt to fix Jin^eLD's problem with hwguy smoke.
2001-04-04 05:39:44 +00:00
Chris Ison
2ece48c535
alpha code for master server queries
2001-04-03 05:48:24 +00:00
Timothy C. McGrath
1843bb5839
Minor housecleaning. sw no longer spits out diagnostic output, comments
...
are now sane and match current code, I moved things around in GL so they
more closely match the sw code, as the sw code makes more sense now that
I *finally* understand what in gods name I was doing wrong. ;)
I also made minor changes to the help to indicate the minimum values of
the variables (sw can deal with 1, gl 0) as well as that you really
ought to use r_particles 0 instead of a setting of cl_max_particles 0 in
GL :P
Thanks for all the help taniwha, those last two bugs were kicking my
butt.
Misty-chan
2001-04-03 05:40:15 +00:00
Bill Currie
afaf10a2c8
fix the lost particles problem
2001-04-03 05:08:23 +00:00
Bill Currie
9bb7aee3fe
this should fix misty-chan's problems :)
2001-04-03 04:11:29 +00:00
Timothy C. McGrath
d649508b5d
This took half the hair on my head. Just kidding:
...
cl_max_particles now lives in *part.c - in GL it dynamically changes the
amount of particles on the fly! Needless to say this is fun, and this is
proboably the third cvar that uses the callbacks function at all - which
IMHO is really a cool trick Taniwha.
However I'm losing my SANITY in r_part.c - if someone could take a look,
I'd be greatly appreciative. It should be obvious to any developer that
I'm having a few problems. :P Basically the dynamic code is completely
and totally disabled, and I hacked in code which *works* but shouldn't
EVER EVER EVER be left there after we fix this as it is downright EVIL
the way I implimented it. SW client does work, and does still work with
+set cl_max_particles - however the hacks I made to get it to do that...
*shakes head* Tread softly in there, it's a mess.
Other notes of interest:
I changed show_time so it archives its setting. Got annoyed with it. If
someone finds this change to be bad, change it back. :)
glspeed.cfg got updated with a setting of 60 for cl_max_particles. 60
works nicely, and doesn't use too much speed on my aging hardware, so
I'm sure newer systems will just plain FLY with this on.
I also changed the cl_maxfps setting as 72 is great if you aren't using
a modem !.! due to the way cl_maxfps works, the higher it goes, the more
data is sent to you by the server. This causes a heck of a lot of lost
packets if you don't have the bandwidth OR if your card can't keep up
with the framerate. Either of which is bad. I set it to 30, the default
of the cvar is 0/32 so go figure out what works best for you I say.
Let me know if this blows up in your face and ESPECIALLY let me know if
you can fix the r_part.c problems!
Misty-chan
2001-04-03 02:56:39 +00:00
Bill Currie
f5c168b8a5
sw currently can't cope with 0 particles
2001-04-02 23:38:56 +00:00
Chris Ison
0e68cf838d
Added slist update and slist # (shows details)
2001-04-02 10:24:23 +00:00
Chris Ison
999b8c94ac
Start of console based server list
2001-04-01 22:09:12 +00:00
Bill Currie
fc99d7bd4d
oooooooops, forgot to call Game_Init in the server
2001-04-01 01:42:40 +00:00
Bill Currie
7cb6245efa
link libQFutil.so against libz so the clients (and tools) don't need to worry
...
about it
2001-03-31 03:51:25 +00:00
Bill Currie
e939ccc40a
cvars now sport a callback function that gets called whenever the cvar changes
...
or on initial get.
2001-03-31 01:02:52 +00:00
Bill Currie
4162243287
eliminate Cmd_ForwardToServer from cmd.c. Cmd_ForwardToServer still needs to
...
be removed from cmd.h, but that can wait a bit.
2001-03-31 00:35:08 +00:00
Bill Currie
ad9142ff3c
move Con_Printf, Con_DPrintf and Con_Print (weak) into libs/util/console.c.
...
Except for the cmd and cvar callbacks, libQFutil.so is now standalone.
2001-03-31 00:08:21 +00:00
Bill Currie
1e2e2f44c3
move the developer cvar into cvar.c
2001-03-30 23:35:48 +00:00
Bill Currie
99535102d7
bare bones sys stuff moved into libQFutil. unix stuff seems to work just fine,
...
but win32 is probably borked atm
2001-03-30 23:24:57 +00:00
Bill Currie
c227fbc3cc
forgot to remove this
2001-03-30 17:43:53 +00:00
Bill Currie
4f2e22bfb8
merge and move quakefs.c into libQFutil where it belongs. at long last
2001-03-30 00:44:35 +00:00
Bill Currie
b432d0ea17
pull the game specific stuff out of quakefs.c in preparation for merging it
2001-03-30 00:30:38 +00:00
Bill Currie
80ee9eb8d1
merge and move quakeio.c into libQFutil
2001-03-29 21:16:16 +00:00
Bill Currie
dd3d2a073d
make -fbdev build again AND make nq-fbdev a new target.
...
moved fbset.h from qw/include to include so it can be shared by nq. it's in
include instead of include/QF because I don't see any need to isntall it.
2001-03-29 17:31:15 +00:00
Adam Olsen
9b31fca76d
Add include for stdlib.h needed for malloc call.
2001-03-29 13:13:28 +00:00
Jeff Teunissen
277c17cfd8
Shared library support. The util and gamecode libraries are now shared,
...
and this clears the way for an external API for utilities and
such. And yes, this means libtool is now used.
2001-03-29 09:07:44 +00:00
Chris Ison
f1c31b6e1a
added #include for QF/compat.h
2001-03-28 22:23:40 +00:00
Bill Currie
cb5c262ffc
qtypes.h:
...
remove includes of qdefs.h and compat.h
pr_comp.h:
merge pr_comp.h from quake and qfcc, removing the copy in qfcc
cmdlib.[ch]:
nuke the endian code.
qendian.c:
initialise the LittleLong etc pointers at compile time rather than run
time
com.c (both nq and qw):
nuke the LittleLong etc init code
everything else:
fix up after the qtypes.h cleanup
2001-03-28 17:17:56 +00:00
Bill Currie
5a48f987a5
scripted fixups for the QF include move
2001-03-27 23:36:02 +00:00
Chris Ison
b6f6f959b9
fixed vid_3dfxsvga.c includes to match current tree
2001-03-27 23:29:31 +00:00
Adam Olsen
d56a749e05
Well I *guess* this is needed, if only to make sure they have identical files.
2001-03-27 22:44:58 +00:00
Bill Currie
067db089a2
make edict pruning, field parsing and the builtins part of progs_t like they
...
should have been
2001-03-27 22:39:21 +00:00
Adam Olsen
31295c1f63
Bring qw and nq snd_*.c files into sync. Should be able to move them
...
into a common dir now.
Also fix some #include path changes.
2001-03-27 22:30:25 +00:00
Bill Currie
82b533e1ef
forgot that .S files don't have dependency info :/
2001-03-27 21:46:49 +00:00
Bill Currie
f78b973978
move the api headers into include/QF and clean up (most of) the resulting mess.
...
target specific files that I don't build won't compile yet. just put QF/
infront of the offending headers.
Also move ver_check into libqfutils
2001-03-27 20:33:07 +00:00
Bill Currie
f6073d756f
better progs access error checking and cleanups resulting from it. Fixes
...
mega2k and nq.
2001-03-27 03:57:17 +00:00
Timothy C. McGrath
b25a437460
Very minor changes. cl_max_particles still cannot be used dynamically,
...
however I've removed the stupid limits that I'd accidentally left behind
in my panic to comment out the messed up code in r_part.c so software
clients now can use a setting of zero. Particles in sw clients will not
default to 2048 if you use a number less than 1 - it will now use 0.
Otherwise, I made comments to myself for when I actually fix this and
cleared up some silliness in comments I'd made. Nothing special.
Special note: To use cl_max_particles *right now* you can either set it
while playing and then restart the client (I think this should work,
it's archived. May not however) Or do this which I absolutely am
*positive* works:
clientname othercommands +set cl_max_particles number othercommands
So, again, while changing in game does not work, it at least is still
useful somewhat.
Misty-chan
2001-03-22 01:52:33 +00:00
Timothy C. McGrath
820715672b
*DOH!*
...
I goofed up my code. cl_max_particles will not dynamically update with
this change, but ATM, this is safer until I can grok what I need to know
to fix the code I wrote.
Sorry guys,
Misty-chan
2001-03-20 00:27:22 +00:00
Timothy C. McGrath
264547d470
Okay, this patch REMOVES the -particles command line option, and adds a
...
new cvar: cl_max_particles. This cvar is archived, has no lower or
upper limits (well, less than 1 is not allowed) and can be changed in
game at any time.
BUGS:
Only one so far. I can't figure out why it's doing this, but in software
clients, (well, at least X11) if you set it to 1 particle, it acts like
you set it far higher. 2 acts like you set it to zero... Or maybe
it's showing 2 and I just can't see it on my 320x200 window. In any
case, the vagary must be something in the software particles code,
because I basically used the same code from the GL particles code for
this as I used for the software renderer.
If nobody can find fault with my code, I'll just make a special note in
the console help.
In any case, let me know of any problems.
Misty-chan
2001-03-18 07:04:47 +00:00
Forest Hale
cc85f21430
shrank lava splash particles from size 7 to size 3, makes spy gas grenades in TF faster
2001-03-16 15:25:31 +00:00
Ragnvald Maartmann-Moe IV
00e71e3cc5
Better failure reporting for vid_use8bit.
2001-03-13 04:43:15 +00:00
Ragnvald Maartmann-Moe IV
3217faa319
Fix white sbars in -sgl.
...
(Thanks to super_ice for the patch)
2001-03-11 21:37:32 +00:00
Ragnvald Maartmann-Moe IV
30cdd18174
Fix a typo. Oops...
2001-03-11 00:31:52 +00:00
Ragnvald Maartmann-Moe IV
e884846d57
Tighten up checks for 3dfx in gl_draw.c and restore default gl_texturemode to old setting.
2001-03-11 00:25:30 +00:00
Ragnvald Maartmann-Moe IV
fd3eafac77
Oops.
2001-03-09 21:21:50 +00:00
Ragnvald Maartmann-Moe IV
1b8928de00
Cleanup of gl_draw.c and beginnings of work for user-specifiable texture format/quality (monochrome quake anybody? :)
2001-03-09 21:10:44 +00:00
Joseph Carter
055fe8d222
Purely whitespace cleanups
2001-03-09 07:55:25 +00:00
Chris Ison
69fd58944e
moved slist loading into cl_slist.c
2001-03-08 23:53:03 +00:00
Bill Currie
645a791315
add pr_checkextentions as promised
2001-03-08 00:27:35 +00:00
Chris Ison
16bc4735b1
adding rising smoke
2001-03-07 23:24:53 +00:00
Bill Currie
53c9732303
add PF_checkextension for later use. The pr_checkextension cvar will come
...
when I've had some sleep.
2001-03-07 10:22:51 +00:00
Bill Currie
771648a5b4
forgot to remove the old prstring stuff
2001-03-06 16:10:28 +00:00
Bill Currie
f40b361fb3
hash.[ch]:
...
slight api change: the getkey and free functions now take a user data
parameter (which is an aditional parameter to Hash_New.
cmd.c, cvar.c, quakefs.c:
clean up the resulting errors.
pr_edict.c:
use hash tables for lookups of function, global and field definitions.
should speed things up a bit, ESPECIALLY when type checking is enabled.
2001-03-05 05:11:26 +00:00
Bill Currie
09b58f7e5f
merge math code into utils
2001-03-05 02:06:05 +00:00
Joseph Carter
fb9f7a1ba4
Forest's COM_FileBase rewrite. Doubt this is faster, but it's sure a lot
...
easier on the eyes.
2001-03-04 10:09:59 +00:00
Bill Currie
cf3629b3b3
merge in my progs work off the `taniwha' branch. This prigs us a few nice
...
thinks:
o Full progs modularity
o CSQC should now be just a matter of creating the builtin functions and
loading the code.
o total independence from progs globals, functions and entity field layouts
on the conditoin that their definitions have not been stripped from the
progs file.
o optional (though currently forced on) type checking on access to progs
entity fields from C
o the progs engine is fully shared between nq and qw.
2001-03-04 06:30:30 +00:00
Joseph Carter
b507853b18
A number of keys should bring up the menu in demo playback, they now bring
...
up the console.
2001-03-04 01:55:12 +00:00
Joseph Carter
e4e80437df
Escape is still unconditional, but rather than being unconditionally menu
...
(or now unconditionally nothing since I killed the menu), it works as the
console. In the future, when the new menu is implemented, it will fall
back to console if there's a problem with the menu (like there isn't one.)
2001-03-03 12:30:48 +00:00
Joseph Carter
d28e15d171
Software netgraph fixed. Probably not the same as it was before, someone
...
else is welcome to change it to their liking, optimize it, remove the box,
whatever..
2001-03-03 12:16:24 +00:00
Joseph Carter
9c39a00a54
Fixed the netgraph
2001-03-03 11:05:20 +00:00
Joseph Carter
c057c27d9a
Menu has been killed completely from qw. It's dead. I doubt anybody will
...
even notice, given that QW's menu was crippled to the point that it was
completely useless anyway.
2001-03-03 09:42:35 +00:00
Joseph Carter
168d47402a
Mostly whitespace, these files are now identical and COULD be merged, if
...
they weren't about to get a rewrite first.
2001-03-03 06:51:18 +00:00
Chris Ison
8ad00b04c3
added sharepath search when loading server list
2001-03-03 06:01:57 +00:00
Chris Ison
050b49c479
fixing missing oss dev as shown by taniwha
2001-03-03 00:54:46 +00:00
Bill Currie
3c17a888be
more cleanups. rocket/shotgun bug not found yet
2001-03-02 23:40:34 +00:00
Ragnvald Maartmann-Moe IV
6962f954ed
gl_colorlights gone, replaced by gl_lightmap_components. Valid values are 1, 3, 4. 4 (RGBA) default. Significant speedup going from RGB to RGBA on some boards.
...
Thanks to LordHavoc for the idea, and much of the design.
2001-03-02 23:38:40 +00:00
Ragnvald Maartmann-Moe IV
09f7689a09
Tweaked lava splash.
2001-03-02 23:32:24 +00:00
Bill Currie
6c9de8061b
fix the silly OP_STATE bug. also erradicate pr_offs.c and its contents (the
...
source of the bug)
2001-03-02 19:18:04 +00:00
Joseph Carter
c7d74c6743
Minor cleanup to download draw function. More to do, this is just a good
...
checkpoint before I make changes that may not work.
2001-03-02 00:29:35 +00:00
Bill Currie
be8f1cef7c
just some temporary debug info
2001-03-01 23:30:55 +00:00
Bill Currie
10e6b7af84
edict field access type checking :) Currently forced on, but it will become a
...
configure option in the future
2001-03-01 21:11:35 +00:00
Bill Currie
68220d1fb0
fix up packet logging for the new msg stuff
2001-03-01 20:41:20 +00:00
Bill Currie
ef38fd2e79
progsdef.h is now used only for the PROGHEADER_CRC def. Much of the protocol
...
still seems to be broken :(
2001-03-01 18:44:19 +00:00
Bill Currie
ad18afaa3c
really clean up global and function access. Unfortunatly, frames are still
...
borked, at least for the view entity.
2001-03-01 08:34:30 +00:00
Joseph Carter
1094e146da
COM_SkipPath now uses strrchr, it's much more readable now.
2001-03-01 07:42:28 +00:00
Joseph Carter
b2a53d4b46
The download bar is now seperate from Con_DrawConsole. This is currently
...
not really for the best, but it will be soon.
2001-03-01 02:51:51 +00:00
Bill Currie
c2213f2366
must set the data field in ALL edicts, not just player edicts :)
2001-02-28 23:35:20 +00:00
Bill Currie
63b990cd30
qw-server builds, but dies a sad death. I REALLY REALLY NEED to clean up my
...
progs globals and edict fields accessors, but I'm not so sure that's the cause
of the run-time error:
SV_Error: SV_ModelIndex: model progs/player.mdl not precached
Fatal error: SV_Error: SV_ModelIndex: model progs/player.mdl not precached
I suspect I failed to find the spawn function.
2001-02-28 22:44:38 +00:00
Joseph Carter
9564680d58
NQ's console is now identical to QW's, except for QW's download bar, which
...
IMO doesn't belong there and will be moving. Other things may be moving
too, but I'm still debating them.
2001-02-28 10:49:39 +00:00
Joseph Carter
823be45d9d
Con_Print now does Sys_Printf and logging itself. There was exactly one
...
use of Con_Printf in the code and it was appropriate for logging anyway.
As a result, Con_DPrintf now uses Con_Print directly for a slight speedup
there having two layers of function calls and varargs parsing to get to
the console. Also ran the file through indent while I'm at it.
2001-02-28 10:21:38 +00:00
Joseph Carter
9c1988280b
Cleaned up output of server print
2001-02-28 10:18:25 +00:00
Bill Currie
dfaf767890
libqfgamecode now builds. Now for the fun part: getting qw and nq to work using
...
the new setup.
2001-02-28 09:12:01 +00:00
Bill Currie
e5543eb0a6
next step of the progs merge done. just need to sort out interdependencies,
...
fix PR_SetString, and a few other things.
2001-02-28 00:56:03 +00:00
Bill Currie
7e14a0fbf3
clean up RETURN_EDICT and RETURN_STRING definitions to be both easier to read
...
and more correct for aliasing (and int size dependence, too:).
2001-02-27 19:05:05 +00:00
Bill Currie
ea464d5928
new operand handling from nq
2001-02-27 08:21:40 +00:00
Bill Currie
f6d047712d
all -snd* params and environment checking have been removed from the sound
...
subsystem in favor of Cvars*. These new cvars are:
o snd_device defaults to "" which selects the default device of the system
(eg, plug:0,0 for ALSA 0.9 or /dev/dsp for OSS)
o snd_rate defaults to 0 which selects the system default rate.
o snd_bits defaults to 0 which selects the system default bit depth.
o snd_stereo defaults to 1 (0 is mono)
* actually, not that thorough: alsa and oss only. The rest have just ws :/
2001-02-26 17:39:32 +00:00
Ragnvald Maartmann-Moe IV
4723086242
More comment updates! Flee in terror! (Right into the maw of that shambler behind you!)
2001-02-24 08:38:47 +00:00
Bill Currie
2bfeed6820
looks like utils is more or less complete for now, except for some fixes in
...
nq for abyss etc (ie, the magical -<mod> args).
The interface to the message subsystem got a revamp and all the mods to the .c
files reflect this. currently a little ugly, but I plan on abstracting msg
further to clean it up and make it more oo.
2001-02-23 23:16:13 +00:00
Bill Currie
981d067000
merge qw's net_com.c and checksum.c (net_com.c was identitcle to nq's
...
checksum.c) and then move the resutlting checksum.c into libs/utils
ditching nq's. Due to net_com.c, qw's libqfnet.a will need to be deleted or
you will get duplicate symbol link errors. Also merge crc.[ch] and move
qfplits.[ch] to their final homes. Also, remove a slightly overzealous use
of "static" in qfplist.[ch].
2001-02-23 18:31:48 +00:00
Bill Currie
265680d2c2
snd_alsa_0_9.c now works on my cards. Hope it still works for Despair.
2001-02-23 06:36:19 +00:00
Bill Currie
7227f77fb6
as alsa 0.6 never came out, ditch it and add 0.9 support (thanks, Abramo)
2001-02-22 20:51:51 +00:00
Bill Currie
42e52a7093
%s/libutil.a/libqfutil.a/g due to name space clash found when linking SDL.
...
New naming convention, all libs will be libqf<subsys>.a (should we instead
use libQF<subsys>.a?). The .so libs, when we get to them, will have to be
sorted out then.
2001-02-22 16:53:15 +00:00
Bill Currie
7516666084
libutil.a is now used by both qw and nq
2001-02-22 08:12:13 +00:00
Bill Currie
9aa50a847c
clean up the mess caused by attempting to merge cmd.[ch]. When taken further,
...
this might give us nice controlability of when cvars can be changed.
2001-02-22 04:46:59 +00:00
Joseph Carter
4537b2daaa
GGI has been eradicated. It's broken and none of us use it, therefore
...
nobody's fixing it. Given that without DGA it's not really much faster
than X11 anyway and the lack of a maintainer, it's deadwood.
2001-02-22 00:24:45 +00:00
Ragnvald Maartmann-Moe IV
a0565418d9
Stomped out lots of typos and case inconsistencies. fixme, Fixme, FIXME!
2001-02-21 23:45:49 +00:00
Jeff Teunissen
e4608744d2
str*cmp -> str*equal, where appropriate.
2001-02-21 22:38:58 +00:00
Bill Currie
505e27e445
clean this up for our new names
2001-02-21 22:29:37 +00:00
Bill Currie
c9ab2f1e10
forgot about all the automake macros
2001-02-21 22:26:47 +00:00
Bill Currie
8fc799f81c
we finally have a bin naming scheme acceptable by all :)
...
nq-*
nq-server
qw-client-*
qw-server
2001-02-21 22:22:32 +00:00
Bill Currie
cd7fdf33d3
s/stricmp/strcasecmp/
2001-02-21 22:00:52 +00:00
Jeff Teunissen
de96c6c3b8
Configure updates. QSG_VERSION has completed its change to
...
{QW,NQ}_QSG_VERSION, because NQ and QW support differing versions.
2001-02-21 21:38:07 +00:00
Joseph Carter
9a47e3c92c
A modification to the gun location hack code.. The QW HUD was supposed to
...
give you a little more screen real-estate. It does, but you still have a
big gun blocking most of your screen in the center. If you turned off the
HUD, you got more screen and less gun. That now happens whenever the HUD
is displayed.
This is a temporary measure. At a later point, the gun will always be at
the bottom of the view area regardless of fov.
2001-02-21 19:13:03 +00:00
Joseph Carter
23ed09f249
Slightly different gl_fires effect. taniwha may back this out if he hates
...
it, but I kinda like it.
2001-02-20 23:36:50 +00:00
Joseph Carter
c2cea45217
NEWSTYLE is gone, sortof. The Cvar defaults for NEWSTYLE are now just the
...
defaults in non-win32 targets. BASEDIR/SKINBASE are gone and the Cvars
which use them in the code are just given the oldstyle defaults now. Use
of "base" is gone. It was a half-assed solution to a problem that doesn't
exist yet. When it finally does exist, we'll fix it right.
2001-02-20 23:06:48 +00:00
Zephaniah E. Hull
a7b59259c1
New name scheme for generated bins.
...
cougar-(qw|nq)-cl-*
cougar-(qw|nq)-sv
If someone really wants to a S&R on cougar in configure.in and the two
Makefile.am files will change it to something else.
2001-02-20 13:46:04 +00:00
Zephaniah E. Hull
75618f96c9
Working on one common configure which lets nq and qw compile.
...
There, needs a little clean up though.
2001-02-20 03:10:06 +00:00
Bill Currie
5e7703d5fe
missed these files. not bad considering the number of files involved :)
2001-02-19 21:17:47 +00:00
Bill Currie
87854e1a0c
initial checkin of most recent newtree and nuq(?) source
2001-02-19 21:15:25 +00:00