15 years agorearrange SV_VM_Begin/End again to fix crashes
havoc [Thu, 23 Feb 2006 16:04:24 +0000 (16:04 +0000)]
rearrange SV_VM_Begin/End again to fix crashes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6018 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded qw compatible "rcon" support (allows a client who knows the server's rcon_passw...
havoc [Thu, 23 Feb 2006 14:50:41 +0000 (14:50 +0000)]
added qw compatible "rcon" support (allows a client who knows the server's rcon_password to run a command on the server), had to move NetConn_ServerFrame outside of the SV_VM_Begin block in Host_ServerFrame, and add relevant SV_VM_Begin blocks to various parts of host_cmd.c
added qw print command packet to client packet processing (needed for remote rcon when not connected to the server)
added qw "packet" command (sends a text message to the specified address)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6017 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged Polygon[DF]_Divide functions to also be able to return an on-plane points...
havoc [Thu, 23 Feb 2006 11:08:14 +0000 (11:08 +0000)]
changed Polygon[DF]_Divide functions to also be able to return an on-plane points count

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6016 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomerged NetConn_SendReliableMessage into NetConn_SendUnreliableMessage, and also merge...
havoc [Thu, 23 Feb 2006 10:57:31 +0000 (10:57 +0000)]
merged NetConn_SendReliableMessage into NetConn_SendUnreliableMessage, and also merged away the other ReliableMessage functions (ReSend and Next)
rearranged client and server message sending calls to attempt to send unreliable messages, even if empty (necessary to trigger sending of reliable messages)
eliminated last remnants of NetConn_SendToAll stuff
changed some cls.demoplayback checks to !cls.netcon checks

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6015 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomake cl_movement handling a little more robust (hopefully)
havoc [Thu, 23 Feb 2006 10:47:09 +0000 (10:47 +0000)]
make cl_movement handling a little more robust (hopefully)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6014 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged r_speeds to only display timings with r_speeds 2, r_speeds 1 now only display...
havoc [Thu, 23 Feb 2006 10:34:56 +0000 (10:34 +0000)]
changed r_speeds to only display timings with r_speeds 2, r_speeds 1 now only displays statistics (no glFinish needed so this is much faster)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6013 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoanother int cast for that patch
havoc [Thu, 23 Feb 2006 05:47:53 +0000 (05:47 +0000)]
another int cast for that patch

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6012 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded int cast on write call in new terminal printing code, and added an include...
havoc [Thu, 23 Feb 2006 05:43:57 +0000 (05:43 +0000)]
added int cast on write call in new terminal printing code, and added an include of io.h on windows

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6011 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremoved runmove array in favor of using a private entity flag to prevent movement...
havoc [Thu, 23 Feb 2006 05:29:16 +0000 (05:29 +0000)]
removed runmove array in favor of using a private entity flag to prevent movement on the first physics frame an entity exists in, this makes projectiles fired by cl_movement 1 clients behave properly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6010 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadd the priv.server->move field needed by a previous commit
havoc [Thu, 23 Feb 2006 05:26:53 +0000 (05:26 +0000)]
add the priv.server->move field needed by a previous commit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6009 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochange unknown opcode error to a Con_DPrintf, this makes fteqcc fastarrays progs...
havoc [Thu, 23 Feb 2006 04:14:59 +0000 (04:14 +0000)]
change unknown opcode error to a Con_DPrintf, this makes fteqcc fastarrays progs load

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6006 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodiv0 fixed the bug that caused huge console prints to the terminal to be truncated...
havoc [Thu, 23 Feb 2006 01:48:09 +0000 (01:48 +0000)]
div0 fixed the bug that caused huge console prints to the terminal to be truncated, this bug has been bothering me for a long time, thanks div0!

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6005 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix alias execution order bug introduced by Black on 20050705 (using Cbuf_AddText...
havoc [Wed, 22 Feb 2006 23:18:12 +0000 (23:18 +0000)]
fix alias execution order bug introduced by Black on 20050705 (using Cbuf_AddText instead of Cbuf_InsertText for alias expansion is bad!)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6004 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix decal draw order bug introduced in recent commit, I forgot that decals are not...
havoc [Wed, 22 Feb 2006 12:12:24 +0000 (12:12 +0000)]
fix decal draw order bug introduced in recent commit, I forgot that decals are not queued as transparencies like other particles, so calling R_DrawParticles before rtlights was a bad idea (as it made the rtlights be unaffected by decals)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6003 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged behavior of r_showtris (now only affects geometry in the game view, not sky...
havoc [Wed, 22 Feb 2006 10:02:25 +0000 (10:02 +0000)]
changed behavior of r_showtris (now only affects geometry in the game view, not sky, not hud, and not bloom)
added r_showtris_polygonoffset (doesn't seem to work, for unknown reasons)
renamed r_drawcollisionbrushes to r_showcollisionbrushes and got rid of its mode 2 behavior (which was trippy but not all that useful)
added r_showdisabledepthtest cvar which disables depth testing on the debugging geometry produced by r_show* cvars
renamed r_shadow_visiblelighting/volumes cvars to r_showlighting/shadowvolumes (and they no longer have a mode 2, use r_showdisabledepthtesting to get the same effect instead)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6002 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded NAN error checks to traceline and tracebox calls, these cause a PRVM_ERROR
havoc [Wed, 22 Feb 2006 07:50:02 +0000 (07:50 +0000)]
added NAN error checks to traceline and tracebox calls, these cause a PRVM_ERROR

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6001 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomade QC error() and objerror() builtins print the error string above and below the...
havoc [Wed, 22 Feb 2006 07:46:31 +0000 (07:46 +0000)]
made QC error() and objerror() builtins print the error string above and below the crash information, to be less confusing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6000 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoAdded function S_IsSoundPrecached to the sound engine API. "snd_main.h" shouldn't...
molivier [Mon, 20 Feb 2006 23:33:24 +0000 (23:33 +0000)]
Added function S_IsSoundPrecached to the sound engine API. "snd_main.h" shouldn't be included outside of the sound engine.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5999 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoModified path for Transfusion gfx files
molivier [Mon, 20 Feb 2006 23:28:52 +0000 (23:28 +0000)]
Modified path for Transfusion gfx files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5998 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix player not being able to move bug introduced by recent input accumulation code
havoc [Mon, 20 Feb 2006 04:07:22 +0000 (04:07 +0000)]
fix player not being able to move bug introduced by recent input accumulation code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5997 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoWorkaround for a bug in the Linux ATI proprietary driver; it does not put the current...
molivier [Sun, 19 Feb 2006 09:25:42 +0000 (09:25 +0000)]
Workaround for a bug in the Linux ATI proprietary driver; it does not put the current video mode in the first slot in the array returned by XF86VidModeGetAllModeLines, which can lead to a crash in VID_Shutdown. Also, fixed a small memory leak (the video mode array was never freed)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5996 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocall NetConn_UpdateSockets instead of NetConn_ClientFrame in playdemo code
havoc [Sat, 18 Feb 2006 10:16:18 +0000 (10:16 +0000)]
call NetConn_UpdateSockets instead of NetConn_ClientFrame in playdemo code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5995 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoWillis added a better fallback when the nexuiz menu qc fails to load
havoc [Sat, 18 Feb 2006 05:20:04 +0000 (05:20 +0000)]
Willis added a better fallback when the nexuiz menu qc fails to load

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5994 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix crashes with NAN bounding boxes (collisions or dlights) recursing down the BSP...
havoc [Fri, 17 Feb 2006 09:41:32 +0000 (09:41 +0000)]
fix crashes with NAN bounding boxes (collisions or dlights) recursing down the BSP tree, they still don't behave properly (because there is no proper handling of NAN), but at least they don't crash anymore

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5993 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded an unstick function used on most entities if their movement trace indicates...
havoc [Fri, 17 Feb 2006 04:00:27 +0000 (04:00 +0000)]
added an unstick function used on most entities if their movement trace indicates they started in solid, this should prevent items and gibs from falling out of levels 99% of the time

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5992 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged tryrates array to include 48000, 24000, and 16000 speeds (this should help...
havoc [Fri, 17 Feb 2006 03:25:31 +0000 (03:25 +0000)]
changed tryrates array to include 48000, 24000, and 16000 speeds (this should help 48khz AC97 chips)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5991 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoreworked input timing a bit more, now cl_movement 1 mode syncs client packets to...
havoc [Thu, 16 Feb 2006 10:28:15 +0000 (10:28 +0000)]
reworked input timing a bit more, now cl_movement 1 mode syncs client packets to the incoming server packets (because the server does not trust the client's timing, only the history of server frames sent to the client, and thus the client has to sync exactly to the server timing to work)
moved CL_SendCmd() call into CL_ReadFromServer right after CL_ReadDemoMessage(), this fixes the prediction jitters that recently appeared with the cl_netinputpacketspersecond feature, however it might add a slight delay in local games (I haven't noticed a delay however)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5990 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremove an unused extern for sys_ticrate, and added a comment warning about improper...
havoc [Thu, 16 Feb 2006 07:24:09 +0000 (07:24 +0000)]
remove an unused extern for sys_ticrate, and added a comment warning about improper rate limiting if sys_ticrate is 0 (but it should never be 0 on a real server)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5989 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed bug that allowed accidental speed cheating with cl_movement 1 mode (move->time...
havoc [Thu, 16 Feb 2006 07:20:28 +0000 (07:20 +0000)]
fixed bug that allowed accidental speed cheating with cl_movement 1 mode (move->time was being cleared by ApplyClientMove, so when ReadClientMove calculated how much to move since the last move, it always thought the last move was at time == 0, and then it clamped this delta to 0.1 or less, which prevented it from being completely ridiculous, but still horrible)
added kicking of speed cheaters (if they echo a timestamp that has not yet been issued by the server, they're clearly lying)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5988 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded a small how to install guide and a link to the Linux Quake Howto
havoc [Wed, 15 Feb 2006 22:29:50 +0000 (22:29 +0000)]
added a small how to install guide and a link to the Linux Quake Howto

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5987 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoalso accumulate impulses when receiving multiple packets per server frame
havoc [Wed, 15 Feb 2006 06:04:51 +0000 (06:04 +0000)]
also accumulate impulses when receiving multiple packets per server frame

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5986 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged client input packets to be sent at a fixed 50fps (configurable by cvar) rathe...
havoc [Wed, 15 Feb 2006 03:14:42 +0000 (03:14 +0000)]
changed client input packets to be sent at a fixed 50fps (configurable by cvar) rather than in response to each server packet

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5985 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoimproved server handling of multiple packets per client physics frame (as would be...
havoc [Wed, 15 Feb 2006 03:09:37 +0000 (03:09 +0000)]
improved server handling of multiple packets per client physics frame (as would be the case if the client sends more frames per second than the server sends to it)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5984 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix very stupid bug that caused entities to sometimes not be removed (priority was...
havoc [Wed, 15 Feb 2006 02:54:14 +0000 (02:54 +0000)]
fix very stupid bug that caused entities to sometimes not be removed (priority was not being updated when deltabits were added back to an entity, so the priority remained at the no-update-necessary level despite the fact it should be sent again)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5983 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a typo in vid_conwidth declaration
havoc [Tue, 14 Feb 2006 23:39:23 +0000 (23:39 +0000)]
fix a typo in vid_conwidth declaration

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5982 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded nexuiz-agl executable name so that mac nexuiz builds work
havoc [Mon, 13 Feb 2006 18:35:43 +0000 (18:35 +0000)]
added nexuiz-agl executable name so that mac nexuiz builds work

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5981 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomodified Host_ServerFrame to run multiple server frames again, but with a time limit...
havoc [Mon, 13 Feb 2006 00:23:46 +0000 (00:23 +0000)]
modified Host_ServerFrame to run multiple server frames again, but with a time limit of 0.05 seconds spent on server frames per call

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5980 d7cf8633-e32d-0410-b094-e92efae38249

15 years agonow make clean cleans up the nexuiz executables also
havoc [Sun, 12 Feb 2006 21:03:32 +0000 (21:03 +0000)]
now make clean cleans up the nexuiz executables also

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5979 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged vorbis.dll and friends to use lib prefix (libvorbis.dll)
havoc [Sun, 12 Feb 2006 20:59:15 +0000 (20:59 +0000)]
changed vorbis.dll and friends to use lib prefix (libvorbis.dll)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5978 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded nexuiz icon and make rules to make use of it, and now the icon is included...
havoc [Sun, 12 Feb 2006 20:26:02 +0000 (20:26 +0000)]
added nexuiz icon and make rules to make use of it, and now the icon is included in dedicated and sdl builds (not just native client builds)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5977 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed changelevel networking bug (now ignores clc_ackframe messages from clients...
havoc [Sun, 12 Feb 2006 19:44:39 +0000 (19:44 +0000)]
fixed changelevel networking bug (now ignores clc_ackframe messages from clients who are not spawned, this prevents leftover entity acks from previous level from messing up netcode)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5976 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomoved sendsignon = true back to where it was, as it is directly related to the messag...
havoc [Sun, 12 Feb 2006 19:43:45 +0000 (19:43 +0000)]
moved sendsignon = true back to where it was, as it is directly related to the message writing above it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5975 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix uninitialized specularscale in R_Shadow_RenderSurfacesLighting
havoc [Sun, 12 Feb 2006 18:22:42 +0000 (18:22 +0000)]
fix uninitialized specularscale in R_Shadow_RenderSurfacesLighting

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5974 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix uninitialized variables in InfoString_GetValue and InfoString_SetValue
havoc [Sun, 12 Feb 2006 18:22:09 +0000 (18:22 +0000)]
fix uninitialized variables in InfoString_GetValue and InfoString_SetValue

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5973 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorenamed NetConn_UpdateServerStuff to NetConn_UpdateSockets and made it non-static...
havoc [Sun, 12 Feb 2006 18:21:16 +0000 (18:21 +0000)]
renamed NetConn_UpdateServerStuff to NetConn_UpdateSockets and made it non-static, now called in CL_EstablishConnection so +connect on commandline works again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5972 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorollback recent network compression changes, it really does have to be reset on level...
havoc [Sun, 12 Feb 2006 05:35:37 +0000 (05:35 +0000)]
rollback recent network compression changes, it really does have to be reset on level change because the client expects it to be, another solution must be found

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5970 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed glsl colormapping brightness bug when using colormod
havoc [Sun, 12 Feb 2006 05:28:19 +0000 (05:28 +0000)]
fixed glsl colormapping brightness bug when using colormod

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5969 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoa fix for the previous fix (don't reset host_client->latestframenum on level change)
havoc [Sun, 12 Feb 2006 05:12:37 +0000 (05:12 +0000)]
a fix for the previous fix (don't reset host_client->latestframenum on level change)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5968 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoGAME_NEXUIZ scoreboard team color names patch from KadaverJack
havoc [Sun, 12 Feb 2006 03:28:52 +0000 (03:28 +0000)]
GAME_NEXUIZ scoreboard team color names patch from KadaverJack

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5967 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix problems with changelevel causing network compression to stop working (bug introd...
havoc [Sun, 12 Feb 2006 02:55:42 +0000 (02:55 +0000)]
fix problems with changelevel causing network compression to stop working (bug introduced when SV_SendReconnect was rewritten quite some time ago), this was happening because the compression database was being freed on level change and reallocated, and thus producing older entity frame numbers that the client refused

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5966 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremoved EntityFrame5_ResetDatabase because it was only used in EntityFrame5_AllocDatabase
havoc [Sun, 12 Feb 2006 00:35:46 +0000 (00:35 +0000)]
removed EntityFrame5_ResetDatabase because it was only used in EntityFrame5_AllocDatabase

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5964 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a crash in SV_ConnectClient on bots
havoc [Sat, 11 Feb 2006 22:49:59 +0000 (22:49 +0000)]
fix a crash in SV_ConnectClient on bots

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5963 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremoved crash parameter from Host_ShudownServer, eliminated NetConn_SendToAll and...
havoc [Sat, 11 Feb 2006 04:24:19 +0000 (04:24 +0000)]
removed crash parameter from Host_ShudownServer, eliminated NetConn_SendToAll and SV_SendReconnect

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5962 d7cf8633-e32d-0410-b094-e92efae38249

15 years agominor cleanup of keepalive
havoc [Sat, 11 Feb 2006 04:21:51 +0000 (04:21 +0000)]
minor cleanup of keepalive

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5961 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomigrated cls.message and client->message buffers into netconn_t struct
havoc [Sat, 11 Feb 2006 02:33:30 +0000 (02:33 +0000)]
migrated cls.message and client->message buffers into netconn_t struct

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5960 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded a comment by MAX_LIGHTSTYLES about savegames
havoc [Fri, 10 Feb 2006 18:44:19 +0000 (18:44 +0000)]
added a comment by MAX_LIGHTSTYLES about savegames

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5959 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded diffuse texture alpha support to GLSL shader (dot3 and vertex still need updating)
havoc [Thu, 9 Feb 2006 13:52:17 +0000 (13:52 +0000)]
added diffuse texture alpha support to GLSL shader (dot3 and vertex still need updating)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5958 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed bugs concerning rtlighting of transparent entities
havoc [Wed, 8 Feb 2006 16:49:07 +0000 (16:49 +0000)]
fixed bugs concerning rtlighting of transparent entities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5957 d7cf8633-e32d-0410-b094-e92efae38249

15 years agotwo more 4x3 modes
havoc [Wed, 8 Feb 2006 16:13:59 +0000 (16:13 +0000)]
two more 4x3 modes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5956 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged two MAX_LIGHTSTYLE references to cl_max_lightstyle
havoc [Tue, 7 Feb 2006 15:39:51 +0000 (15:39 +0000)]
changed two MAX_LIGHTSTYLE references to cl_max_lightstyle

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5951 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed loadgame to support stock quake savegames (which have 64 lightstyles, darkplace...
havoc [Tue, 7 Feb 2006 15:36:56 +0000 (15:36 +0000)]
fixed loadgame to support stock quake savegames (which have 64 lightstyles, darkplaces savegames have 256)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5950 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomade MAX_LIGHTSTYLES error into a warning and it now checks cl_max_lightstyle instead
havoc [Tue, 7 Feb 2006 15:08:16 +0000 (15:08 +0000)]
made MAX_LIGHTSTYLES error into a warning and it now checks cl_max_lightstyle instead

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5949 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded externs for more of the cl_max_ variables
havoc [Tue, 7 Feb 2006 15:07:40 +0000 (15:07 +0000)]
added externs for more of the cl_max_ variables

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5948 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoFix it the right way (and also remove another bug this way).
black [Sun, 5 Feb 2006 13:44:27 +0000 (13:44 +0000)]
Fix it the right way (and also remove another bug this way).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5944 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocrash fix for use of $*/$0-9 when not in an alias, patch from KadaverJack
havoc [Sun, 5 Feb 2006 05:17:54 +0000 (05:17 +0000)]
crash fix for use of $*/$0-9 when not in an alias, patch from KadaverJack

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5943 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded 1280x800 resolution (2560x1600 already existed)
havoc [Sat, 4 Feb 2006 14:09:38 +0000 (14:09 +0000)]
added 1280x800 resolution (2560x1600 already existed)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5941 d7cf8633-e32d-0410-b094-e92efae38249

15 years agotwo int casts that were missing, reported by Willis
havoc [Fri, 3 Feb 2006 05:14:24 +0000 (05:14 +0000)]
two int casts that were missing, reported by Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5940 d7cf8633-e32d-0410-b094-e92efae38249

15 years agovertex lighting path now does pants/shirt rendering faster than before
havoc [Thu, 2 Feb 2006 14:57:04 +0000 (14:57 +0000)]
vertex lighting path now does pants/shirt rendering faster than before
doubled brightness of vertex lighting path to make it look roughly like the other paths (unsure why it was darker however)
optimized lighting code setup a bit (less silly conditional returns)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5939 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a bug in the GLSL colormapping setup (was feeding a tinted pants/shirt color...
havoc [Thu, 2 Feb 2006 13:52:00 +0000 (13:52 +0000)]
fix a bug in the GLSL colormapping setup (was feeding a tinted pants/shirt color, should feed the raw colormap colors, because the shader is doing a multiply by light color on all of this)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5938 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosplit R_Shadow_RenderSurfacesLighting_Light_Dot3 into 3 subfunctions for different...
havoc [Thu, 2 Feb 2006 13:44:20 +0000 (13:44 +0000)]
split R_Shadow_RenderSurfacesLighting_Light_Dot3 into 3 subfunctions for different kinds of pass, and used these to do pants and shirt a little faster

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5937 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded pants/shirt layer rendering to GLSL shader, rather than calling it three times...
havoc [Thu, 2 Feb 2006 13:13:36 +0000 (13:13 +0000)]
added pants/shirt layer rendering to GLSL shader, rather than calling it three times like before (which was very slow)
migrated GLSL light shader permutation selection (and correspondingly all parameter setup) into R_Shadow_RenderSurfacesLighting_Light_GLSL, this causes more setup overhead but allows specific optimization of non-colormapping and non-specular surfaces so this should be a speed gain overall

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5936 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix crash in Cvar_CompleteCvarPrint
havoc [Wed, 1 Feb 2006 15:51:37 +0000 (15:51 +0000)]
fix crash in Cvar_CompleteCvarPrint
added description printing to cvarlist

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5935 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged renderer to check ent->colormap_pantscolor and ent->colormap_shirtcolor inste...
havoc [Wed, 1 Feb 2006 15:11:46 +0000 (15:11 +0000)]
changed renderer to check ent->colormap_pantscolor and ent->colormap_shirtcolor instead of ent->colormap to detect whether to use colormapping on a model, this should reduce chance of bugs in lighting code
also optimized the R_Shadow_RenderSurfacesLighting function a bit to have separate handling of colormapped and non-colormapped surfaces (probably a small speed gain, and reduces chance of bugs in lighting code)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5934 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded description string to all cvars and commands
havoc [Wed, 1 Feb 2006 13:21:06 +0000 (13:21 +0000)]
added description string to all cvars and commands
modified tab completion to print description by each cvar, instead of just printing names
refactored tab completion code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5933 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodisable hardware gamma if XF86VidModeGetGammaRampSize reports a size other than 256...
havoc [Mon, 30 Jan 2006 13:34:01 +0000 (13:34 +0000)]
disable hardware gamma if XF86VidModeGetGammaRampSize reports a size other than 256, for instance 1024 on Quadro

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5927 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosound direction fix (negated yaw angle), submitted by div0
havoc [Mon, 30 Jan 2006 13:03:47 +0000 (13:03 +0000)]
sound direction fix (negated yaw angle), submitted by div0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5926 d7cf8633-e32d-0410-b094-e92efae38249

15 years agopatch from div0 to add -sndmono and -sndstereo options to sdl sound code
havoc [Mon, 30 Jan 2006 13:01:34 +0000 (13:01 +0000)]
patch from div0 to add -sndmono and -sndstereo options to sdl sound code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5925 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix for segfault in map name completion, submitted by div0
havoc [Mon, 30 Jan 2006 12:59:27 +0000 (12:59 +0000)]
fix for segfault in map name completion, submitted by div0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5924 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a typo, and apparently this isn't the cause of the nexuiz CTF bug
havoc [Mon, 23 Jan 2006 21:34:22 +0000 (21:34 +0000)]
fix a typo, and apparently this isn't the cause of the nexuiz CTF bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5923 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed SOLID_NOT relink touching triggers bug (which was causing CTF flags to be repea...
havoc [Mon, 23 Jan 2006 21:14:04 +0000 (21:14 +0000)]
fixed SOLID_NOT relink touching triggers bug (which was causing CTF flags to be repeatedly captured in Nexuiz)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5922 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoUpdated DSP files from Willis
molivier [Sat, 21 Jan 2006 10:19:00 +0000 (10:19 +0000)]
Updated DSP files from Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5921 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoA few casts and variable type changes to get rid of warnings on Win64. By Willis
molivier [Sat, 21 Jan 2006 09:59:11 +0000 (09:59 +0000)]
A few casts and variable type changes to get rid of warnings on Win64. By Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5920 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoMoved a couple of extern declarations outside of the body of their functions (fixes...
molivier [Sat, 21 Jan 2006 09:40:54 +0000 (09:40 +0000)]
Moved a couple of extern declarations outside of the body of their functions (fixes compilation on MSVC6). By Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5919 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoAdded the proper libPNG DLL name for Win64, by Willis
molivier [Sat, 21 Jan 2006 09:13:48 +0000 (09:13 +0000)]
Added the proper libPNG DLL name for Win64, by Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5918 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoFix for Win64, by Willis
molivier [Sat, 21 Jan 2006 09:10:39 +0000 (09:10 +0000)]
Fix for Win64, by Willis

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5917 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoFixed drawmask for non-csqc mods. Thanks to Willis for spotting this bug
molivier [Sat, 21 Jan 2006 08:50:36 +0000 (08:50 +0000)]
Fixed drawmask for non-csqc mods. Thanks to Willis for spotting this bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5916 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged newmouseparms to 0 0 0, in hopes of avoiding the winxp mouse acceleration bug
havoc [Tue, 17 Jan 2006 20:48:39 +0000 (20:48 +0000)]
changed newmouseparms to 0 0 0, in hopes of avoiding the winxp mouse acceleration bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5915 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged mac libpng12.dylib to libpng12.0.dylib
havoc [Mon, 16 Jan 2006 22:51:43 +0000 (22:51 +0000)]
changed mac libpng12.dylib to libpng12.0.dylib

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5914 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded S_FindName function to make dedicated server compile again
havoc [Mon, 16 Jan 2006 19:11:34 +0000 (19:11 +0000)]
added S_FindName function to make dedicated server compile again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5913 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodisable EXT_CSQC extension name for now
havoc [Mon, 16 Jan 2006 03:53:36 +0000 (03:53 +0000)]
disable EXT_CSQC extension name for now

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5911 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocsqc patch from [515], seems to work with [515]'s dpcsqc test mod, needs a lot of...
havoc [Mon, 16 Jan 2006 03:52:42 +0000 (03:52 +0000)]
csqc patch from [515], seems to work with [515]'s dpcsqc test mod, needs a lot of code cleanup/merging, and VF_FOV stuff is currently ignored

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5910 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged line endings from DOS to unix
havoc [Sun, 15 Jan 2006 21:02:25 +0000 (21:02 +0000)]
changed line endings from DOS to unix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5909 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded png support patch from [515] (had to rewrite most of it though)
havoc [Sun, 15 Jan 2006 20:20:51 +0000 (20:20 +0000)]
added png support patch from [515] (had to rewrite most of it though)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5908 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded 1440x900 and 720x450 resolutions
havoc [Sun, 15 Jan 2006 16:51:37 +0000 (16:51 +0000)]
added 1440x900 and 720x450 resolutions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5907 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded DP_EF_DOUBLESIDED extension to list
havoc [Sat, 14 Jan 2006 17:45:35 +0000 (17:45 +0000)]
added DP_EF_DOUBLESIDED extension to list

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5906 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded DP_SV_CUSTOMIZEENTITYFORCLIENT extension based on a patch from [515]
havoc [Sat, 14 Jan 2006 17:40:50 +0000 (17:40 +0000)]
added DP_SV_CUSTOMIZEENTITYFORCLIENT extension based on a patch from [515]

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5903 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocorrected a typo in a comment
havoc [Thu, 12 Jan 2006 15:19:22 +0000 (15:19 +0000)]
corrected a typo in a comment

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5902 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded console editing enhancements patch from [515], except the part for special...
havoc [Thu, 12 Jan 2006 15:17:12 +0000 (15:17 +0000)]
added console editing enhancements patch from [515], except the part for special quake characters was omitted (as the engine should not assume the quake font is being used)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5901 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded DrawQ_Line/DrawQ_Lines/DrawQ_LineWidth patch from [515], note: buggy, needs...
havoc [Wed, 11 Jan 2006 23:15:12 +0000 (23:15 +0000)]
added DrawQ_Line/DrawQ_Lines/DrawQ_LineWidth patch from [515], note: buggy, needs cleanup

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5900 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded con_textsize patch from [515]
havoc [Wed, 11 Jan 2006 22:24:05 +0000 (22:24 +0000)]
added con_textsize patch from [515]

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5899 d7cf8633-e32d-0410-b094-e92efae38249