15 years agoFixed a bug in the r_shadow light entity parser which caused it to not read in
black [Wed, 17 Aug 2005 12:43:01 +0000 (12:43 +0000)]
Fixed a bug in the r_shadow light entity parser which caused it to not read in
the pflags, skin and effects key/value pairs in q3 maps.
Added a check to PF_lightstyle for style >= 64.
Fixed a bug in the cursor drawing of the editrtlights mode (it was reading from a
uninitialized vector if you flew out of the map).

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

15 years agoadded a default case (Sys_Error) to CL_RocketTrail as recommended by [515]
havoc [Mon, 15 Aug 2005 14:02:43 +0000 (14:02 +0000)]
added a default case (Sys_Error) to CL_RocketTrail as recommended by [515]

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

15 years agocl_lastquakeentity and cl_isquakeentity are now reset properly when loading a new...
molivier [Mon, 15 Aug 2005 10:40:19 +0000 (10:40 +0000)]
cl_lastquakeentity and cl_isquakeentity are now reset properly when loading a new map (fix the crash with coopmod)

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

15 years agoadded more developer_memorydebug sentinel checks, and made developer_memorydebug...
havoc [Mon, 15 Aug 2005 07:02:51 +0000 (07:02 +0000)]
added more developer_memorydebug sentinel checks, and made developer_memorydebug do not-allocated checks in a few cases that were not checked before
modified Mem_IsAllocated to be able to take a NULL pool pointer to scan all pools for the allocation

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

15 years agoFixups for Solaris port.
eviltypeguy [Sun, 14 Aug 2005 23:33:30 +0000 (23:33 +0000)]
Fixups for Solaris port.

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

15 years agofix a crash in q1bsp model stats printing in developer mode
havoc [Sun, 14 Aug 2005 22:54:15 +0000 (22:54 +0000)]
fix a crash in q1bsp model stats printing in developer mode

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

15 years agofix stupid typo in Cvar_RegisterVariable call
havoc [Sun, 14 Aug 2005 19:44:21 +0000 (19:44 +0000)]
fix stupid typo in Cvar_RegisterVariable call

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

15 years agorenamed cl_deathtilt to v_deathtilt to match FTE, fuhquake and ezquake engines
havoc [Sun, 14 Aug 2005 18:31:15 +0000 (18:31 +0000)]
renamed cl_deathtilt to v_deathtilt to match FTE, fuhquake and ezquake engines

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

15 years agoadded cl_deathnoviewmodel, cl_deathscoreboard and cl_deathtilt cvars so that games...
havoc [Sun, 14 Aug 2005 16:36:55 +0000 (16:36 +0000)]
added cl_deathnoviewmodel, cl_deathscoreboard and cl_deathtilt cvars so that games can decide whether they want these behaviors

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

15 years agoadded a comment in push code
havoc [Sun, 14 Aug 2005 16:36:09 +0000 (16:36 +0000)]
added a comment in push code

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

15 years agoAdded colored string support to centerprint.
black [Sat, 13 Aug 2005 20:56:23 +0000 (20:56 +0000)]
Added colored string support to centerprint.
Fixed the menu from dying a recursive death if PRVM_Crash crashes inside
of the error handling function.

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

15 years agofix a terrible mistake: don't send \n at the end of the client variables during signon
havoc [Wed, 10 Aug 2005 10:25:46 +0000 (10:25 +0000)]
fix a terrible mistake: don't send \n at the end of the client variables during signon

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

15 years agomade Cmd_ForwardToServer code far more readable and prevented forwarding an empty...
havoc [Wed, 10 Aug 2005 10:23:26 +0000 (10:23 +0000)]
made Cmd_ForwardToServer code far more readable and prevented forwarding an empty string using cmd by itself

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

15 years agoFixed alias parsing and added support for $* which pastes all formal parameters.
black [Wed, 10 Aug 2005 10:03:38 +0000 (10:03 +0000)]
Fixed alias parsing and added support for $* which pastes all formal parameters.

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

15 years agorenamed r_shadow_geforcefxlowquality to r_shadow_usehalffloat and added gl_support_ha...
havoc [Wed, 10 Aug 2005 07:08:57 +0000 (07:08 +0000)]
renamed r_shadow_geforcefxlowquality to r_shadow_usehalffloat and added gl_support_half_float extension checking, (half float is now considered a feature rather than a low quality option, as it is an even bigger speed gain on GF6 than on GFFX and no quality reduction has been observed)

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

15 years agoRemove a call to ResetProg from ShutdownServer, so after a crash you will be able...
black [Mon, 8 Aug 2005 08:16:37 +0000 (08:16 +0000)]
Remove a call to ResetProg from ShutdownServer, so after a crash you will be able to debug the server prog.

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

15 years agoadd DP_ENT_COLORMOD extension to extension lists
havoc [Mon, 8 Aug 2005 07:41:47 +0000 (07:41 +0000)]
add DP_ENT_COLORMOD extension to extension lists
remove NEXUIZ_PLAYERSKIN from extension lists (the dpextensions.qc describes it as part of the NEXUIZ_PLAYERMODEL extension)

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

15 years agofix the commandline option documentation of The Hunted to say -thehunted, not -nether...
havoc [Mon, 8 Aug 2005 07:16:41 +0000 (07:16 +0000)]
fix the commandline option documentation of The Hunted to say -thehunted, not -netherworld (no change in behavior, only documentation)

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

15 years agochange name of VorteX's netherworld mod
havoc [Mon, 8 Aug 2005 07:15:36 +0000 (07:15 +0000)]
change name of VorteX's netherworld mod

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

15 years agofix a signed/unsigned comparison warning
havoc [Tue, 2 Aug 2005 20:11:19 +0000 (20:11 +0000)]
fix a signed/unsigned comparison warning

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

15 years ago-Changed a call to VariableString with FindCvar.
black [Sat, 30 Jul 2005 18:43:24 +0000 (18:43 +0000)]
-Changed a call to VariableString with FindCvar.
-Made changelevel call map if there is no server running (you could call this
a hack).

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

15 years agoMoved the $cvar parser to Cmd_TokenizeString.
black [Tue, 19 Jul 2005 21:04:36 +0000 (21:04 +0000)]
Moved the $cvar parser to Cmd_TokenizeString.

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

15 years ago-Added $parameter parsing to the alias and $cvar parsing to the cmd system.
black [Tue, 19 Jul 2005 20:53:45 +0000 (20:53 +0000)]
-Added $parameter parsing to the alias and $cvar parsing to the cmd system.
alias test "connect $1"
test ""
set testcvar ""
connect $testcvar
TODO: Add the extension description and the extension to the extension list.

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

15 years agoFixed a bug by me regarding the filesize of the embedded font.
tomaz [Wed, 13 Jul 2005 15:10:09 +0000 (15:10 +0000)]
Fixed a bug by me regarding the filesize of the embedded font.
Added FONT_FILESIZE define to avoid this misstake in the future.

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

15 years agodraw [] brackets on the top 4 frags display before the frags count rather than after...
havoc [Wed, 13 Jul 2005 14:20:17 +0000 (14:20 +0000)]
draw [] brackets on the top 4 frags display before the frags count rather than after, as suggested by knghtbrd

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

15 years agoturned Mod_CheckLoaded into a #define
havoc [Sun, 10 Jul 2005 21:21:47 +0000 (21:21 +0000)]
turned Mod_CheckLoaded into a #define

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

15 years agoFix the makefile not to use the unused gl_models.c
knghtbrd [Sun, 10 Jul 2005 21:17:52 +0000 (21:17 +0000)]
Fix the makefile not to use the unused gl_models.c

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

15 years agoremove unused gl_models.c file
havoc [Sun, 10 Jul 2005 21:16:23 +0000 (21:16 +0000)]
remove unused gl_models.c file

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

15 years agouse *64.dll instead of *.dll on win64, this way we can include both 32bit and 64bit...
havoc [Sun, 10 Jul 2005 12:33:20 +0000 (12:33 +0000)]
use *64.dll instead of *.dll on win64, this way we can include both 32bit and 64bit dlls in the same releases

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

15 years agoremove TEXF_CLAMP on skins
havoc [Fri, 8 Jul 2005 09:12:53 +0000 (09:12 +0000)]
remove TEXF_CLAMP on skins

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

15 years agoreduce TRIANGLEEDGEHASH from 16384 bins to 8192 to avoid a stack overflow on MSVC x64
havoc [Fri, 8 Jul 2005 08:42:52 +0000 (08:42 +0000)]
reduce TRIANGLEEDGEHASH from 16384 bins to 8192 to avoid a stack overflow on MSVC x64

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

15 years agomove sv.active = true; up to fix a VM_bprint warning
havoc [Wed, 6 Jul 2005 18:22:56 +0000 (18:22 +0000)]
move sv.active = true; up to fix a VM_bprint warning

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

15 years agochanged qfile_t->buff_ind and qfile_t->buff_len to fs_offset_t to reduce number of...
havoc [Tue, 5 Jul 2005 13:32:14 +0000 (13:32 +0000)]
changed qfile_t->buff_ind and qfile_t->buff_len to fs_offset_t to reduce number of casts

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

15 years agofix a warning
havoc [Tue, 5 Jul 2005 13:26:47 +0000 (13:26 +0000)]
fix a warning

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

15 years agomore warning fixes
havoc [Tue, 5 Jul 2005 13:23:52 +0000 (13:23 +0000)]
more warning fixes

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

15 years agouse 32bit fs_offset_t on windows (even win64 doesn't support 64bit file offsets on...
havoc [Tue, 5 Jul 2005 13:12:23 +0000 (13:12 +0000)]
use 32bit fs_offset_t on windows (even win64 doesn't support 64bit file offsets on lseek/read/write)

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

15 years agomade packfile_t (describes a file in a pack) use fs_offset_t
havoc [Tue, 5 Jul 2005 13:08:49 +0000 (13:08 +0000)]
made packfile_t (describes a file in a pack) use fs_offset_t

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

15 years agoadded a #define DIRECTINPUT_VERSION to hush warnings and make it work on dinput3...
havoc [Tue, 5 Jul 2005 13:02:21 +0000 (13:02 +0000)]
added a #define DIRECTINPUT_VERSION to hush warnings and make it work on dinput3 even if dinput8 headers are installed

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

15 years agofix VC 6 not supporting DWORD_PTR.
black [Tue, 5 Jul 2005 13:01:29 +0000 (13:01 +0000)]
fix VC 6 not supporting DWORD_PTR.

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

15 years agomore warnings fixed
havoc [Tue, 5 Jul 2005 13:00:16 +0000 (13:00 +0000)]
more warnings fixed

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

15 years agomore fixes
havoc [Tue, 5 Jul 2005 12:56:54 +0000 (12:56 +0000)]
more fixes

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

15 years agoadded a 64bif fs_offset_t type to clean up most of the mess
havoc [Tue, 5 Jul 2005 12:51:27 +0000 (12:51 +0000)]
added a 64bif fs_offset_t type to clean up most of the mess

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

15 years agofixed some conversions
black [Tue, 5 Jul 2005 12:04:30 +0000 (12:04 +0000)]
fixed some conversions

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

15 years agostomping more size_t warnings
havoc [Tue, 5 Jul 2005 11:57:50 +0000 (11:57 +0000)]
stomping more size_t warnings

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

15 years agofixed signed/unsigned mismatch warnings
havoc [Tue, 5 Jul 2005 11:33:02 +0000 (11:33 +0000)]
fixed signed/unsigned mismatch warnings
more size_t changes

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

15 years agochanging some things back to size_t
havoc [Tue, 5 Jul 2005 11:24:38 +0000 (11:24 +0000)]
changing some things back to size_t

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

15 years agomore size_t
havoc [Tue, 5 Jul 2005 10:49:06 +0000 (10:49 +0000)]
more size_t

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

15 years agouse size_t less
havoc [Tue, 5 Jul 2005 09:29:08 +0000 (09:29 +0000)]
use size_t less

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

15 years agomore size_t
havoc [Tue, 5 Jul 2005 09:24:26 +0000 (09:24 +0000)]
more size_t

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

15 years agouse size_t even more
havoc [Tue, 5 Jul 2005 09:22:15 +0000 (09:22 +0000)]
use size_t even more

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

15 years agouse size_t more
havoc [Tue, 5 Jul 2005 09:21:21 +0000 (09:21 +0000)]
use size_t more

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

15 years agochanged some things to size_t to reduce warnings on MSVC x64
havoc [Tue, 5 Jul 2005 09:10:43 +0000 (09:10 +0000)]
changed some things to size_t to reduce warnings on MSVC x64

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

15 years agomade FS_WriteFile's len parameter size_t to fix some warnings
havoc [Tue, 5 Jul 2005 06:53:11 +0000 (06:53 +0000)]
made FS_WriteFile's len parameter size_t to fix some warnings

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

15 years agofix problems with missing cubemap textures in GLSL
havoc [Mon, 4 Jul 2005 10:10:38 +0000 (10:10 +0000)]
fix problems with missing cubemap textures in GLSL

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

15 years agofix a crash when doing vid_restart or r_restart with detailtexturing on
havoc [Mon, 4 Jul 2005 09:52:13 +0000 (09:52 +0000)]
fix a crash when doing vid_restart or r_restart with detailtexturing on

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

15 years agofix a typo
havoc [Mon, 4 Jul 2005 09:51:35 +0000 (09:51 +0000)]
fix a typo

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

15 years agodefault developer_texturelogging to 0, don't know why it was 1
havoc [Mon, 4 Jul 2005 09:44:45 +0000 (09:44 +0000)]
default developer_texturelogging to 0, don't know why it was 1

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

15 years agoallow escape to togglemenu when in fullscreen console
havoc [Mon, 4 Jul 2005 08:35:48 +0000 (08:35 +0000)]
allow escape to togglemenu when in fullscreen console

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

15 years agoFixed it so vertical syns is applied correctly at init.
tomaz [Mon, 4 Jul 2005 08:12:58 +0000 (08:12 +0000)]
Fixed it so vertical syns is applied correctly at init.

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

15 years ago-Moved findflags and findchainflags to the prvm_cmds.c.
black [Sun, 3 Jul 2005 11:23:47 +0000 (11:23 +0000)]
-Moved findflags and findchainflags to the prvm_cmds.c.
-Added support for default values to the cvar system.
-Added a cvar_defstring builtin to the vm.

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

15 years agofix bug that made pants/shirt not render in rtlighting (logic was backwards on the...
havoc [Sun, 3 Jul 2005 09:01:09 +0000 (09:01 +0000)]
fix bug that made pants/shirt not render in rtlighting (logic was backwards on the fullbright color range checks)
fix bug that rendered specular multiple times (brighter than inended) when using GLSL shader path on colormapped entities

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

15 years agodon't print PRVM_NAME in each dprint call, it looks terrible (prints multiple times...
havoc [Sun, 3 Jul 2005 07:07:34 +0000 (07:07 +0000)]
don't print PRVM_NAME in each dprint call, it looks terrible (prints multiple times per line because of multiple dprint calls without \n)
fix fatal bug in findchain and findchainfloat which were using FindFieldOffset (which returns a byte array index) to get an offset to feed to PRVM_E_INT (which takes an integer array index)

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

15 years agofix bug in parsing PROTOCOL_DARKPLACES1/2/3/4 angles
havoc [Sat, 2 Jul 2005 11:03:25 +0000 (11:03 +0000)]
fix bug in parsing PROTOCOL_DARKPLACES1/2/3/4 angles

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

15 years agofix Black's mistake of using 'long' (32bit/64bit depending on architecture) type...
havoc [Sat, 2 Jul 2005 03:06:23 +0000 (03:06 +0000)]
fix Black's mistake of using 'long' (32bit/64bit depending on architecture) type in reading .lno files, changed to int (32bit) so that the code works on 64bit architectures

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

15 years agofix a problem with shadows being cut short from models near the edge of light radius...
havoc [Sat, 2 Jul 2005 02:56:48 +0000 (02:56 +0000)]
fix a problem with shadows being cut short from models near the edge of light radius (use model->radius*2 not model->radius)

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

15 years agochanged two comments from saying long to int
havoc [Sat, 2 Jul 2005 02:55:56 +0000 (02:55 +0000)]
changed two comments from saying long to int

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

15 years agoallow multiple lightning beams owned by world
havoc [Fri, 1 Jul 2005 22:39:31 +0000 (22:39 +0000)]
allow multiple lightning beams owned by world

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

15 years agoforbid world writes after precache stage (without using sv.state, instead prog->allow...
havoc [Fri, 1 Jul 2005 07:04:40 +0000 (07:04 +0000)]
forbid world writes after precache stage (without using sv.state, instead prog->allowworldwrites was added)

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

15 years agochanged shadow projection length to use model->radius*2 instead of model->radius
havoc [Fri, 1 Jul 2005 06:58:09 +0000 (06:58 +0000)]
changed shadow projection length to use model->radius*2 instead of model->radius

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

15 years agostop searching for a server port when one is found
havoc [Wed, 29 Jun 2005 23:03:32 +0000 (23:03 +0000)]
stop searching for a server port when one is found

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

15 years agoadded knownstrings_freeable array to prog struct so that attempts to free engine...
havoc [Wed, 29 Jun 2005 22:45:28 +0000 (22:45 +0000)]
added knownstrings_freeable array to prog struct so that attempts to free engine strings are detected and cause a PRVM_FreeString error (rather than a Mem_Free error)

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

15 years agodefault offsetmapping off (as it messes up model skins)
havoc [Tue, 28 Jun 2005 23:10:21 +0000 (23:10 +0000)]
default offsetmapping off (as it messes up model skins)
fixed permutation failure prints (now lists all 6 flags not just 4)

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

15 years ago374
havoc [Tue, 28 Jun 2005 22:29:47 +0000 (22:29 +0000)]

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

15 years ago-Added sv_playerphysicsqc to control whether the qc physics function is called (if...
black [Tue, 28 Jun 2005 21:09:58 +0000 (21:09 +0000)]
-Added sv_playerphysicsqc to control whether the qc physics function is called (if its available).
-Added support for loading LNO files (more to follow soon).
-The server now tries other ports (up to 100 above default) if the default port cant be bound.

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

15 years agopatch from christian holmberg to make XK_section key (I do not know what this is...
havoc [Tue, 28 Jun 2005 19:23:36 +0000 (19:23 +0000)]
patch from christian holmberg to make XK_section key (I do not know what this is) type ~ character for binds

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

15 years agoremoved r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale cvars...
havoc [Tue, 28 Jun 2005 05:59:39 +0000 (05:59 +0000)]
removed r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale cvars (now they behave as if they were both 1.0)
added r_editlights_edit commands radiusscale sizescale and colorscale (use these to fix old-format .rtlights files)

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

15 years agoincreased server browser viewlist limit (was 128) to match the serverlist limit ...
havoc [Mon, 27 Jun 2005 23:07:28 +0000 (23:07 +0000)]
increased server browser viewlist limit (was 128) to match the serverlist limit (2048)

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

15 years ago-"add color code to start of chat message to prevent nick colors from messing up...
black [Sun, 26 Jun 2005 19:56:39 +0000 (19:56 +0000)]
-"add color code to start of chat message to prevent nick colors from messing up the text color"
-updated a few todo items.

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

15 years agoremoved "%s changed model to %s" message on .playermodel changes (it was unintended)
havoc [Sun, 26 Jun 2005 00:51:03 +0000 (00:51 +0000)]
removed "%s changed model to %s" message on .playermodel changes (it was unintended)

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

15 years agoq3 shader parser was not supporting alphatest (promoted to alphablend) without trans...
havoc [Sat, 25 Jun 2005 21:51:35 +0000 (21:51 +0000)]
q3 shader parser was not supporting alphatest (promoted to alphablend) without trans parm

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

15 years agoremoved SV_SetOnGround, this cures the bunnyhopping bug (failure to jump again when...
havoc [Wed, 22 Jun 2005 17:43:32 +0000 (17:43 +0000)]
removed SV_SetOnGround, this cures the bunnyhopping bug (failure to jump again when hitting the ground)

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

15 years agochanged a lot of Host_Error calls to Con_Printf or Sys_Error according to severity
havoc [Wed, 22 Jun 2005 17:35:17 +0000 (17:35 +0000)]
changed a lot of Host_Error calls to Con_Printf or Sys_Error according to severity

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

15 years agochanged most Sys_Error calls to Con_Printf with appropriate error returns
havoc [Mon, 20 Jun 2005 01:50:29 +0000 (01:50 +0000)]
changed most Sys_Error calls to Con_Printf with appropriate error returns

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

15 years agoremoved winding.[ch] files from dsp files
havoc [Mon, 20 Jun 2005 01:35:52 +0000 (01:35 +0000)]
removed winding.[ch] files from dsp files

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

15 years agoremoved winding.[ch] as they were not used
havoc [Mon, 20 Jun 2005 01:30:33 +0000 (01:30 +0000)]
removed winding.[ch] as they were not used

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

15 years agoremoved two unused Key_Event implementations (which let me remove some unused variabl...
havoc [Sun, 19 Jun 2005 23:52:18 +0000 (23:52 +0000)]
removed two unused Key_Event implementations (which let me remove some unused variables like menukeys and consolekeys to save several K of memory), cleaned up keys.h externs

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

15 years agochanged keydown[] from unsigned int holding key repeat count to qbyte holding status...
havoc [Sun, 19 Jun 2005 23:02:51 +0000 (23:02 +0000)]
changed keydown[] from unsigned int holding key repeat count to qbyte holding status (0 = up, 1 = down, 2 = repeating) to save 3K of memory

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

15 years agoremoved keydown[] and renamed key_repeats[] to keydown[] (overall the code looks...
havoc [Sun, 19 Jun 2005 22:56:43 +0000 (22:56 +0000)]
removed keydown[] and renamed key_repeats[] to keydown[] (overall the code looks the same, but this saves 1K of memory)

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

15 years agocleaned up Key_Event, this changed toggleconsole bind behavior (it now only works...
havoc [Sun, 19 Jun 2005 19:04:00 +0000 (19:04 +0000)]
cleaned up Key_Event, this changed toggleconsole bind behavior (it now only works while in key_game mode, like all other normal binds)

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

15 years agoremoved shift_down variable, use keydown[K_SHIFT] instead
havoc [Sun, 19 Jun 2005 17:52:13 +0000 (17:52 +0000)]
removed shift_down variable, use keydown[K_SHIFT] instead

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

15 years agobetter detection of model load failures in viewmodel command
havoc [Sun, 19 Jun 2005 17:47:30 +0000 (17:47 +0000)]
better detection of model load failures in viewmodel command

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

15 years agodon't complain about missing bolt3/beam models
havoc [Sun, 19 Jun 2005 17:46:59 +0000 (17:46 +0000)]
don't complain about missing bolt3/beam models

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

15 years agoremoved 3 unused variables
havoc [Sun, 19 Jun 2005 17:42:47 +0000 (17:42 +0000)]
removed 3 unused variables

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

15 years ago-Added support for 515]'s BX_COLOREDTEXT extension.
black [Sun, 19 Jun 2005 16:42:43 +0000 (16:42 +0000)]
-Added support for 515]'s BX_COLOREDTEXT extension.
-Changed fopen's and fclose's log ouput a bit (to include the prvm name)
-Fixed a stupid bug in the SV VM that caused it to crash on error.

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

15 years agoremoved CL_InitTEnts function, moved its contents (cl_sfx precaches) to CL_ParseServe...
havoc [Sun, 19 Jun 2005 01:10:38 +0000 (01:10 +0000)]
removed CL_InitTEnts function, moved its contents (cl_sfx precaches) to CL_ParseServerInfo
removed beam precaches from the beam parsing code to CL_ParseServerInfo so that the precaches are made each level (when it unloads models/sounds) rather than only once (ever!) during the game, this fixed crashes and rendering issues (using the wrong model) with lightning beams
renamed cl_sfx_ and cl_model_ from cl_ prefix to cl. prefix now that they are part of the per-level state

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

15 years agobefore calling SetNewParms qc function, set self to world to intentionally cause...
havoc [Sun, 19 Jun 2005 00:59:52 +0000 (00:59 +0000)]
before calling SetNewParms qc function, set self to world to intentionally cause errors with broken SetNewParms code in some mods

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

15 years agoremove unused frametime calculation
havoc [Sun, 19 Jun 2005 00:55:58 +0000 (00:55 +0000)]
remove unused frametime calculation

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

15 years agoreplace control characters (such as newline) with _ in savegame comments, this fixes...
havoc [Thu, 16 Jun 2005 22:43:37 +0000 (22:43 +0000)]
replace control characters (such as newline) with _ in savegame comments, this fixes loading savegames in 'dungeon.bsp' of The Ascension of Vigil, and probably some other maps that use newlines in their titles (nasty)

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

15 years agoFixed the embedded lhfont some more.
tomaz [Wed, 15 Jun 2005 16:26:54 +0000 (16:26 +0000)]
Fixed the embedded lhfont some more.

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

15 years agouse sdl-config --static-libs on Mac
havoc [Wed, 15 Jun 2005 03:54:14 +0000 (03:54 +0000)]
use sdl-config --static-libs on Mac

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