]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
15 years agoimproved persistent input history; now independent buffers are used again, by factori...
divverent [Wed, 20 May 2009 05:21:32 +0000 (05:21 +0000)]
improved persistent input history; now independent buffers are used again, by factoring the buffer handling code out of console code

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

15 years agoreworked default address cvars to be empty for default interfaces, this
havoc [Sun, 17 May 2009 22:17:55 +0000 (22:17 +0000)]
reworked default address cvars to be empty for default interfaces, this
avoids resolving an IP6 address using system calls

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

15 years agofix an addrinfo leak when getaddrinfo returns an addrinfo that is not
havoc [Sun, 17 May 2009 22:16:58 +0000 (22:16 +0000)]
fix an addrinfo leak when getaddrinfo returns an addrinfo that is not
inet or inet6

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

15 years agotry only one port on ip6 if ip4 succeeded, this is to reduce console
havoc [Sun, 17 May 2009 21:23:12 +0000 (21:23 +0000)]
try only one port on ip6 if ip4 succeeded, this is to reduce console
spam

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

15 years agoalso block lines starting with "quit " from the history
divverent [Sun, 17 May 2009 19:03:27 +0000 (19:03 +0000)]
also block lines starting with "quit " from the history

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

15 years agoargh, should be called darkplaces_history.txt (like darkplaces_iplog.txt)
divverent [Sun, 17 May 2009 19:00:10 +0000 (19:00 +0000)]
argh, should be called darkplaces_history.txt (like darkplaces_iplog.txt)

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

15 years agoexperimental new persistent console history (uses same buffer as console output)...
divverent [Sun, 17 May 2009 18:59:45 +0000 (18:59 +0000)]
experimental new persistent console history (uses same buffer as console output), file name = dp_history.txt, similar to .bash_history

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

15 years agoadd a missing cast
divverent [Sat, 16 May 2009 18:00:00 +0000 (18:00 +0000)]
add a missing cast

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

15 years agofix another typo
divverent [Sat, 16 May 2009 17:58:44 +0000 (17:58 +0000)]
fix another typo

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

15 years agofix latest commit :P
divverent [Sat, 16 May 2009 17:54:17 +0000 (17:54 +0000)]
fix latest commit :P

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

15 years agoprint something on "name" length overflow
divverent [Sat, 16 May 2009 17:05:41 +0000 (17:05 +0000)]
print something on "name" length overflow

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

15 years agodon't allocate lightmaps for water surfaces without lightmaps, and do
havoc [Fri, 15 May 2009 08:46:20 +0000 (08:46 +0000)]
don't allocate lightmaps for water surfaces without lightmaps, and do
not assign lightmap texture blocks to non-lightmapped surfaces

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

15 years agoadd a couple more things back
havoc [Thu, 14 May 2009 22:25:55 +0000 (22:25 +0000)]
add a couple more things back

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

15 years agofix compatibility with pre-XP windows versions
havoc [Thu, 14 May 2009 21:23:59 +0000 (21:23 +0000)]
fix compatibility with pre-XP windows versions

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

15 years agorequire WinXP or higher for molivier's latest changes.
divverent [Thu, 14 May 2009 19:28:47 +0000 (19:28 +0000)]
require WinXP or higher for molivier's latest changes.
Good bye, DP on Win2k and below.

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

15 years agotiny code cleanups
divverent [Thu, 14 May 2009 19:03:43 +0000 (19:03 +0000)]
tiny code cleanups

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

15 years agoFixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for...
molivier [Thu, 14 May 2009 18:39:25 +0000 (18:39 +0000)]
Fixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for the warning.

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

15 years agoremove one unneeded cdPlaying check
divverent [Thu, 14 May 2009 14:46:06 +0000 (14:46 +0000)]
remove one unneeded cdPlaying check

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

15 years agoFixes by terrencehill and me:
divverent [Thu, 14 May 2009 09:08:13 +0000 (09:08 +0000)]
Fixes by terrencehill and me:
- better remapping handling of mixed fake and real cdtrack remappings
- fixed bgmvolume handling with CDs
- resume CD audio before stopping (SDL requires that)
- "cd" command showing help
- "cd reset" now always stops
- "cd rescan" command (don't ask me what it's good for)
- apparently work around SDL bug with looping CD tracks after pause and resume

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

15 years agor_speeds: show current clusterindex
divverent [Thu, 14 May 2009 08:34:39 +0000 (08:34 +0000)]
r_speeds: show current clusterindex
r_drawportals: draw cluster portals with more alpha than non-cluster portals (needs better visualization still)

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

15 years agoIncreased the size of the text box containing the name of the server to join, so...
molivier [Thu, 14 May 2009 05:41:03 +0000 (05:41 +0000)]
Increased the size of the text box containing the name of the server to join, so it can now contain a full IPv6 address

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

15 years agoFixed IPv6 support, including the addition of the master server messages "getserversE...
molivier [Thu, 14 May 2009 05:40:38 +0000 (05:40 +0000)]
Fixed IPv6 support, including the addition of the master server messages "getserversExt" and "getserversExtResponse"

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

15 years agoa new "which" command showing which pk3 a file is from
divverent [Tue, 12 May 2009 11:55:14 +0000 (11:55 +0000)]
a new "which" command showing which pk3 a file is from

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

15 years agom_accelerate_* cvars
divverent [Tue, 12 May 2009 06:23:04 +0000 (06:23 +0000)]
m_accelerate_* cvars

My values for my Razer Diamondback 3G:

sensitivity 2
m_accelerate 1.7
m_accelerate_minspeed 5000
m_accelerate_maxspeed 10000
m_accelerate_filter 0.1

Does not interfere with regular aiming, but provides easier 180 degrees turns.

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

15 years agosimplifying Warsow-style physics code even more, as it now can use a common code...
divverent [Fri, 8 May 2009 09:58:13 +0000 (09:58 +0000)]
simplifying Warsow-style physics code even more, as it now can use a common code path with Quake-style physics (the only difference there is is when moving forward only).

This could be done after the observation that CPMA-style acceleration never kicks in in Warsow mode.

The sv_aircontrol is now expected to be zero in Warsow-style mode, as it does nothing in that mode anyway! If you do set it, you get Warsow and CPMA air control added!

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

15 years agoanalyzing the movement algorithm from warsow yielded that CPM_PM_Aircontrol is called...
divverent [Fri, 8 May 2009 09:45:29 +0000 (09:45 +0000)]
analyzing the movement algorithm from warsow yielded that CPM_PM_Aircontrol is called but never does anything. Removed the call then...

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

15 years agonet_slist_favorites: allow DNS names in the list (they are resolved whenever the...
divverent [Fri, 8 May 2009 07:19:29 +0000 (07:19 +0000)]
net_slist_favorites: allow DNS names in the list (they are resolved whenever the cvar is changed)

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

15 years agooops, fix cvar default
divverent [Thu, 7 May 2009 08:42:34 +0000 (08:42 +0000)]
oops, fix cvar default

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

15 years agocl_input: movevars for "warsowbunny" mode, also implemented in Nexuiz cl_physics...
divverent [Thu, 7 May 2009 08:24:38 +0000 (08:24 +0000)]
cl_input: movevars for "warsowbunny" mode, also implemented in Nexuiz cl_physics.qc soon

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

15 years agocl_movement: move crouch handling so that sv_maxairspeed*0.5 is maximum crouching...
divverent [Wed, 6 May 2009 06:54:24 +0000 (06:54 +0000)]
cl_movement: move crouch handling so that sv_maxairspeed*0.5 is maximum crouching speed, not sv_maxspeed*0.5 (matches Nexuiz)

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

15 years agoCPMA-style cl_movement physics settings possible! Variables for it:
divverent [Tue, 5 May 2009 07:55:47 +0000 (07:55 +0000)]
CPMA-style cl_movement physics settings possible! Variables for it:
sv_aircontrol
sv_maxairstrafespeed
sv_airstrafeaccel
sv_airstopaccel

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

15 years agofix a couple compatibility issues with Nehahra
havoc [Fri, 1 May 2009 18:22:37 +0000 (18:22 +0000)]
fix a couple compatibility issues with Nehahra

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

15 years agor_novis now disables sv_cullentities_pvs, mostly to be more
havoc [Fri, 1 May 2009 18:10:06 +0000 (18:10 +0000)]
r_novis now disables sv_cullentities_pvs, mostly to be more
user-friendly

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

15 years agosnd_sdl.c: lock the render buffer before running the threaded sound mixer
divverent [Wed, 29 Apr 2009 15:23:37 +0000 (15:23 +0000)]
snd_sdl.c: lock the render buffer before running the threaded sound mixer

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

15 years agorewrote entity unsticking to be safe from world fallthrough for small entities too...
divverent [Wed, 22 Apr 2009 17:26:58 +0000 (17:26 +0000)]
rewrote entity unsticking to be safe from world fallthrough for small entities too (by making the z offsets tried depend on the height of the entity)

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

15 years agoupdate IP of dpmaster.tchr.no
divverent [Wed, 22 Apr 2009 09:57:30 +0000 (09:57 +0000)]
update IP of dpmaster.tchr.no

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

15 years agofix typo in menu_restart command description
divverent [Mon, 20 Apr 2009 15:26:50 +0000 (15:26 +0000)]
fix typo in menu_restart command description

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

15 years agogit-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8934 d7cf8633-e32d-0410...
havoc [Sun, 19 Apr 2009 20:20:31 +0000 (20:20 +0000)]
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8934 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix error message about wrong light grid dimensions
divverent [Sun, 19 Apr 2009 10:16:25 +0000 (10:16 +0000)]
fix error message about wrong light grid dimensions

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

15 years agoDP_QC_EXTRESPONSEPACKET - getextresponse() function now also in csqc and svqc (same...
divverent [Fri, 17 Apr 2009 13:56:55 +0000 (13:56 +0000)]
DP_QC_EXTRESPONSEPACKET - getextresponse() function now also in csqc and svqc (same builtin# 624 as in menu qc)

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

15 years agoDP_QC_GETTIME_CDTRACK: extension to query the playing time of the current cd track.
divverent [Wed, 15 Apr 2009 22:38:54 +0000 (22:38 +0000)]
DP_QC_GETTIME_CDTRACK: extension to query the playing time of the current cd track.

Beware: the timing is currently not exact. Might get improved later.

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

15 years agoadd a rewrite of terencehill's bindlist commands
divverent [Tue, 14 Apr 2009 18:35:40 +0000 (18:35 +0000)]
add a rewrite of terencehill's bindlist commands
Usage:
"bindlist" shows all keys on bindmap 0
"in_bindlist <n>" shows all keys on bindmap n
"in_bindlist" shows all keys on all bindmaps

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

15 years agonick completion bugfix by terencehill
divverent [Tue, 14 Apr 2009 18:12:46 +0000 (18:12 +0000)]
nick completion bugfix by terencehill

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

15 years agoconsole enhancements and bug fixes by terencehill
divverent [Tue, 14 Apr 2009 18:09:09 +0000 (18:09 +0000)]
console enhancements and bug fixes by terencehill

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

15 years agofix entity reuse of the very last entity before the entity reuse timer expires.
divverent [Tue, 14 Apr 2009 11:43:25 +0000 (11:43 +0000)]
fix entity reuse of the very last entity before the entity reuse timer expires.

Fixes bug with Nexuiz muzzle flashes sticking to the gun, and some other "PL-like" bugs too.

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

15 years agoremove accidentally committed debug code again :(
divverent [Tue, 14 Apr 2009 11:18:19 +0000 (11:18 +0000)]
remove accidentally committed debug code again :(

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

15 years agofix r_picmipworld option
divverent [Tue, 14 Apr 2009 11:17:51 +0000 (11:17 +0000)]
fix r_picmipworld option

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

15 years agofix SND_PickChannel bug choosing an in use channel
divverent [Tue, 14 Apr 2009 07:47:25 +0000 (07:47 +0000)]
fix SND_PickChannel bug choosing an in use channel

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

15 years agoturn off sv_clmovement_maxnetfps for now, as it causes breakage of cl_netimmediatebut...
divverent [Mon, 13 Apr 2009 11:38:12 +0000 (11:38 +0000)]
turn off sv_clmovement_maxnetfps for now, as it causes breakage of cl_netimmediatebuttons (which should be fixed in some way though)

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

15 years agoup sv_clmovement_maxnetfps to 120, as the worst case issue - falling through solid...
divverent [Mon, 13 Apr 2009 10:38:47 +0000 (10:38 +0000)]
up sv_clmovement_maxnetfps to 120, as the worst case issue - falling through solid - no longer can happen. Still gets lots of "unstuck entity" spam messages at high netfps on certain angled slopes due to an old collision bug (trace.endpos sometimes being inside solid when the trace ended very close to solid) which has to be fixed

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

15 years agoentity unsticking: verify if the new position REALLY is not in solid (should hide...
divverent [Mon, 13 Apr 2009 10:16:49 +0000 (10:16 +0000)]
entity unsticking: verify if the new position REALLY is not in solid (should hide and help debugging a pass-through-wall bug with high cl_netfps)

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

15 years agofix csqc sound precaches which were being freed after the level loaded
havoc [Mon, 13 Apr 2009 01:47:09 +0000 (01:47 +0000)]
fix csqc sound precaches which were being freed after the level loaded

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

15 years agoyet another check in sv_gameplayfix_slidemoveprojectiles
havoc [Mon, 13 Apr 2009 01:46:43 +0000 (01:46 +0000)]
yet another check in sv_gameplayfix_slidemoveprojectiles

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

15 years agofix use of r_main_texturepool (it's a pointer, but this file imported it
havoc [Mon, 13 Apr 2009 00:35:51 +0000 (00:35 +0000)]
fix use of r_main_texturepool (it's a pointer, but this file imported it
as a struct)

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

15 years agoadded safety checks in S_PlaySfxOnChannel due to a report of a crash
havoc [Sun, 12 Apr 2009 23:22:57 +0000 (23:22 +0000)]
added safety checks in S_PlaySfxOnChannel due to a report of a crash
with ch->sfx == NULL in the mixer thread

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

15 years agoadd a small epsilon to the moveframetime check
divverent [Sun, 12 Apr 2009 19:16:00 +0000 (19:16 +0000)]
add a small epsilon to the moveframetime check

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

15 years agosv_clmovement_maxnetfps (default: 80), should prevent issues with high netfps
divverent [Sun, 12 Apr 2009 19:13:11 +0000 (19:13 +0000)]
sv_clmovement_maxnetfps (default: 80), should prevent issues with high netfps

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

15 years agoadd checkpvs() to client too (but could not add an extension name for it, as client...
divverent [Sun, 12 Apr 2009 19:12:33 +0000 (19:12 +0000)]
add checkpvs() to client too (but could not add an extension name for it, as client and server extension strings are the same)

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

15 years agofix crash in substring()
divverent [Sun, 12 Apr 2009 19:06:39 +0000 (19:06 +0000)]
fix crash in substring()

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

15 years agofix mispredictions when paused, or when console is down in singleplayer
havoc [Sun, 12 Apr 2009 10:29:30 +0000 (10:29 +0000)]
fix mispredictions when paused, or when console is down in singleplayer

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

15 years agodon't allocate packetlog entries if there is nothing to put in them -
havoc [Sun, 12 Apr 2009 10:06:31 +0000 (10:06 +0000)]
don't allocate packetlog entries if there is nothing to put in them -
fixes packetlog overflow messages when paused

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

15 years agotweak the start time of the level a bit to cause items to spawn before
havoc [Sun, 12 Apr 2009 09:52:57 +0000 (09:52 +0000)]
tweak the start time of the level a bit to cause items to spawn before
clients join

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

15 years agoclarify float() traceline comments to say void()
havoc [Sun, 12 Apr 2009 09:17:30 +0000 (09:17 +0000)]
clarify float() traceline comments to say void()

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

15 years agoadded hmac.[ch] and cap_avi.[ch] and cap_ogg.[ch] to some project files
havoc [Sun, 12 Apr 2009 09:16:10 +0000 (09:16 +0000)]
added hmac.[ch] and cap_avi.[ch] and cap_ogg.[ch] to some project files

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

15 years agoadded a workaround to hopefully fix a precaching error in kleshik on
havoc [Sun, 12 Apr 2009 08:45:03 +0000 (08:45 +0000)]
added a workaround to hopefully fix a precaching error in kleshik on
level changes with multiple players (where some of them appear without a
player model because the svc_precache message is being lost)

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

15 years agofix bug with sv_gameplayfix_slidemoveprojectiles not allowing proximity
havoc [Sun, 12 Apr 2009 07:23:09 +0000 (07:23 +0000)]
fix bug with sv_gameplayfix_slidemoveprojectiles not allowing proximity
mines to stick in hipnotic

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

15 years agodrawrotpic:
sajt [Sun, 12 Apr 2009 04:44:34 +0000 (04:44 +0000)]
drawrotpic:
- 'org' is the point on the image to rotate around ('0 0' is top-left)
- 'angle' is in degrees, counter-clockwise

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

15 years agofixed getinputstate not returning success/failure
havoc [Sun, 12 Apr 2009 02:07:18 +0000 (02:07 +0000)]
fixed getinputstate not returning success/failure

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

15 years agoimplemented FTE_STRINGS compliant substring behavior (FRIK_FILE feature
havoc [Sun, 12 Apr 2009 01:44:56 +0000 (01:44 +0000)]
implemented FTE_STRINGS compliant substring behavior (FRIK_FILE feature
but upgraded by FTE_STRINGS)

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

15 years agoIn function `S_ServerSounds': unused variable `sfxnext' (commented it out).
motorsep [Sat, 11 Apr 2009 20:07:47 +0000 (20:07 +0000)]
In function `S_ServerSounds': unused variable `sfxnext' (commented it out).

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

15 years agoUpdated project file for SDL build
motorsep [Sat, 11 Apr 2009 20:00:43 +0000 (20:00 +0000)]
Updated project file for SDL build

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

15 years agodon't print "empty file" spam here
divverent [Fri, 10 Apr 2009 20:16:39 +0000 (20:16 +0000)]
don't print "empty file" spam here

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

15 years agodo not unload models/sounds until signon is done, this prevents the
havoc [Fri, 10 Apr 2009 19:25:08 +0000 (19:25 +0000)]
do not unload models/sounds until signon is done, this prevents the
reloading of music tracks on level change, as well as the reloading of
csqc-precached models and sounds

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

15 years agodon't need to clear rcon_password on QW server reconnect, as *ip can't be written...
divverent [Fri, 10 Apr 2009 18:45:10 +0000 (18:45 +0000)]
don't need to clear rcon_password on QW server reconnect, as *ip can't be written to by the user

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

15 years ago- be less paranoid about clearing rcon_password (only needed when connecting to anoth...
divverent [Fri, 10 Apr 2009 18:01:43 +0000 (18:01 +0000)]
- be less paranoid about clearing rcon_password (only needed when connecting to another server as long as rcon_secure is 0, or when changing it to 0)
- default rcon_secure to 0, but introduce a new "srcon" command that always works in secure mode

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

15 years agoclear mouse input at a better stage (should fix cl_maxfps issues)
divverent [Fri, 10 Apr 2009 17:56:04 +0000 (17:56 +0000)]
clear mouse input at a better stage (should fix cl_maxfps issues)

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

15 years agoless loading screen refreshs
divverent [Fri, 10 Apr 2009 15:11:26 +0000 (15:11 +0000)]
less loading screen refreshs

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

15 years agofix stupid endless loop
divverent [Fri, 10 Apr 2009 14:37:23 +0000 (14:37 +0000)]
fix stupid endless loop

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

15 years agouse "realtime", not the float time global, for entity allocation and freeing to prote...
divverent [Thu, 9 Apr 2009 12:05:29 +0000 (12:05 +0000)]
use "realtime", not the float time global, for entity allocation and freeing to protect the entity slot for 0.5 seconds (now 1 second). Should help entity networking a lot, as the time global doesn't grow monotonically when cl_movement is used on a client (basically, a client with 500ms latency can free an entity in PlayerPreThink, and that entity slot could get immediately reused in the next server frame or think function).

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

15 years agodamn, set the RIGHT alpha to 1... to make the loading bar opaque
divverent [Thu, 9 Apr 2009 08:26:11 +0000 (08:26 +0000)]
damn, set the RIGHT alpha to 1... to make the loading bar opaque

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

15 years agowhen changing rcon_secure, always clear rcon_password, to prevent a send-as-plaintext...
divverent [Thu, 9 Apr 2009 08:24:52 +0000 (08:24 +0000)]
when changing rcon_secure, always clear rcon_password, to prevent a send-as-plaintext attack

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

15 years agoclear the rcon password on "connect" command or QW-style reconnect, to prevent stuffc...
divverent [Thu, 9 Apr 2009 07:59:14 +0000 (07:59 +0000)]
clear the rcon password on "connect" command or QW-style reconnect, to prevent stuffcmd based vulnerabilities that could expose the rcon password

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

15 years agobetter error handling for overlong srcon commands
divverent [Thu, 9 Apr 2009 07:32:54 +0000 (07:32 +0000)]
better error handling for overlong srcon commands

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

15 years agoadding "srcon" protocol, and new cvars:
divverent [Thu, 9 Apr 2009 07:30:53 +0000 (07:30 +0000)]
adding "srcon" protocol, and new cvars:

rcon_secure - if enabled, client sends srcon requests instead of rcon, and server ONLY accepts secure (HMAC-MD4) rcon.
rcon_secure_maxdiff - maximum clock difference between srcon client and server in seconds (is used to protect against replay attacks)

In srcon, the command is included into the hashing, so one can still sniff the command and its replies - but what an attacker can't do in srcon is sniff the password, or change the command over the wire. There is still limited replaying potential (within 15 seconds, the command can be replayed), but I don't think this can cause much harm.

TODO: add some way to FORCE rcon_secure to be 1, as currently a malicious server could stuffcmd("rcon_secure 0\nrcon ...") and then issue a rcon command to get the password.

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

15 years agotiny fix regarding too long keys
divverent [Thu, 9 Apr 2009 06:29:30 +0000 (06:29 +0000)]
tiny fix regarding too long keys

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

15 years agoAdd my own HMAC implementation (verified using the test vectors). Planning to use...
divverent [Thu, 9 Apr 2009 06:23:27 +0000 (06:23 +0000)]
Add my own HMAC implementation (verified using the test vectors). Planning to use HMAC-MD4 for an alternate rcon authentication.

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

15 years agoFix spurious error message in CL_Locs_FreeNode - ID: 2742143
divverent [Thu, 9 Apr 2009 05:39:54 +0000 (05:39 +0000)]
Fix spurious error message in CL_Locs_FreeNode - ID: 2742143

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

15 years agodraw loading bar at 100% alpha again
divverent [Tue, 7 Apr 2009 12:47:49 +0000 (12:47 +0000)]
draw loading bar at 100% alpha again

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

15 years agopitch inversion in gettaginfo: also do the mod_alias check on the client
divverent [Tue, 7 Apr 2009 05:14:38 +0000 (05:14 +0000)]
pitch inversion in gettaginfo: also do the mod_alias check on the client

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

15 years agocode-only change of the loading screen, no visual change
divverent [Mon, 6 Apr 2009 14:37:50 +0000 (14:37 +0000)]
code-only change of the loading screen, no visual change

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

15 years agoagain a slight visual improvement(?) of the loading bar
divverent [Mon, 6 Apr 2009 14:31:46 +0000 (14:31 +0000)]
again a slight visual improvement(?) of the loading bar

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

15 years agoMem_Free being passed NULL should be a warning, not a hard error
havoc [Mon, 6 Apr 2009 12:50:30 +0000 (12:50 +0000)]
Mem_Free being passed NULL should be a warning, not a hard error

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

15 years agofix a crash if a model has no vertices
havoc [Mon, 6 Apr 2009 12:44:41 +0000 (12:44 +0000)]
fix a crash if a model has no vertices

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

15 years agofix the name (DOWNLOADPROGRESS -> LOADPROGRESS)
divverent [Sun, 5 Apr 2009 17:56:03 +0000 (17:56 +0000)]
fix the name (DOWNLOADPROGRESS -> LOADPROGRESS)

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

15 years agofix weight of worldmodel init
divverent [Sun, 5 Apr 2009 17:55:23 +0000 (17:55 +0000)]
fix weight of worldmodel init

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

15 years agograceful handling of stack underflows, or host_abortframe, during loading
divverent [Sun, 5 Apr 2009 10:53:43 +0000 (10:53 +0000)]
graceful handling of stack underflows, or host_abortframe, during loading

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

15 years agoenable nonpoweroftwo support again (accidentalyl had it && 0'ed for testing)
divverent [Sun, 5 Apr 2009 10:34:39 +0000 (10:34 +0000)]
enable nonpoweroftwo support again (accidentalyl had it && 0'ed for testing)

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

15 years agoloading screen: properly handle the back buffer, by using a copy-to-texture of the...
divverent [Sun, 5 Apr 2009 10:32:23 +0000 (10:32 +0000)]
loading screen: properly handle the back buffer, by using a copy-to-texture of the previous screen as background

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

15 years agoforce screen clear when showing loading plaque
divverent [Sun, 5 Apr 2009 10:10:15 +0000 (10:10 +0000)]
force screen clear when showing loading plaque

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

15 years agofix YUV tables
divverent [Sun, 5 Apr 2009 09:51:24 +0000 (09:51 +0000)]
fix YUV tables

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