Commit graph

45 commits

Author SHA1 Message Date
Knightmare66
1a5fcdc13a Renamed SurfAlphaCalc() to R_SurfAlphaCalc() in r_surface.c.
Changed R_SurfAlphaCalc() to use transparency value of 0.5f for both TRANS33 and TRANS66 flags if r_solidalpha is disabled.
2021-03-21 18:13:04 -04:00
Knightmare66
2a34ecfb51 Updated libjpeg to version 9d. 2021-03-13 04:02:46 -05:00
Knightmare66
1abde37ba0 Changed parameter order for Q_strncpyz() and Q_strncatz() to match Com_strcpy() and Com_strcat() from missionpack DLL. 2021-01-25 02:47:07 -05:00
Knightmare66
a07cf5c962 Added ui_font and scr_font cvars to separately change menu and HUD font.
Added R_DrawString() to allow drawing of text strings directly in the renderer.
Refactored r_speeds drawing to use new R_DrawString() function.
2021-01-11 01:17:13 -05:00
Knightmare66
c137bb8926 Added r_entity_doublelight cvar to renderer. 2020-09-30 03:17:50 -04:00
Knightmare66
6a59000846 Changed chat filtering to also work for private messages.
Renamed "sp2" sprite structs for SP2 to have sp2 in their name.
2020-09-20 18:16:28 -04:00
Knightmare66
cc63f643ac Renamed md2 "alias" structs and defines for MD2 to have MD2 in their names. 2020-09-06 04:17:32 -04:00
Knightmare66
d9848657dc Const-ified string parms for filesystem funcs, function exports, and related func in game DLLs. 2020-08-11 02:08:18 -04:00
Knightmare66
74e4a4f1cc Renamed cvars hud_scale, hud_alpha, and hud_squeezedigits to scr_hudsize, scr_hudalpha, and scr_hudsqueezedigits.
Added cl_hud and cl_hud_variant placeholder cvars.
Fixed some VS2019 compiler warnings pointed out by Paril.
2020-08-09 17:03:47 -04:00
Knightmare66
988347e7d2 Yet more 64-bit porting fixes. 2020-08-02 02:00:01 -04:00
Knightmare66
8f43c6bf9f More 64-bit portability fixes. 2020-08-01 22:54:35 -04:00
Knightmare66
7cf0c475f5 Miscellaneous 64-bit porting fixes. 2020-07-29 06:05:09 -04:00
Knightmare66
d30c74ebe3 Fix crash with null pointer in SV_AreaEdicts_r().
Fix crash with null activator in G_UseTargets().
Tweak descripton of cvar r_modulate.
Update change log for new layout script commands.
2020-07-27 18:03:25 -04:00
Knightmare66
2219435b5c Added upscaling of scrap image. 2020-07-19 02:51:05 -04:00
Knightmare66
26d58b1694 Added screenshot gamma correction.
Changed stats.log to save to savegamedir instead of the Quake2 root folder.
Renamed cvars menu_sensitivity, menu_rotate, and menu_alpha to ui_sensitivity, ui_item_rotate, and ui_background_alpha.
Removed some unused cvars.
Added CVAR_SAVE_IGNORE flag to "game" and "gamedir" cvars.
Added descriptions for most cvars.
Added dumpcvars command to output a list of cvars with their descriptions to cvarlist.txt.
2020-07-04 01:31:44 -04:00
Knightmare66
e317029eac Updated GPL headers based on Q2 Tools GPL source release. 2020-06-04 17:01:28 -04:00
Knightmare66
9b4e85322c Added Q_StrScanToken() to replace StringContainsToken() for non-ambiguous token searching.
Changed CL_FilterStuffText() to use Q_StrScanToken() instead  of strstr().
2020-05-16 01:02:34 -04:00
Knightmare66
2708250c0a Added horizontal offset to third-person mode, controlled by cvar cg_thirdperson_offset.
Add thirdperson offset option to controls menu.
Added cg_thirdperson_overhead cvar for experimental overhead mode.
Increased MAX_GLTEXTURES to 16K.
2020-05-05 01:37:53 -04:00
Knightmare66
30012ce19c Finished implementation of fs_savegamedir and fs_downloaddir. 2020-05-02 16:08:01 -04:00
Knightmare66
9272d5ea85 Change Hunk_* and zone alloc functions to use size_t instead of int.
Replace READ_COMPRESSED_SAVEGAMES and WRITE_COMPRESSED_SAVEGAMES macros with COMPRESSED_SAVEGAMES.
Misc changes and some cleanup to game code.
2020-04-20 03:17:27 -04:00
Knightmare66
e6ec99c444 Added support to menu framework for changing font sizes of all menu controls.
Added r_clearcolor_r, r_clearcolor_g, r_clearcolor_b cvars to change gl_clear fill color.
2020-04-18 00:24:32 -04:00
Knightmare66
8085bad68a Fixed wrap artifacts on upscaled 128x128 fonts at odd resolutions (1680x1050).
Changed vertex coords in R_DrawChar from float to int.  This fixes wrap artifacts with odd scaling factors.
2020-04-16 18:46:17 -04:00
Knightmare66
ceb8970ecc Added font upscaling from Q2Pro.
Added dynamic updating of Anisotropic filtering.
Added Cvar_IsModified() function.
Refactored screen and HUD scaling functions.
Added text size to string drawing functions.
Added textSize field to menu items for submenu headers.
Fixed compiling on MSVC6.
2020-04-16 03:18:49 -04:00
Knightmare66
f38b767fc1 Added support for cvar descriptions. 2020-04-08 23:26:17 -04:00
Knightmare66
562b6c816c Added filename to "Invalid JPEG color components" error message in JPG loader.
Added pointer checks to CL_TextColor().
2020-04-07 23:41:08 -04:00
Knightmare66
ce11b17e52 Fix text color codes not working in console notify messages due to false reset of formatting parms.
Renamed TextColor() and CL_StringSetParams in cl_string.c to CL_TextColor() and CL_StringSetParams().
Changed SetWindowLong() and GetWindowLong() calls in vid_dll.c to SetWindowLongPtr() and GetWindowLongPtr().
2020-04-07 21:14:22 -04:00
Knightmare66
bf146f4637 Use cvar integer field instead of float value field where applicable in renderer. 2020-03-19 23:37:01 -04:00
Knightmare66
c8ce7c05f9 Added shadow volume bboxes to determine if a volume shadow should be drawn, even if the model isn't in view.
Added z-pass shadows (Doom3 GPL method) when r_shadow_zfail is set to 0.
Removed direct writes to value field of r_lightlevel cvar.
Replaced Com_sprintf() calls in console drawing that fed a buffer into itself with Q_strncatz().
2020-03-19 22:28:18 -04:00
Knightmare66
7d294586f7 Fixed screen artifacting with light blooms enabled on a video mode with height less than 512.
Fixed text scale not changing after changing video modes.
2020-03-14 23:51:19 -04:00
Knightmare66
ccfa82d228 Exclude alphatest meshes from cel-shading. 2020-02-25 20:57:18 -05:00
Knightmare66
ff5079f8bb Fixed cell shading outlines on mirrored and view flipped models. 2020-02-24 04:27:50 -05:00
Knightmare66
bdf3406328 Added cel shading.
Moved ARB warp distortion texture to glMedia struct.
2020-02-23 14:07:48 -05:00
Knightmare66
f1b6052f15 Removed size limit of 512x256 for .wal textures. 2020-02-09 16:27:23 -05:00
Knightmare66
c6c7e79b5a Added application compatbility manifest for Windows 8.1 and 10.
Increased sky draw distance.
2020-02-06 18:58:22 -05:00
Knightmare66
31b164ca9d Added support for 160 and 240 Hz refresh rates. 2019-12-09 18:32:27 -05:00
Knightmare66
92ef67ef44 Changed SetCrosshairNames(), SetFontNames(), and S_OGG_LoadFileList() to use FS_GetFileList().
Added zeroing of ogg_filelist pointer after free.
2019-10-12 19:54:15 -04:00
Knightmare66
a57b260b7b Increased console buffer size to 128K.
Made COM_* funtions buffer-safe.
2019-10-08 03:39:06 -04:00
Knightmare66
11680e319c Fixed light blooms killing performance if texture compression is enabled. 2019-07-09 00:15:17 -04:00
Knightmare66
de8072c9e0 Use MAX_QPATH instead of MAX_PATH in CL_ParseConfigString().
Clean up fog hacks in R_RenderView().
Remove file exists outputs in CL_CheckAndQueueDownload().
2019-06-10 12:16:13 -04:00
Knightmare66
0eac80b08a Added bounding boxes to all gibs to prevent dark lighting on sloped surfaces.
Inccrease NUM_FAIL_IMAGES and NUM_WALSIZES, decrease NUM_FAIL_TEXTURES due to maps missing tons of textures being rare.
2019-06-05 19:08:30 -04:00
Knightmare66
9c5fca4da2 Fixed maps.lst inside pak file overridding the external version of this file in baseq2.
Blacklisted maps.lst from loading from pak files.
Cleaned up unneeded va() string expansion in cl_main.c->CL_Connect_f().
2019-05-05 13:07:41 -04:00
Knightmare66
996814d7e5 Assign 0 value to aliasLightDir in renderer/r_alias.c. 2019-04-24 14:51:07 -04:00
Knightmare66
132b05f03a Added check for autosave slot in LoadGameCallback() to not specify a non-existent saveshot.
Check for minumum length of saveshot name in SCR_DrawLoading().
Skip STX char before map title in dedicated console output.
Increased number of failed images/textures and walsizes to 1024 from 256.
Added one last modType() -> FS_ModType() change I forgot to commit.
2019-04-16 19:15:25 -04:00
Knightmare66
af85a6bf80 Fix minor copypasta error in R_DrawGetPicSize(). 2019-04-05 15:56:13 -04:00
Knightmare66
f986267ae2 inital commit of full repository 2019-03-13 15:20:07 -04:00