]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
4 years agoImplement EXT_WRATH fields
Cloudwalk [Wed, 10 Jun 2020 17:13:10 +0000 (13:13 -0400)]
Implement EXT_WRATH fields

4 years agoImplement EXT_NODEGRAPH
Cloudwalk [Wed, 10 Jun 2020 15:56:38 +0000 (11:56 -0400)]
Implement EXT_NODEGRAPH

4 years agoImplement GAME_WRATH and its codepaths
Cloudwalk [Wed, 10 Jun 2020 15:27:53 +0000 (11:27 -0400)]
Implement GAME_WRATH and its codepaths

The game works now. Some console spam related to VM_fgets that I'll need
to look into. Other than that, it doesn't have horrid framerates anymore
in e1m1.

4 years agoImplement EXT_WRATH
Cloudwalk [Wed, 10 Jun 2020 14:41:19 +0000 (10:41 -0400)]
Implement EXT_WRATH

Wrath can now at least enter a map. Performance is horrid by next level.
More work remains.

4 years agoMerge branch 'Mario/wrath-darkplaces' into Mario/wrath-darkplaces_extra
Cloudwalk [Wed, 10 Jun 2020 13:44:49 +0000 (09:44 -0400)]
Merge branch 'Mario/wrath-darkplaces' into Mario/wrath-darkplaces_extra

4 years agoFix compile warnings
Cloudwalk [Wed, 10 Jun 2020 13:44:06 +0000 (09:44 -0400)]
Fix compile warnings

4 years agoMerge branch 'master' into Mario/wrath-darkplaces
Cloudwalk [Wed, 10 Jun 2020 13:38:37 +0000 (09:38 -0400)]
Merge branch 'master' into Mario/wrath-darkplaces

4 years agoCode style improvements
cloudwalk [Wed, 10 Jun 2020 13:33:21 +0000 (13:33 +0000)]
Code style improvements

Partially from https://gitlab.com/xonotic/darkplaces/-/merge_requests/85

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

4 years agoForbid use of ctrl+alt combo in console. Fixes altgr usage on some layouts
cloudwalk [Wed, 10 Jun 2020 05:19:24 +0000 (05:19 +0000)]
Forbid use of ctrl+alt combo in console. Fixes altgr usage on some layouts

https://gitlab.com/xonotic/darkplaces/-/merge_requests/58

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

4 years agoClamp clipboard data to MAX_INPUTLINE. Fixes heap overflow with console input
cloudwalk [Wed, 10 Jun 2020 05:08:41 +0000 (05:08 +0000)]
Clamp clipboard data to MAX_INPUTLINE. Fixes heap overflow with console input

https://gitlab.com/xonotic/darkplaces/-/merge_requests/84

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

4 years agoAdd GLSL implementation of texture lookup tables (LUT), ported from Wrath
Mario [Tue, 9 Jun 2020 17:48:05 +0000 (03:48 +1000)]
Add GLSL implementation of texture lookup tables (LUT), ported from Wrath

4 years agoGive cvar aliases purple color
cloudwalk [Tue, 9 Jun 2020 15:39:59 +0000 (15:39 +0000)]
Give cvar aliases purple color

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

4 years agoRearrange cvar help to fix compatibility with some regex parsing of cvar help
cloudwalk [Tue, 9 Jun 2020 14:58:45 +0000 (14:58 +0000)]
Rearrange cvar help to fix compatibility with some regex parsing of cvar help

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

4 years agoPrint cvar aliases in apropos and cvarlist output properly
cloudwalk [Tue, 9 Jun 2020 14:58:45 +0000 (14:58 +0000)]
Print cvar aliases in apropos and cvarlist output properly

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

4 years agoDelete empty files
cloudwalk [Mon, 8 Jun 2020 22:59:23 +0000 (22:59 +0000)]
Delete empty files

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

4 years agoAdd missing modulo in cvar hashtable lookup
cloudwalk [Mon, 8 Jun 2020 22:12:18 +0000 (22:12 +0000)]
Add missing modulo in cvar hashtable lookup

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

4 years agoStray tab begone
cloudwalk [Mon, 8 Jun 2020 21:55:18 +0000 (21:55 +0000)]
Stray tab begone

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

4 years agoFix scope screwup preventing apropos from printing cvars
cloudwalk [Mon, 8 Jun 2020 21:36:07 +0000 (21:36 +0000)]
Fix scope screwup preventing apropos from printing cvars

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

4 years agoAdd topcolor to clientfromserver so quake15 stops spamming the console
cloudwalk [Mon, 8 Jun 2020 15:33:27 +0000 (15:33 +0000)]
Add topcolor to clientfromserver so quake15 stops spamming the console

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

4 years agoFix (workaround?) crashes with quake15 mod
cloudwalk [Mon, 8 Jun 2020 15:33:26 +0000 (15:33 +0000)]
Fix (workaround?) crashes with quake15 mod

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

4 years agoReimpl. the cvar alias system. Reimpl. the cvar hash table as a distinct type
cloudwalk [Mon, 8 Jun 2020 14:46:12 +0000 (14:46 +0000)]
Reimpl. the cvar alias system. Reimpl. the cvar hash table as a distinct type

It is now type-safe, cleaner, and doesn't require new static cvar_t's
for each alias. The hash table being implemented as a distinct type
allows multiple hashes to point to the same cvar without having to
create a new cvar_t for each alias.

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

4 years agoRevert the cvar alias system, as a checkpoint pending an overhaul
cloudwalk [Mon, 8 Jun 2020 14:46:11 +0000 (14:46 +0000)]
Revert the cvar alias system, as a checkpoint pending an overhaul

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

4 years agoDon't use an enum as a type directly. Helps fix C++ compilation.
cloudwalk [Mon, 8 Jun 2020 14:46:10 +0000 (14:46 +0000)]
Don't use an enum as a type directly. Helps fix C++ compilation.

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

4 years agoAdd a few explicit typecasts to help fix C++ compilation
cloudwalk [Mon, 8 Jun 2020 14:46:10 +0000 (14:46 +0000)]
Add a few explicit typecasts to help fix C++ compilation

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

4 years agoRemove hook system. Was a fun little experiment but is too bulky and impractical
cloudwalk [Mon, 8 Jun 2020 14:46:09 +0000 (14:46 +0000)]
Remove hook system. Was a fun little experiment but is too bulky and impractical

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

4 years agoFix apropos crash when it reaches cvar alias
cloudwalk [Sat, 6 Jun 2020 18:11:34 +0000 (18:11 +0000)]
Fix apropos crash when it reaches cvar alias

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

4 years agoRename a few of the fake loss and fake latency cvars
cloudwalk [Sat, 6 Jun 2020 18:11:34 +0000 (18:11 +0000)]
Rename a few of the fake loss and fake latency cvars

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

4 years agoRename all of the show* cvars to a more consistent convention. Made them aliases
cloudwalk [Sat, 6 Jun 2020 18:11:33 +0000 (18:11 +0000)]
Rename all of the show* cvars to a more consistent convention. Made them aliases

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

4 years agoFix crash when autocompleting a cvar alias
cloudwalk [Sat, 6 Jun 2020 18:11:32 +0000 (18:11 +0000)]
Fix crash when autocompleting a cvar alias

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

4 years agoInitial implementation of cvar aliases, with slowmo as a starting example
cloudwalk [Sat, 6 Jun 2020 18:11:31 +0000 (18:11 +0000)]
Initial implementation of cvar aliases, with slowmo as a starting example

This allows cvars to be renamed, and keep the old cvar by pointing it to
the new one. Pretty much every cvar finding function has been adapted to
return a the aliased cvar or the alias itself depending on context.

For example, if a value is needed, it'll dereference the alias. If the
cvar is needed to be listed somewhere or to check if the cvar merely
exists, it will not. Other than that, it's pretty straightforward.

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

4 years agoRevert "Disable occlusion query on Intel. Can be force-enabled. Hopefully temporary"
cloudwalk [Sat, 6 Jun 2020 14:02:55 +0000 (14:02 +0000)]
Revert "Disable occlusion query on Intel. Can be force-enabled. Hopefully temporary"

This reverts commit d26e81de699c51e5be2b630649e7f853aadea2cd.

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

4 years agoDisable occlusion query on Intel. Can be force-enabled. Hopefully temporary
cloudwalk [Sat, 6 Jun 2020 01:35:55 +0000 (01:35 +0000)]
Disable occlusion query on Intel. Can be force-enabled. Hopefully temporary

The previous occlusion query crash is still occurring on Intel
for reasons totally elusive to me. I'm tempted to think it's a driver
bug, but honestly I'm not sure.

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

4 years agoDraw coronas with the same cscale whether gl_flashblend or not. Fixes brightness
cloudwalk [Fri, 5 Jun 2020 14:55:28 +0000 (14:55 +0000)]
Draw coronas with the same cscale whether gl_flashblend or not. Fixes brightness

This should fix the ridiculously high brightness of coronas in pretty
much every game, when gl_flashblend is 1. This brings it closer to what
coronas looked like in 2014.

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

4 years agoChange tabs into spaces for a console print so it does not show weird glyphs ingame
cloudwalk [Fri, 5 Jun 2020 13:42:52 +0000 (13:42 +0000)]
Change tabs into spaces for a console print so it does not show weird glyphs ingame

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

4 years agoFix a few compile warnings from clang
cloudwalk [Thu, 4 Jun 2020 17:32:19 +0000 (17:32 +0000)]
Fix a few compile warnings from clang

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

4 years agoFix ugly typo in a Z_Malloc
cloudwalk [Thu, 4 Jun 2020 17:32:18 +0000 (17:32 +0000)]
Fix ugly typo in a Z_Malloc

It was allocating the size of the string starting from +2 offset rather
than adding 2 bytes. Oops.

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

4 years agoDisable unsupported compiler optimization if CC=clang
cloudwalk [Thu, 4 Jun 2020 16:03:45 +0000 (16:03 +0000)]
Disable unsupported compiler optimization if CC=clang

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

4 years agoImplement cvar callback for slowmo
cloudwalk [Thu, 4 Jun 2020 15:39:39 +0000 (15:39 +0000)]
Implement cvar callback for slowmo

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

4 years agoMake sure the rest of CL_Init only runs on client, matching previous behavior
cloudwalk [Thu, 4 Jun 2020 14:57:35 +0000 (14:57 +0000)]
Make sure the rest of CL_Init only runs on client, matching previous behavior

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

4 years agoHeap-allocate sessionid cvar's string to avoid stack corruption
cloudwalk [Thu, 4 Jun 2020 14:49:55 +0000 (14:49 +0000)]
Heap-allocate sessionid cvar's string to avoid stack corruption

Previously it was trying to shove the address of a local variable, which
is bad.

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

4 years agoFix the +map crash once and for all. Defer stuffcmds until it's safe to run.
cloudwalk [Thu, 4 Jun 2020 12:11:20 +0000 (12:11 +0000)]
Fix the +map crash once and for all. Defer stuffcmds until it's safe to run.

Check if the literal quake.rc file exists rather than using stuffcmds as
an indicator of its existence, and use a new qboolean host_init to defer
stuffcmds.

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

4 years agoFix broken fonts in Xonotic. Start video after quake.rc is parsed.
cloudwalk [Wed, 3 Jun 2020 20:16:03 +0000 (20:16 +0000)]
Fix broken fonts in Xonotic. Start video after quake.rc is parsed.

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

4 years agoImplement a callback for sv_cheats to disable all lingering cheats when set 0
cloudwalk [Wed, 3 Jun 2020 15:28:18 +0000 (15:28 +0000)]
Implement a callback for sv_cheats to disable all lingering cheats when set 0

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

4 years agoImplement cvar callback functionality
cloudwalk [Wed, 3 Jun 2020 15:28:17 +0000 (15:28 +0000)]
Implement cvar callback functionality

With these, cvars can run arbitrary functions to bounds-check themselves or
perform some other task such as cleanup. Use the function Cvar_RegisterCallback.

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

4 years agoFix crash when using +map on cmdline by starting video before parsing configs
cloudwalk [Wed, 3 Jun 2020 15:28:17 +0000 (15:28 +0000)]
Fix crash when using +map on cmdline by starting video before parsing configs

Also removed redundant loading screen call, to avoid resolution weirdness

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

4 years agoFix gamedir command by removing the forced video subsystem shutdown, it was trying...
havoc [Wed, 3 Jun 2020 02:26:30 +0000 (02:26 +0000)]
Fix gamedir command by removing the forced video subsystem shutdown, it was trying to load the loading screen without a running video subsystem and erroring out on the texturearray having mempool == NULL.

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

4 years agoIncrease maximum beams from 256 to 4096, as per wrath-darkplaces
Mario [Tue, 2 Jun 2020 15:44:57 +0000 (01:44 +1000)]
Increase maximum beams from 256 to 4096, as per wrath-darkplaces

4 years agoRemove forced linear flag from motion blur texture, as per wrath-darkplaces
Mario [Tue, 2 Jun 2020 15:26:45 +0000 (01:26 +1000)]
Remove forced linear flag from motion blur texture, as per wrath-darkplaces

4 years agoImplement texture lookup table GLSL shader, ported from wrath-darkplaces
Mario [Tue, 2 Jun 2020 15:24:16 +0000 (01:24 +1000)]
Implement texture lookup table GLSL shader, ported from wrath-darkplaces

4 years agoAdd missing server commands to cmd_client so a listen server can use them
cloudwalk [Tue, 2 Jun 2020 14:08:51 +0000 (14:08 +0000)]
Add missing server commands to cmd_client so a listen server can use them

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

4 years agoDon't save scr_loadingscreen_picture to config (matches other loading screen cvars...
Mario [Tue, 2 Jun 2020 14:08:20 +0000 (00:08 +1000)]
Don't save scr_loadingscreen_picture to config (matches other loading screen cvars), as per wrath-darkplaces

4 years agoIn findfloat and findchainfloat, use prvm_vec_t like the rest of the VM
cloudwalk [Tue, 2 Jun 2020 14:03:07 +0000 (14:03 +0000)]
In findfloat and findchainfloat, use prvm_vec_t like the rest of the VM

This caused Xonotic vehicles to delete every CSQC entity on the map due
to a bad comparison between a double and a float.

Big, big thanks to Mario for finding this, yet again.

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

4 years agoAdd missed check for prvm_garbagecollection_enable in LOAD_S opcode
cloudwalk [Tue, 2 Jun 2020 14:03:06 +0000 (14:03 +0000)]
Add missed check for prvm_garbagecollection_enable in LOAD_S opcode

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

4 years agoFix compiler warning
cloudwalk [Tue, 2 Jun 2020 14:03:06 +0000 (14:03 +0000)]
Fix compiler warning

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

4 years agoAdd hook.[ch] to VS2017 project.
havoc [Mon, 1 Jun 2020 08:40:05 +0000 (08:40 +0000)]
Add hook.[ch] to VS2017 project.

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

4 years agoRefactor external texture loading for Q1BSP to set the texture dimensions correctly...
havoc [Mon, 1 Jun 2020 07:12:22 +0000 (07:12 +0000)]
Refactor external texture loading for Q1BSP to set the texture dimensions correctly and also remove some dead code.

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

4 years agoFix a bug with r_batch_debugdynamicvertexpath in R_DrawTextureSurfaceList_Sky where...
havoc [Mon, 1 Jun 2020 03:02:26 +0000 (03:02 +0000)]
Fix a bug with r_batch_debugdynamicvertexpath in R_DrawTextureSurfaceList_Sky where it was trying to use the surface->num_firstvertex rather than the batch info.

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

4 years agoTry to load the uppercase variants of various image files as well
cloudwalk [Sun, 31 May 2020 23:39:30 +0000 (23:39 +0000)]
Try to load the uppercase variants of various image files as well

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

4 years agoWarn if texture is missing in Mod_Mesh_GetTexture
cloudwalk [Sun, 31 May 2020 23:39:29 +0000 (23:39 +0000)]
Warn if texture is missing in Mod_Mesh_GetTexture

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

4 years agoDon't let envmap run if we're not in-game. Fixes crash
cloudwalk [Sun, 31 May 2020 22:26:33 +0000 (22:26 +0000)]
Don't let envmap run if we're not in-game. Fixes crash

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

4 years agoFix broken scissoring with the skybox when r_viewscale > 2
cloudwalk [Sun, 31 May 2020 22:09:46 +0000 (22:09 +0000)]
Fix broken scissoring with the skybox when r_viewscale > 2

Adjusted to the correct resolutions. This happened when deferred shadows
and shadowmapping were both turned off.

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

4 years agoRemove the linear flag from some particle textures and adjust an off by 1 check ...
Mario [Sun, 31 May 2020 15:24:57 +0000 (01:24 +1000)]
Remove the linear flag from some particle textures and adjust an off by 1 check (may introduce division by zero warnings), as per wrath-darkplaces

4 years agoImplement wrath's workaround for #136: don't clear the onground flag from view smooth...
Mario [Sun, 31 May 2020 14:55:35 +0000 (00:55 +1000)]
Implement wrath's workaround for #136: don't clear the onground flag from view smoothing and bobbing for a short time

4 years agoImplement wrath's workaround for #152: only apply nogravityonground while not moving
Mario [Sun, 31 May 2020 14:50:15 +0000 (00:50 +1000)]
Implement wrath's workaround for #152: only apply nogravityonground while not moving

4 years agoFix multiple bugs with r_viewscale in r_shadow_deferred and r_bloom - they were relyi...
havoc [Sun, 31 May 2020 05:41:15 +0000 (05:41 +0000)]
Fix multiple bugs with r_viewscale in r_shadow_deferred and r_bloom - they were relying on vid.width/vid.height rather than r_fb.screentexturewidth/r_fb.screentextureheight.

Thanks to Cloudwalk for debugging this a fair bit already.

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

4 years agoAdd hook.[ch] to vs2019 project.
havoc [Sun, 31 May 2020 04:43:42 +0000 (04:43 +0000)]
Add hook.[ch] to vs2019 project.

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

4 years agoAdd Cvar_PrintHelp to unify cvar info printing and reduce code duplication
cloudwalk [Sat, 30 May 2020 19:59:12 +0000 (19:59 +0000)]
Add Cvar_PrintHelp to unify cvar info printing and reduce code duplication

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

4 years agoClean up Host_Init a bit by moving other client init routines to CL_Init
cloudwalk [Sat, 30 May 2020 19:59:12 +0000 (19:59 +0000)]
Clean up Host_Init a bit by moving other client init routines to CL_Init

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

4 years agoFix compile warning.
cloudwalk [Sat, 30 May 2020 19:59:11 +0000 (19:59 +0000)]
Fix compile warning.

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

4 years agoStart video _during_ initialization, rather than when finding a model
cloudwalk [Sat, 30 May 2020 19:59:11 +0000 (19:59 +0000)]
Start video _during_ initialization, rather than when finding a model

Fixes Steel Storm: Burning Retribution crashing on start due to a NULL
array that isn't initialized before MQC draws their intro video.

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

4 years agoFix compile warning with bitwise operation
cloudwalk [Sat, 30 May 2020 19:59:10 +0000 (19:59 +0000)]
Fix compile warning with bitwise operation

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

4 years agoSome minor tweaks to CACHEPICFLAG_LINEAR and the nasty -game name rejection message...
Mario [Sat, 30 May 2020 16:18:40 +0000 (02:18 +1000)]
Some minor tweaks to CACHEPICFLAG_LINEAR and the nasty -game name rejection message to ease the processes of backporting and modernization

4 years agoDon't show beam list overflow spam warnings normally
Mario [Sat, 30 May 2020 14:58:42 +0000 (00:58 +1000)]
Don't show beam list overflow spam warnings normally

4 years agoFix a potential memory leak with wavefront sounds
Mario [Sat, 30 May 2020 14:37:23 +0000 (00:37 +1000)]
Fix a potential memory leak with wavefront sounds

4 years agoImplement pausesound command, ported from wrath-darkplaces
Mario [Sat, 30 May 2020 14:34:40 +0000 (00:34 +1000)]
Implement pausesound command, ported from wrath-darkplaces

4 years agoIncrease MAX_CACHED_PICS to 2048, as per wrath-darkplaces
Mario [Sat, 30 May 2020 14:27:31 +0000 (00:27 +1000)]
Increase MAX_CACHED_PICS to 2048, as per wrath-darkplaces

4 years agoSave cl_maxfps_alwayssleep changes to config
Mario [Sat, 30 May 2020 14:17:06 +0000 (00:17 +1000)]
Save cl_maxfps_alwayssleep changes to config

4 years agoDon't crash the game if a "nasty" -game name is rejected, matches behavior of missing...
Mario [Sat, 30 May 2020 14:11:05 +0000 (00:11 +1000)]
Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing -game name

4 years agoAdd support for CACHEPICFLAG_LINEAR (currently unused), ported from wrath-darkplaces
Mario [Sat, 30 May 2020 13:52:03 +0000 (23:52 +1000)]
Add support for CACHEPICFLAG_LINEAR (currently unused), ported from wrath-darkplaces

4 years agoImplement "forcenearest" particle effect key, ported from wrath-darkplaces
Mario [Sat, 30 May 2020 13:36:13 +0000 (23:36 +1000)]
Implement "forcenearest" particle effect key, ported from wrath-darkplaces

4 years agoChange taskqueue_minthreads to 0, resulting in considerable performance increase
cloudwalk [Fri, 29 May 2020 22:39:43 +0000 (22:39 +0000)]
Change taskqueue_minthreads to 0, resulting in considerable performance increase

Nothing needs 4 threads just sitting there spinning at the moment.

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

4 years agoFix long standing compile warning that might bite later
cloudwalk [Fri, 29 May 2020 22:37:16 +0000 (22:37 +0000)]
Fix long standing compile warning that might bite later

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

4 years agoFix incorrect variables in THREADDEBUG prints causing compile errors
cloudwalk [Fri, 29 May 2020 22:37:16 +0000 (22:37 +0000)]
Fix incorrect variables in THREADDEBUG prints causing compile errors

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

4 years agoPass an offset of data_element3i rather than data_element3i itself
cloudwalk [Fri, 29 May 2020 03:35:36 +0000 (03:35 +0000)]
Pass an offset of data_element3i rather than data_element3i itself

Second part of the previous commit that was missed.

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

4 years agoPass num_triangles per surface rather than for the entire surfmesh
cloudwalk [Fri, 29 May 2020 02:35:18 +0000 (02:35 +0000)]
Pass num_triangles per surface rather than for the entire surfmesh

Committing on behalf of havoc. Fixes potential bugs on multi-texture
model formats and makes hitmodel traces faster.

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

4 years agoImplement experimental hook-like system, with working example.
cloudwalk [Thu, 28 May 2020 13:53:30 +0000 (13:53 +0000)]
Implement experimental hook-like system, with working example.

This system allows you to call functions that may or may not exist at runtime
and compile-time. You create hook_t pointers and register them during
initialization, and point them to a function. If they're not registered,
no problem. This could potentially allow different subsystems to function
independently of each other, such as the client and server.

It's using a union to allow functions to have any return type they want.
However, for obvious reasons, functions cannot have any parameters they want
and must accept a pointer to the union type where the actual args are stored.

This is experimental and there may be bugs, but the current working example
should be stable.

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

4 years agoFix defer command. Maintain separate oldrealtime(s) per interpreter
cloudwalk [Wed, 27 May 2020 19:16:31 +0000 (19:16 +0000)]
Fix defer command. Maintain separate oldrealtime(s) per interpreter

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

4 years agoFix incorrect types causing fp precision errors with movable brush entities, etc
cloudwalk [Wed, 27 May 2020 16:12:30 +0000 (16:12 +0000)]
Fix incorrect types causing fp precision errors with movable brush entities, etc

float -> double. This fixes an odd bug where some func_buttons would get stuck
after blocking them long enough.

Thanks to Mario (Xonotic) for finding this.

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

4 years agoFormatting fix
cloudwalk [Wed, 27 May 2020 15:18:20 +0000 (15:18 +0000)]
Formatting fix

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

4 years agoAdd .vscode to .gitignore
cloudwalk [Wed, 27 May 2020 13:10:56 +0000 (13:10 +0000)]
Add .vscode to .gitignore

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

4 years agoRemove the deprecatedq3* fields finally after so many years, this removes the mod_col...
havoc [Wed, 27 May 2020 04:32:57 +0000 (04:32 +0000)]
Remove the deprecatedq3* fields finally after so many years, this removes the mod_collision_bih cvar as it is always using BIH implementations now.

Also move the texture_t.name field to the start of the struct to make debugging more pleasant.

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

4 years agoFix a warning and remove an unused prototype.
havoc [Wed, 27 May 2020 04:30:40 +0000 (04:30 +0000)]
Fix a warning and remove an unused prototype.

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

4 years agoRemove dp_model_t.brushq2 field because it's never been used (q2bsp is loaded into...
havoc [Wed, 27 May 2020 03:53:16 +0000 (03:53 +0000)]
Remove dp_model_t.brushq2 field because it's never been used (q2bsp is loaded into the brushq1 struct due to how similar it is).

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

4 years agoFix major regression preventing connect to any server using curl for custom CSQC
cloudwalk [Wed, 27 May 2020 01:07:28 +0000 (01:07 +0000)]
Fix major regression preventing connect to any server using curl for custom CSQC

The command interpreters must be executed in sequence with clientfromserver
being the first, otherwise curl won't get a chance to run before the client
continues connecting. A few more commands were also missing from the
interpreter and were added.

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

4 years agoAllocate Q3BSP texturepool earlier in the loading process
cloudwalk [Tue, 26 May 2020 18:04:54 +0000 (18:04 +0000)]
Allocate Q3BSP texturepool earlier in the loading process

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

4 years agoFix crash when building Q3BSP lightgrid. Added missing R_AllocTexturePool call.
cloudwalk [Tue, 26 May 2020 17:48:44 +0000 (17:48 +0000)]
Fix crash when building Q3BSP lightgrid. Added missing R_AllocTexturePool call.

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

4 years agoFix most compiler warnings.
cloudwalk [Tue, 26 May 2020 16:41:59 +0000 (16:41 +0000)]
Fix most compiler warnings.

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

4 years agoFix compiler warning in custom stat clearing
cloudwalk [Tue, 26 May 2020 16:41:58 +0000 (16:41 +0000)]
Fix compiler warning in custom stat clearing

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

4 years agoClean up qtypes.h. Use stdbool.h on non-MSVC. Replace allcaps with lowercase
cloudwalk [Tue, 26 May 2020 16:41:57 +0000 (16:41 +0000)]
Clean up qtypes.h. Use stdbool.h on non-MSVC. Replace allcaps with lowercase

Last I checked, stdbool.h is only unavailable on Windows MSVC, so we'll define
bool ourselves in that case.

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

4 years agoOops.
cloudwalk [Tue, 26 May 2020 15:05:09 +0000 (15:05 +0000)]
Oops.

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