This is the network rewrite I've been working on for over a week; multiplayer should work through NAT routers now. A few other commits (a new clientcolors extension for example) have snuck their way into this commit because they were waiting while the cvs was down. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3093 d7cf8633-e32d-0410-b094-e92efae38249
some cleanups to hostcache (got rid of driver/address stuff and expanded the strings, also increased number of cache slots) connecting to a server is now much more direct (does not use hostcache) now ignores the address string received in server info packets because it's often bogus in dp (sorry... but not really avoidable) slist reports now include the address of the server (useful!!) and are much wider (79 characters) to give more room for info the NOROUTINGFIX option has been kind of merged away, whether the server uses it or not is still optional (search for routing fix) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3038 d7cf8633-e32d-0410-b094-e92efae38249
Tried to be a little smarter with the heartbeats, using a simple priority mecanism. Added a few "const" here and there in the net code. Fixed heartbeat code on Win32 (added Loop_Heartbeat and Datagram_Heartbeat to net_win.c; oups...) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2488 d7cf8633-e32d-0410-b094-e92efae38249
Thanks to Elric for adding dpmaster support! slist command renamed to net_slist, net_inetslist command added "heartbeat" command notifies master server(s) of your server's presence (this is automatic, but you can force a heartbeat) sv_master1 through sv_master4 cvars contain master server addresses, they all default to "" (none), this may change if someone hosts a darkplaces master server and wants it added to the defaults... (note: these cvars ARE saved to config) com_modname contains the currently running mod directory name (for example id1, darkplaces, transfusion, etc) some Con_DPrintf's have been added to the server query code, so if you want to know if people are checking out your server, it should tell you about it now (I think?) some Con_DPrintf's exist in the inetslist code so you can watch the packet flow git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2432 d7cf8633-e32d-0410-b094-e92efae38249
A minor removal of a few pieces of dead code. Nothing major. This is stage two. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1891 d7cf8633-e32d-0410-b094-e92efae38249
renamed byte to qbyte throughout engine to eliminate a mingw conflict git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1579 d7cf8633-e32d-0410-b094-e92efae38249
added viewzoom extension to QC and client (smooth sniper zooming, with sensitivity scaling) protocol should be able to masq now (not a perfect fix like net_chan, but a fix for most people - I hope) - server waits to send serverinfo until first reply from client (any clc_ message will do), client spams clc_nop every 3 seconds until it gets serverinfo (FIXME: maybe only once would do?) upgraded aiming angles sent from client to floats in DPPROTOCOL_VERSION2 mode updated cl_shownet 2 svc name list in cl_parse.c (it was quite outdated) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1539 d7cf8633-e32d-0410-b094-e92efae38249
some whitespace changes rearranged a few cvar definitions to be in more appropriate places removed remnants of efrags system added bitprofile command to report popularity of entity update components fixed a number of baseline bugs and inconsistencies in the server and client (discovered using bitprofile) general baseline generation code added (protocol.c) added freelook cvar and menu option exterior model capability added (so a model could be visible only when you are using chasecam, needed for visible weapon models) fixed some inconsistencies in frame number sizes (should have been 16bit) in 16bit modelindex messages, and 8bit sound numbers that should have been 16bit renamed Sys_FloatTime to Sys_DoubleTime rewrote win32 Sys_DoubleTime code and minor work on UNIX Sys_DoubleTime removed most of svc_entitiesbegin/svc_entitiesend code (big entity update protocol improvement planned) hardware gamma/brightness/contrast support hardware and software gamma/brightness/contrast adjustable in the menu gl_lightmode (also known as lighthalf) switchable in the menu can pick a crosshair in the menu changed renderer references to r_refdef.vieworg to use r_origin instead stripped out ancient transpoly code that was not being used renamed qgamma array to texgamma significant cleanup of mouse hide/show code in win32 improved eprint for better readability (better printing of floats/vectors) added pr_fields and pr_globals commands to print a list of entity fields and global variables in loaded progs moved some entity_state_t related stuff to protocol.c and protocol.h made delta compression optional (sv_deltacompress cvar) removed a lot of cruft disabled stair step-up blending (never worked that well anyway) removed sys_wind.c (I seriously doubt it worked) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@205 d7cf8633-e32d-0410-b094-e92efae38249
Initial revision git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2 d7cf8633-e32d-0410-b094-e92efae38249